|
Grip-Reloaded
Grip version visualizaiton interface for DART (DynamicAnimationandRoboticsToolkits)
|
Class that subclasses osg::Geode to create x,y,z axes. More...
#include <Line.h>
Public Member Functions | |
| Line (lineType_t lineType, float length=0.5f, float width=3) | |
| Constructs a line object. | |
| std::string | lineTypeToString (lineType_t lineType) |
| Converts enum to string for lineType enum. | |
| void | setLength (float length) |
| Sets the length of the line. | |
| void | setWidth (float width) |
| Sets the width of the line. | |
| void | setColor (const osg::Vec4 &newColor) |
| Sets the color of the line. | |
Protected Member Functions | |
| void | _createLine () |
| Creates line vertices depending on the line type specified by the user. | |
Protected Attributes | |
| osg::Vec3Array * | _verts |
| Array of vertices. | |
| osg::Vec4Array * | _color |
| Array of colors. Only holds one color. | |
| osg::LineWidth * | _lineWidth |
| Line width object for specifying the width of the line. | |
| const lineType_t | _lineType |
| Linetype enum constant which is set by the user upon construction. | |
Class that subclasses osg::Geode to create x,y,z axes.
| osgGolems::Line::Line | ( | lineType_t | lineType, |
| float | length = 0.5f, |
||
| float | width = 3 |
||
| ) | [inline] |
Constructs a line object.
| lineType | Type of line to create, specified by lineType_t |
| length | Length of the line in meter |
| width | Width of the line. Normal values are between 1 and 10 |
| void osgGolems::Line::_createLine | ( | ) | [inline, protected] |
Creates line vertices depending on the line type specified by the user.
| std::string osgGolems::Line::lineTypeToString | ( | lineType_t | lineType | ) | [inline] |
Converts enum to string for lineType enum.
| lineType | lineType enum to convert to a string |
| void osgGolems::Line::setColor | ( | const osg::Vec4 & | newColor | ) | [inline] |
Sets the color of the line.
| newColor | osg::Vec4 reference representing the desired color of the line in rgba format in range (0,1) |
| void osgGolems::Line::setLength | ( | float | length | ) | [inline] |
Sets the length of the line.
| length | A float representing the desired length of the line |
| void osgGolems::Line::setWidth | ( | float | width | ) | [inline] |
Sets the width of the line.
| width | float representing the desired width of the line |
1.7.6.1