![]() |
VR-Forces 4.0.4 Class Documentation
|
Model instance to draw a cuboid. More...

Classes | |
| struct | AttachedCylinderParameters |
Public Member Functions | |
| DtArticulatingCylinderModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtArticulatingCylinderModelInstance () |
| DTOR. | |
| virtual void | setDimensions (double x, double y, double z) |
| Set the dimensions of the cylinder. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the color of the cylinder. | |
| virtual void | setLightingEnabled (bool enabled) |
| Set lighting enabled or disabled (default disabled) | |
| virtual bool | realize (DtModelDefinition &definition) |
| Attempt to realize a definition. | |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| Tell the model instance to add itself to the provided node. | |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| Tell the model instance to remove itself from the provided node. | |
| virtual void | setVisible (bool isVisible) |
| no-op | |
Static Public Attributes | |
| static const AttachedCylinderParameters | defaultParameters |
| Default values for the cuboid parameters. | |
Protected Member Functions | |
| virtual void | buildGeometry (const AttachedCylinderParameters ¶meters) |
| Build the cylinder's geometry from a parameter set. | |
| virtual void | buildState (const AttachedCylinderParameters ¶meters) |
| Build the cylinder's state from a parameter set. | |
Protected Attributes | |
| AttachedCylinderParameters | myParameters |
| The current parameter set. | |
| osg::ref_ptr< osg::ShapeDrawable > | myCylinderDrawable |
| osg::ref_ptr< osg::Geode > | myFrontGeode |
| Geode to draw the geometry with backface culling. | |
| osg::ref_ptr< osg::Geode > | myBackGeode |
| Geode to draw the geometry with frontface culling. | |
| osg::ref_ptr < osg::MatrixTransform > | myTransform |
Model instance to draw a cuboid.
| virtual makVrv::DtArticulatingCylinderModelInstance::~DtArticulatingCylinderModelInstance | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtArticulatingCylinderModelInstance::setDimensions | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) | [virtual] |
Set the dimensions of the cylinder.
| virtual void makVrv::DtArticulatingCylinderModelInstance::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color of the cylinder.
| virtual void makVrv::DtArticulatingCylinderModelInstance::setLightingEnabled | ( | bool | enabled | ) | [virtual] |
Set lighting enabled or disabled (default disabled)
| virtual bool makVrv::DtArticulatingCylinderModelInstance::realize | ( | DtModelDefinition & | definition | ) | [virtual] |
Attempt to realize a definition.
If the model instance can't realize the definition it should return false.
Reimplemented from makVrv::DtModelInstance.
| virtual void makVrv::DtArticulatingCylinderModelInstance::addToConnector | ( | DtOsgSceneConnector * | connector | ) | [virtual] |
Tell the model instance to add itself to the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
| virtual bool makVrv::DtArticulatingCylinderModelInstance::removeFromConnector | ( | DtOsgSceneConnector * | connector | ) | [virtual] |
Tell the model instance to remove itself from the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
| virtual void makVrv::DtArticulatingCylinderModelInstance::setVisible | ( | bool | isVisible | ) | [inline, virtual] |
no-op
Implements makVrv::DtModelInstance.
| virtual void makVrv::DtArticulatingCylinderModelInstance::buildGeometry | ( | const AttachedCylinderParameters & | parameters | ) | [protected, virtual] |
Build the cylinder's geometry from a parameter set.
| virtual void makVrv::DtArticulatingCylinderModelInstance::buildState | ( | const AttachedCylinderParameters & | parameters | ) | [protected, virtual] |
Build the cylinder's state from a parameter set.
const AttachedCylinderParameters makVrv::DtArticulatingCylinderModelInstance::defaultParameters [static] |
Default values for the cuboid parameters.
The current parameter set.
osg::ref_ptr<osg::ShapeDrawable> makVrv::DtArticulatingCylinderModelInstance::myCylinderDrawable [protected] |
osg::ref_ptr<osg::Geode> makVrv::DtArticulatingCylinderModelInstance::myFrontGeode [protected] |
Geode to draw the geometry with backface culling.
osg::ref_ptr<osg::Geode> makVrv::DtArticulatingCylinderModelInstance::myBackGeode [protected] |
Geode to draw the geometry with frontface culling.
osg::ref_ptr<osg::MatrixTransform> makVrv::DtArticulatingCylinderModelInstance::myTransform [protected] |