Grip-Reloaded
Grip version visualizaiton interface for DART (DynamicAnimationandRoboticsToolkits)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Protected Member Functions | Protected Attributes
osgGolems::Axes Class Reference

Class that subclasses osg::Geode to create x,y,z axes. More...

#include <Axes.h>

List of all members.

Public Member Functions

 Axes (float scale=0.1)
 Constructor for Axes.
void setScale (float newScale)
 Set the scale factor of the axes.
void setColors (const osg::Vec4 &xAxis, const osg::Vec4 &yAxis, const osg::Vec4 &zAxis)
 Sets the colors of the axes.
void setLineWidth (float newLineWidth)
 Sets the width of the axes.

Protected Member Functions

void _createAxes ()
 Define the axes elements indices. These indices correspond to the vertices in the _verts array.

Protected Attributes

osg::Vec3Array * _verts
 Array of vertices defining the endpoints of the axes.
osg::Vec4Array * _colors
 Array of colors defining the color the axes.
osg::LineWidth * _lineWidth
 Line width pointer.

Detailed Description

Class that subclasses osg::Geode to create x,y,z axes.


Constructor & Destructor Documentation

osgGolems::Axes::Axes ( float  scale = 0.1) [inline]

Constructor for Axes.

Parameters:
scaleScale factor for length of axes

Member Function Documentation

void osgGolems::Axes::_createAxes ( ) [inline, protected]

Define the axes elements indices. These indices correspond to the vertices in the _verts array.

Returns:
void
void osgGolems::Axes::setColors ( const osg::Vec4 &  xAxis,
const osg::Vec4 &  yAxis,
const osg::Vec4 &  zAxis 
) [inline]

Sets the colors of the axes.

Parameters:
xAxisosg::Vec4 reference for the color of the x-axis, in rgba format in range (0,1)
yAxisosg::Vec4 reference for the color of the y-axis, in rgba format in range (0,1)
zAxisosg::Vec4 reference for the color of the z-axis, in rgba format in range (0,1)
Returns:
void
void osgGolems::Axes::setLineWidth ( float  newLineWidth) [inline]

Sets the width of the axes.

Parameters:
newLineWidthThe new line width to use
Returns:
void
void osgGolems::Axes::setScale ( float  newScale) [inline]

Set the scale factor of the axes.

Parameters:
newScaleNew scale factor the axes
Returns:
void

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator