All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
SurgSim::Graphics::OsgUnitBox Class Reference

OSG unit box geode to be used as a primitive shape The box is located at (0, 0, 0) and has a size of 1 on all three axes. More...

#include <SurgSim/Graphics/OsgUnitBox.h>

Public Member Functions

 OsgUnitBox ()
 Constructor. More...
 
osg::ref_ptr< osg::Node > getNode () const
 Returns the root OSG node for the plane to be inserted into the scene-graph. More...
 

Private Attributes

osg::ref_ptr< osg::Geode > m_geode
 Root OSG node of the box. More...
 

Detailed Description

OSG unit box geode to be used as a primitive shape The box is located at (0, 0, 0) and has a size of 1 on all three axes.

Add the box geode to a transform node to position and scale it.

Constructor & Destructor Documentation

SurgSim::Graphics::OsgUnitBox::OsgUnitBox ( )
inline

Constructor.

Member Function Documentation

osg::ref_ptr<osg::Node> SurgSim::Graphics::OsgUnitBox::getNode ( ) const
inline

Returns the root OSG node for the plane to be inserted into the scene-graph.

Member Data Documentation

osg::ref_ptr<osg::Geode> SurgSim::Graphics::OsgUnitBox::m_geode
private

Root OSG node of the box.


The documentation for this class was generated from the following file: