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