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
osgDart::BodyNodeVisuals Class Reference

Class that holds all the visualization nodes for a link, excluding the actual link. More...

#include <BodyNodeVisuals.h>

List of all members.

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.

Detailed Description

Class that holds all the visualization nodes for a link, excluding the actual link.


Member Function Documentation

osg::Geode * BodyNodeVisuals::_makeBodyNodeAxes ( ) [protected]

Make a link frame node with three axes.

Returns:
osg::Geode pointer pointing to the newly created frame node
osg::Geode * BodyNodeVisuals::_makeJointAxis ( ) [protected]

Makes a joint axis arrow node.

Returns:
osg::Geode pointer pointing to the newly created arrow node
void BodyNodeVisuals::_setGeodeModes ( osg::Geode *  geode) [protected]

Set the modes of the geode passed in.

Parameters:
geodeThe osg::Geode* of which to set the modes
Returns:
void

Adds a link frame node to the class.

Returns:
void

Adds a center of mass sphere node to the class Not implemented yet.

Returns:
void

Adds a joint axis node to the class.

Returns:
void
osg::MatrixTransform * BodyNodeVisuals::getBodyNodeAxesTF ( )

Gets the osg::MatrixTransform pointer that holds the link frame node.

Returns:
osg::MatrixTransform pointer
osg::MatrixTransform * BodyNodeVisuals::getJointAxisTF ( )

Gets the osg::MatrixTransform pointer that holds the joint axis node.

Returns:
osg::MatrixTransform pointer
void BodyNodeVisuals::setBodyNodeAxesColors ( const osg::Vec4 &  xAxis,
const osg::Vec4 &  yAxis,
const osg::Vec4 &  zAxis 
)

Sets the color of the link frame node.

Parameters:
colorAn osg::Vec4 reference specifying the color in rgba format in range (0,1)
Returns:
void
void BodyNodeVisuals::setJointAxisColor ( const osg::Vec4 &  color)

Sets the color of the joint axis node.

Parameters:
colorAn osg::Vec4 reference specifying the color in rgba format in range (0,1)
Returns:
void

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