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

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

#include <Shapes.h>

List of all members.

Public Member Functions

 Capsule (const osg::Vec3 &center, float radius, float height, const osg::Vec4 &color=osg::Vec4(0, 0, 0, 1))
 Creates a capsule node.
void setColor (const osg::Vec4 &newColor)
 Sets the color of the capsule.
void setRadius (float newRadius)
 Sets the radius of the the capsule in meters.
void setHeight (float newHeight)
 Sets the height of the the capsule in meters.

Protected Attributes

osg::Capsule * _capsule
 osg::Capsule object so the we can change the dimensions of the capsule
osg::ShapeDrawable * _shapeDrawable
 osg::ShapeDrawable so that we can change the color of the capsule

Detailed Description

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


Constructor & Destructor Documentation

osgGolems::Capsule::Capsule ( const osg::Vec3 &  center,
float  radius,
float  height,
const osg::Vec4 &  color = osg::Vec4(0,0,0,1) 
) [inline]

Creates a capsule node.

Parameters:
centerosg::Vec3 reference specifying the center of the capsule in meters
radiusThe radius of the capsule in meters
heightThe height of the capsule in meters
colorThe color of the capsule in rgba format in range (0,1)

Member Function Documentation

void osgGolems::Capsule::setColor ( const osg::Vec4 &  newColor) [inline]

Sets the color of the capsule.

Parameters:
newColorosg::Vec4 reference for the color in rgba format in range (0,1)
Returns:
void
void osgGolems::Capsule::setHeight ( float  newHeight) [inline]

Sets the height of the the capsule in meters.

Parameters:
newHeightosg::Vec3 reference for the height
Returns:
void
void osgGolems::Capsule::setRadius ( float  newRadius) [inline]

Sets the radius of the the capsule in meters.

Parameters:
newRadiusosg::Vec3 reference for the radius
Returns:
void

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