Grip-Reloaded
Grip version visualizaiton interface for DART (DynamicAnimationandRoboticsToolkits)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Protected Attributes
osgGolems::Box Class Reference

Convenience class for creating a box node. Subclasses osg::Geode. More...

#include <Shapes.h>

List of all members.

Public Member Functions

 Box (const osg::Vec3 &center, 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

Detailed Description

Convenience class for creating a box node. Subclasses osg::Geode.


Constructor & Destructor Documentation

osgGolems::Box::Box ( const osg::Vec3 &  center,
float  width,
const osg::Vec4 &  color = osg::Vec4(0,0,0,1) 
) [inline]

Creates a box node.

Parameters:
centerosg::Vec3 reference specifying the center of the box in meters
widthThe width of the box in meters
colorThe color of the box in rgba format in range (0,1)

Member Function Documentation

void osgGolems::Box::setCenter ( const osg::Vec3 &  newCenter) [inline]

Sets the center of the box in meters.

Parameters:
newCenterosg::Vec3 reference for the center
Returns:
void
void osgGolems::Box::setColor ( const osg::Vec4 &  newColor) [inline]

Sets the color of the box.

Parameters:
newColorosg::Vec4 reference for the color in rgba format in range (0,1)
Returns:
void

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