Public Member Functions | Private Attributes | List of all members
SurgSim::Graphics::OsgUnitSphere Class Reference

OSG unit sphere geode to be used as a primitive shape The sphere is located at (0, 0, 0) and has a radius of 1. More...

#include <SurgSim/Graphics/OsgUnitSphere.h>

Public Member Functions

 OsgUnitSphere ()
 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::PositionAttitudeTransform > m_transform
 Root OSG node of the sphere. More...
 

Detailed Description

OSG unit sphere geode to be used as a primitive shape The sphere is located at (0, 0, 0) and has a radius of 1.

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

Constructor & Destructor Documentation

SurgSim::Graphics::OsgUnitSphere::OsgUnitSphere ( )
inline

Constructor.

Member Function Documentation

osg::ref_ptr<osg::Node> SurgSim::Graphics::OsgUnitSphere::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::PositionAttitudeTransform> SurgSim::Graphics::OsgUnitSphere::m_transform
private

Root OSG node of the sphere.


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