16 #ifndef SURGSIM_GRAPHICS_OSGUNITBOX_H 17 #define SURGSIM_GRAPHICS_OSGUNITBOX_H 21 #include <osg/ShapeDrawable> 39 osg::ref_ptr<osg::Box> unitBox =
new osg::Box(osg::Vec3(0.0, 0.0, 0.0), 1.0);
40 osg::ref_ptr<osg::ShapeDrawable> drawable =
new osg::ShapeDrawable(unitBox);
42 m_geode->getOrCreateStateSet()->setMode(GL_NORMALIZE, osg::StateAttribute::ON);
60 #endif // SURGSIM_GRAPHICS_OSGUNITBOX_H Definition: DriveElementFromInputBehavior.cpp:27
osg::ref_ptr< osg::Node > getNode() const
Returns the root OSG node for the plane to be inserted into the scene-graph.
Definition: OsgUnitBox.h:46
OSG unit box geode to be used as a primitive shape The box is located at (0, 0, 0) and has a size of ...
Definition: OsgUnitBox.h:32
osg::ref_ptr< osg::Geode > m_geode
Root OSG node of the box.
Definition: OsgUnitBox.h:53
OsgUnitBox()
Constructor.
Definition: OsgUnitBox.h:36
Definition: OsgLight.h:33