SelectionBox.h
Go to the documentation of this file.
1 /*
2  * This file is part of OctoMap - An Efficient Probabilistic 3D Mapping
3  * Framework Based on Octrees
4  * http://octomap.github.io
5  *
6  * Copyright (c) 2009-2014, K.M. Wurm and A. Hornung, University of Freiburg
7  * All rights reserved. License for the viewer octovis: GNU GPL v2
8  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
9  *
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful, but
17  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  * for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program. If not, see http://www.gnu.org/licenses/.
23  */
24 
25 #ifndef SELECTIONBOX_H_
26 #define SELECTIONBOX_H_
27 
28 #include <qglviewer.h>
29 
30 namespace octomap {
31  class SelectionBox{
32 
33  public:
34  SelectionBox();
35  virtual ~SelectionBox();
36  void draw(bool withNames = false);
37  const qglviewer::ManipulatedFrame* frame (unsigned short i) const { return m_frames.at(i); }
38  qglviewer::ManipulatedFrame* frame (unsigned short i) { return m_frames.at(i); }
39  void getBBXMin(float& x, float& y, float& z) const;
40  void getBBXMax(float& x, float& y, float& z) const;
41  int getGrabbedFrame() const;
42 
43  protected:
44  void drawAxis(float length = 0.2f) const;
45 
46  bool m_visible;
47  std::vector<qglviewer::ManipulatedFrame*> m_frames;
48  unsigned short m_selectedFrame;
52 
53  };
54 
55 
56 
57 }
58 
59 
60 
61 
62 #endif
octomap::SelectionBox::getBBXMax
void getBBXMax(float &x, float &y, float &z) const
Definition: SelectionBox.cpp:223
octomap::SelectionBox::draw
void draw(bool withNames=false)
Definition: SelectionBox.cpp:77
qglviewer::ManipulatedFrame
A ManipulatedFrame is a Frame that can be rotated and translated using the mouse.
Definition: manipulatedFrame.h:115
octomap::SelectionBox::getGrabbedFrame
int getGrabbedFrame() const
Definition: SelectionBox.cpp:229
octomap::SelectionBox::getBBXMin
void getBBXMin(float &x, float &y, float &z) const
Definition: SelectionBox.cpp:217
octomap::SelectionBox::m_selectedFrame
unsigned short m_selectedFrame
Definition: SelectionBox.h:48
qglviewer::Vec
The Vec class represents 3D positions and 3D vectors.
Definition: vec.h:85
octomap::SelectionBox::frame
qglviewer::ManipulatedFrame * frame(unsigned short i)
Definition: SelectionBox.h:38
octomap::SelectionBox::m_minPt
qglviewer::Vec m_minPt
Definition: SelectionBox.h:49
octomap::SelectionBox::m_visible
bool m_visible
Definition: SelectionBox.h:46
octomap::SelectionBox::m_arrowLength
float m_arrowLength
Definition: SelectionBox.h:51
octomap::SelectionBox::m_frames
std::vector< qglviewer::ManipulatedFrame * > m_frames
Definition: SelectionBox.h:47
qglviewer.h
octomap::SelectionBox::~SelectionBox
virtual ~SelectionBox()
Definition: SelectionBox.cpp:72
octomap::SelectionBox::m_maxPt
qglviewer::Vec m_maxPt
Definition: SelectionBox.h:50
octomap::SelectionBox::frame
const qglviewer::ManipulatedFrame * frame(unsigned short i) const
Definition: SelectionBox.h:37
octomap
octomap::SelectionBox
Definition: SelectionBox.h:31
octomap::SelectionBox::SelectionBox
SelectionBox()
Definition: SelectionBox.cpp:32
octomap::SelectionBox::drawAxis
void drawAxis(float length=0.2f) const
Definition: SelectionBox.cpp:242


octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Thu Apr 3 2025 02:40:44