Grip-Reloaded
Grip version visualizaiton interface for DART (DynamicAnimationandRoboticsToolkits)
|
Class that holds all the visualization nodes for a link, excluding the actual link. More...
#include <BodyNodeVisuals.h>
Public Member Functions | |
BodyNodeVisuals () | |
Constructs a BodyNodeVisuals object. | |
~BodyNodeVisuals () | |
Destructs a BodyNodeVisuals object. | |
void | addJointAxis () |
Adds a joint axis node to the class. | |
void | addBodyNodesAxes () |
Adds a link frame node to the class. | |
void | addCenterOfMass () |
Adds a center of mass sphere node to the class Not implemented yet. | |
osg::MatrixTransform * | getJointAxisTF () |
Gets the osg::MatrixTransform pointer that holds the joint axis node. | |
osg::MatrixTransform * | getBodyNodeAxesTF () |
Gets the osg::MatrixTransform pointer that holds the link frame node. | |
void | setJointAxisColor (const osg::Vec4 &color) |
Sets the color of the joint axis node. | |
void | setBodyNodeAxesColors (const osg::Vec4 &xAxis, const osg::Vec4 &yAxis, const osg::Vec4 &zAxis) |
Sets the color of the link frame node. | |
void | setLineWidth (float lineWidth) |
Sets the line width of the joint axis and link frame axes. This is used only if the joint axis and link frame are not created using 3D objects. | |
Protected Member Functions | |
osg::Geode * | _makeJointAxis () |
Makes a joint axis arrow node. | |
osg::Geode * | _makeBodyNodeAxes () |
Make a link frame node with three axes. | |
void | _setGeodeModes (osg::Geode *geode) |
Set the modes of the geode passed in. | |
Protected Attributes | |
osg::MatrixTransform * | _jointAxisTF |
The osg::MatrixTransform pointer holding the joint axis node. | |
osg::MatrixTransform * | _bodyNodeAxesTF |
The osg::MatrixTransform pointer holding the link frame node. | |
osgGolems::Line * | _jointAxis |
The osgGolems::Line pointer representing the joint axis. | |
osgGolems::Axes * | _bodyNodeAxes |
The osgGolems::Axes pointer representing the link frame. | |
osg::LineWidth * | _lineWidth |
The osg::LineWidth pointer holding the line width parameter of the 2D objects in the class. | |
osg::CullFace * | _cullFace |
The osg::CullFace pointer holding the cull setting of the class. |
Class that holds all the visualization nodes for a link, excluding the actual link.
osg::Geode * BodyNodeVisuals::_makeBodyNodeAxes | ( | ) | [protected] |
Make a link frame node with three axes.
osg::Geode * BodyNodeVisuals::_makeJointAxis | ( | ) | [protected] |
Makes a joint axis arrow node.
void BodyNodeVisuals::_setGeodeModes | ( | osg::Geode * | geode | ) | [protected] |
Set the modes of the geode passed in.
geode | The osg::Geode* of which to set the modes |
void BodyNodeVisuals::addBodyNodesAxes | ( | ) |
Adds a link frame node to the class.
void BodyNodeVisuals::addCenterOfMass | ( | ) |
Adds a center of mass sphere node to the class Not implemented yet.
void BodyNodeVisuals::addJointAxis | ( | ) |
Adds a joint axis node to the class.
osg::MatrixTransform * BodyNodeVisuals::getBodyNodeAxesTF | ( | ) |
Gets the osg::MatrixTransform pointer that holds the link frame node.
osg::MatrixTransform * BodyNodeVisuals::getJointAxisTF | ( | ) |
Gets the osg::MatrixTransform pointer that holds the joint axis node.
void BodyNodeVisuals::setBodyNodeAxesColors | ( | const osg::Vec4 & | xAxis, |
const osg::Vec4 & | yAxis, | ||
const osg::Vec4 & | zAxis | ||
) |
Sets the color of the link frame node.
color | An osg::Vec4 reference specifying the color in rgba format in range (0,1) |
void BodyNodeVisuals::setJointAxisColor | ( | const osg::Vec4 & | color | ) |
Sets the color of the joint axis node.
color | An osg::Vec4 reference specifying the color in rgba format in range (0,1) |