Convenience class for creating a cone node. Subclasses osg::Geode.
More...
#include <Shapes.h>
List of all members.
Public Member Functions |
| Cone (const osg::Vec3 ¢er, float radius, float height, const osg::Vec4 &color=osg::Vec4(0, 0, 0, 1)) |
| Creates a cone node.
|
void | setColor (const osg::Vec4 &newColor) |
| Sets the color of the cone.
|
void | setRadius (float newRadius) |
| Sets the radius of the the cone in meters.
|
void | setHeight (float newHeight) |
| Sets the height of the the cone in meters.
|
Protected Attributes |
osg::Cone * | _cone |
| osg::Cone object so that we can change the dimensions of the cone
|
osg::ShapeDrawable * | _shapeDrawable |
| osg::ShapeDrawable object so that we can change the color of the cone
|
Detailed Description
Convenience class for creating a cone node. Subclasses osg::Geode.
Constructor & Destructor Documentation
osgGolems::Cone::Cone |
( |
const osg::Vec3 & |
center, |
|
|
float |
radius, |
|
|
float |
height, |
|
|
const osg::Vec4 & |
color = osg::Vec4(0,0,0,1) |
|
) |
| [inline] |
Creates a cone node.
- Parameters:
-
center | osg::Vec3 reference specifying the center of the cone in meters |
height | The height of the cone in meters |
color | The color of the cone in rgba format in range (0,1) |
Member Function Documentation
Sets the color of the cone.
- Parameters:
-
newColor | osg::Vec4 reference for the color in rgba format in range (0,1) |
- Returns:
- void
Sets the height of the the cone in meters.
- Parameters:
-
newHeight | osg::Vec3 reference for the height |
- Returns:
- void
Sets the radius of the the cone in meters.
- Parameters:
-
newRadius | osg::Vec3 reference for the radius |
- Returns:
- void
The documentation for this class was generated from the following file:
- /home/pete/myRepos/grip2/osgGolems/Shapes.h