Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BoundingBox.h
Go to the documentation of this file.
1 /* Copyright (c) 2014-2015 "Omnidome" by cr8tr
2  * Dome Mapping Projection Software (http://omnido.me).
3  * Omnidome was created by Michael Winkelmann aka Wilston Oreo (@WilstonOreo)
4  *
5  * This file is part of Omnidome.
6  *
7  * Omnidome is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Affero General Public License as
9  * published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU Affero General Public License for more details.
16  * You should have received a copy of the GNU Affero General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef OMNI_VISUAL_BOX_H_
21 #define OMNI_VISUAL_BOX_H_
22 
23 #include <omni/visual/Interface.h>
24 #include <omni/visual/VertexVBO.h>
25 #include <omni/geometry/Box.h>
26 
27 namespace omni {
28  namespace visual {
29  /// Visualizer for draing a bounding box from bounds
30  class BoundingBox : public Interface {
31  public:
32  BoundingBox(omni::Box const& _box);
33  ~BoundingBox();
34 
35  void draw() const;
36 
37  static void draw(omni::Box const& _box);
38 
39  void update();
40 
41  private:
42  omni::Box const& box_;
44  };
45  }
46 }
47 
48 #endif /* OMNI_VISUAL_BOX_H_ */
VertexVBO vbo_
Definition: BoundingBox.h:43
Basic visual interface.
Definition: Interface.h:28
~BoundingBox()
Definition: BoundingBox.cpp:33
BoundingBox(omni::Box const &_box)
Definition: BoundingBox.cpp:27
omni::Box const & box_
Definition: BoundingBox.h:42
Utility class for storing and drawing VBO data.
Definition: VertexVBO.h:30
Visualizer for draing a bounding box from bounds.
Definition: BoundingBox.h:30
void update()
Update geometry.
Definition: BoundingBox.cpp:36
void draw() const
Abstract method for visualing.
Definition: BoundingBox.cpp:133