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

Classes | |
| struct | CuboidParameters |
Public Member Functions | |
| virtual | ~DtCuboidModelInstance () |
| DTOR. | |
| virtual void | setDimensions (double x, double y, double z) |
| Set the dimensions of the cube. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the color of the cube. | |
| 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 CuboidParameters | defaultParameters |
| Default values for the cuboid parameters. | |
Protected Member Functions | |
| DtCuboidModelInstance (DtDe &de) | |
| CTOR. | |
| virtual void | build (const CuboidParameters ¶meters) |
| Build the cuboid geometry from a parameter set. | |
Protected Attributes | |
| CuboidParameters | myParameters |
| The current parameter set. | |
| osg::ref_ptr< osg::Geode > | myGeode |
Friends | |
| class | DtCuboidModelInstanceCreator |
Model instance to draw a cuboid.
| virtual makVrv::DtCuboidModelInstance::~DtCuboidModelInstance | ( | ) | [virtual] |
DTOR.
| makVrv::DtCuboidModelInstance::DtCuboidModelInstance | ( | DtDe & | de | ) | [protected] |
CTOR.
| virtual void makVrv::DtCuboidModelInstance::setDimensions | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) | [virtual] |
Set the dimensions of the cube.
| virtual void makVrv::DtCuboidModelInstance::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color of the cube.
| virtual bool makVrv::DtCuboidModelInstance::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::DtCuboidModelInstance::addToConnector | ( | DtOsgSceneConnector * | connector | ) | [virtual] |
Tell the model instance to add itself to the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
| virtual bool makVrv::DtCuboidModelInstance::removeFromConnector | ( | DtOsgSceneConnector * | connector | ) | [virtual] |
Tell the model instance to remove itself from the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
| virtual void makVrv::DtCuboidModelInstance::setVisible | ( | bool | isVisible | ) | [inline, virtual] |
no-op
Implements makVrv::DtModelInstance.
| virtual void makVrv::DtCuboidModelInstance::build | ( | const CuboidParameters & | parameters | ) | [protected, virtual] |
Build the cuboid geometry from a parameter set.
friend class DtCuboidModelInstanceCreator [friend] |
const CuboidParameters makVrv::DtCuboidModelInstance::defaultParameters [static] |
Default values for the cuboid parameters.
The current parameter set.
osg::ref_ptr<osg::Geode> makVrv::DtCuboidModelInstance::myGeode [protected] |