Grip-Reloaded
Grip version visualizaiton interface for DART (DynamicAnimationandRoboticsToolkits)
|
Convenience class for creating a box node. Subclasses osg::Geode. More...
#include <Shapes.h>
Public Member Functions | |
Box (const osg::Vec3 ¢er, float width, const osg::Vec4 &color=osg::Vec4(0, 0, 0, 1)) | |
Creates a box node. | |
void | setColor (const osg::Vec4 &newColor) |
Sets the color of the box. | |
void | setCenter (const osg::Vec3 &newCenter) |
Sets the center of the box in meters. | |
Protected Attributes | |
osg::Box * | _box |
osg::Box object so that we can change the dimensions of the box | |
osg::ShapeDrawable * | _shapeDrawable |
osg::ShapeDrawable so that we can change the color of the box |
Convenience class for creating a box node. Subclasses osg::Geode.
osgGolems::Box::Box | ( | const osg::Vec3 & | center, |
float | width, | ||
const osg::Vec4 & | color = osg::Vec4(0,0,0,1) |
||
) | [inline] |
Creates a box node.
center | osg::Vec3 reference specifying the center of the box in meters |
width | The width of the box in meters |
color | The color of the box in rgba format in range (0,1) |
void osgGolems::Box::setCenter | ( | const osg::Vec3 & | newCenter | ) | [inline] |
Sets the center of the box in meters.
newCenter | osg::Vec3 reference for the center |
void osgGolems::Box::setColor | ( | const osg::Vec4 & | newColor | ) | [inline] |
Sets the color of the box.
newColor | osg::Vec4 reference for the color in rgba format in range (0,1) |