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

## OsgUnitSphere()

SurgSim::Graphics::OsgUnitSphere::OsgUnitSphere | ( |  | ) |

inline

Constructor.

## Member Function Documentation

## getNode()

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

## m_transform

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:

- SurgSim/Graphics/OsgUnitSphere.h