vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SimpleBox.h
Go to the documentation of this file.
1 #ifndef _SimpleBox_H
2 #define _SimpleBox_H
3 
4 #include <osg/Geometry>
5 #include <osg/StateSet>
6 #include <osg/BlendEquation>
7 #include <osg/Depth>
8 
9 using namespace vrecko;
10 
11 namespace APDYNAMICART
12 {
13 
14 static int simpleBoxCounter = 0;
15 
17 
21 {
22 
23 public:
31  SimpleBox(osg::Vec3 position, osg::Vec3 size, bool movable=true, osg::Vec4 colour = osg::Vec4(1.0, 1.0, 1.0, 1.0));
32  ~SimpleBox();
33 
34 
35  void setColour (osg::Vec4 colour);
36  void setHeight (double posY, double height);
37 
39  void set(osg::Vec3 point1, osg::Vec3 point2);
40 
41 private:
42  osg::ref_ptr<osg::ShapeDrawable> shapeDraw;
43  osg::ref_ptr<osg::Box> shapeBox;
44 
45 
46 };
47 
48 
49 }
50 #endif // _SimpleBox_H
51