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::SkeletonVisuals Class Reference

Class that combines all the visualization objects at the skeleton level. This class subclasses osg::MatrixTransform. More...

#include <SkeletonVisuals.h>

List of all members.

Public Member Functions

 SkeletonVisuals ()
 Constructs a SkeletonVisuals object.
 ~SkeletonVisuals ()
 Destructs a SkeletonVisuals object.
void addCenterOfMass ()
 Adds a center of mass sphere to the class.
void addProjectedCenterOfMass ()
 Add a projected center of mass circle to the class.
osg::MatrixTransform * getCenterOfMassTF ()
 Getter for getting the TF that holds the center of mass sphere.
osg::MatrixTransform * getProjectedCenterOfMassTF ()
 Getter for getting the TF that holds the projected center of mass circle.
void setCenterOfMassColor (const osg::Vec4 &newColor)
 Sets the color of the sphere representing the center of mass.
void setProjectedCenterOfMassColor (const osg::Vec4 &newColor)
 Sets the color of the circle representing the projected center of mass.

Protected Member Functions

void _setGeodeModes (osg::Geode *geode)
 Set the modes for the geode passed in.

Protected Attributes

osg::MatrixTransform * _centerOfMassTF
 osg::MatrixTransform pointer for the TF that hold the center of mass node
osg::MatrixTransform * _projectedCenterOfMassTF
 osg::MatrixTransform pointer for the TF that holds the projected center of mass node
osgGolems::Sphere_centerOfMass
 Center of mass node represented by an osgGolems::Sphere pointer.
osgGolems::Cylinder_projectedCenterOfMass
 Projected center of mass node represent by an osgGolems::Cylinder pointer.
osg::CullFace * _cullFace
 Culling pointer to tell OpenSceneGraph how to render the geodes.

Detailed Description

Class that combines all the visualization objects at the skeleton level. This class subclasses osg::MatrixTransform.


Member Function Documentation

void SkeletonVisuals::_setGeodeModes ( osg::Geode *  geode) [protected]

Set the modes for the geode passed in.

Parameters:
geodeosg::Geode pointer of which to change the modes
Returns:
void

Adds a center of mass sphere to the class.

Returns:
void

Add a projected center of mass circle to the class.

Returns:
void
osg::MatrixTransform * SkeletonVisuals::getCenterOfMassTF ( )

Getter for getting the TF that holds the center of mass sphere.

Returns:
osg::MatrixTransform pointer
osg::MatrixTransform * SkeletonVisuals::getProjectedCenterOfMassTF ( )

Getter for getting the TF that holds the projected center of mass circle.

Returns:
osg::MatrixTransform pointer
void SkeletonVisuals::setCenterOfMassColor ( const osg::Vec4 &  newColor)

Sets the color of the sphere representing the center of mass.

Parameters:
newColorAn osg::Vec4 reference specifying the color in rgba format in range (0,1)
Returns:
void
void SkeletonVisuals::setProjectedCenterOfMassColor ( const osg::Vec4 &  newColor)

Sets the color of the circle representing the projected center of mass.

Parameters:
newColorAn 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