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
Constructor for Axes.
- Parameters:
-
scale | Scale factor for length of axes |
Member Function Documentation
Define the axes elements indices. These indices correspond to the vertices in the _verts array.
- Returns:
- void
Sets the colors of the axes.
- Parameters:
-
xAxis | osg::Vec4 reference for the color of the x-axis, in rgba format in range (0,1) |
yAxis | osg::Vec4 reference for the color of the y-axis, in rgba format in range (0,1) |
zAxis | osg::Vec4 reference for the color of the z-axis, in rgba format in range (0,1) |
- Returns:
- void
Sets the width of the axes.
- Parameters:
-
newLineWidth | The new line width to use |
- Returns:
- void
Set the scale factor of the axes.
- Parameters:
-
newScale | New scale factor the axes |
- Returns:
- void
The documentation for this class was generated from the following file:
- /home/pete/myRepos/grip2/osgGolems/Axes.h