|
Grip-Reloaded
Grip version visualizaiton interface for DART (DynamicAnimationandRoboticsToolkits)
|
Class that combines all the visualization objects at the skeleton level. This class subclasses osg::MatrixTransform. More...
#include <SkeletonVisuals.h>
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. | |
Class that combines all the visualization objects at the skeleton level. This class subclasses osg::MatrixTransform.
| void SkeletonVisuals::_setGeodeModes | ( | osg::Geode * | geode | ) | [protected] |
Set the modes for the geode passed in.
| geode | osg::Geode pointer of which to change the modes |
| void SkeletonVisuals::addCenterOfMass | ( | ) |
Adds a center of mass sphere to the class.
Add a projected center of mass circle to the class.
| osg::MatrixTransform * SkeletonVisuals::getCenterOfMassTF | ( | ) |
Getter for getting the TF that holds the center of mass sphere.
| osg::MatrixTransform * SkeletonVisuals::getProjectedCenterOfMassTF | ( | ) |
Getter for getting the TF that holds the projected center of mass circle.
| void SkeletonVisuals::setCenterOfMassColor | ( | const osg::Vec4 & | newColor | ) |
Sets the color of the sphere representing the center of mass.
| newColor | An osg::Vec4 reference specifying the color in rgba format in range (0,1) |
| void SkeletonVisuals::setProjectedCenterOfMassColor | ( | const osg::Vec4 & | newColor | ) |
Sets the color of the circle representing the projected center of mass.
| newColor | An osg::Vec4 reference specifying the color in rgba format in range (0,1) |
1.7.6.1