![]() |
VR-Forces 4.0.4 Class Documentation
|
DtCuboidStateVisualizer objects are responsible for displaying cuboid object. More...

Public Member Functions | |
| DtCuboidStateVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet) | |
| Constructor. | |
| virtual | ~DtCuboidStateVisualizer () |
| Destructor. | |
| virtual void | setDimensions (const DtVector &dim) |
| Sets the dimensions of the cuboid. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Sets the color of the cuboid. | |
| virtual void | setFlashing (bool flashing) |
| Sets whether the cuboid is flashing. | |
| virtual void | setPosition (const DtVector &pos) |
| Sets the position of the cuboid in database coordinates, or body coordinates (if attached) | |
| virtual void | setOrientation (const DtTaitBryan &orientation) |
| Sets the orientation of the cuboid in database coordinates. | |
| virtual void | setAttached (DtUniqueID id, int vtx, double percentage) |
| Attaches the cuboid to the unique ID specified. | |
| virtual void | setHostId (const std::string &id, int vtx, double percentage) |
| Sets the host ID attached to. Overridden by child classes. | |
| virtual const DtStateVisualizer::TypeInfo & | typeInfo () const |
| The instance's type info. | |
Static Public Member Functions | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
| This class's type info. | |
Protected Member Functions | |
| virtual void | setVisible (bool yesNo) |
| virtual void | createModelAgents () |
| Creates the model agent. If already created, makes it visible. | |
| virtual void | destroyModelAgents () |
| Model agent is only destroyed in destructor. | |
| virtual void | setModelDefinitionForAgents () |
| Sets model definition for all the agents that this visualizer might be using. | |
Protected Attributes | |
| DtAttachableCuboidModelAgent * | myCuboidModelAgent |
| DtAttachableDeadReckonUpdaterAgent * | myAttachedUpdaterAgent |
| DtVisibilityAdapter < DtAttachableCuboidModelAgent > * | myVisibilityAdapter |
DtCuboidStateVisualizer objects are responsible for displaying cuboid object.
| makVrv::DtCuboidStateVisualizer::DtCuboidStateVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| int | modelSet | ||
| ) |
Constructor.
| virtual makVrv::DtCuboidStateVisualizer::~DtCuboidStateVisualizer | ( | ) | [virtual] |
Destructor.
| virtual void makVrv::DtCuboidStateVisualizer::setDimensions | ( | const DtVector & | dim | ) | [virtual] |
Sets the dimensions of the cuboid.
| virtual void makVrv::DtCuboidStateVisualizer::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Sets the color of the cuboid.
| virtual void makVrv::DtCuboidStateVisualizer::setFlashing | ( | bool | flashing | ) | [virtual] |
Sets whether the cuboid is flashing.
Implements makVrv::DtRemoteGraphicVisualizerAttributes.
| virtual void makVrv::DtCuboidStateVisualizer::setPosition | ( | const DtVector & | pos | ) | [virtual] |
Sets the position of the cuboid in database coordinates, or body coordinates (if attached)
| virtual void makVrv::DtCuboidStateVisualizer::setOrientation | ( | const DtTaitBryan & | orientation | ) | [virtual] |
Sets the orientation of the cuboid in database coordinates.
| virtual void makVrv::DtCuboidStateVisualizer::setAttached | ( | DtUniqueID | id, |
| int | vtx, | ||
| double | percentage | ||
| ) | [virtual] |
Attaches the cuboid to the unique ID specified.
| id | Unique ID of the object attached to, if 0, detaches |
| vtx | ignored |
| percentage | Specifies the percentage between 2 vertices if attached to a line or cylinder |
| virtual void makVrv::DtCuboidStateVisualizer::setHostId | ( | const std::string & | id, |
| int | vtx, | ||
| double | percentage | ||
| ) | [virtual] |
Sets the host ID attached to. Overridden by child classes.
| virtual const DtStateVisualizer::TypeInfo& makVrv::DtCuboidStateVisualizer::typeInfo | ( | ) | const [virtual] |
The instance's type info.
Implements makVrv::DtStateVisualizer.
| static const DtStateVisualizer::TypeInfo& makVrv::DtCuboidStateVisualizer::theTypeInfo | ( | ) | [static] |
This class's type info.
| virtual void makVrv::DtCuboidStateVisualizer::setVisible | ( | bool | yesNo | ) | [protected, virtual] |
Implements makVrv::DtRemoteGraphicVisualizerAttributes.
| virtual void makVrv::DtCuboidStateVisualizer::createModelAgents | ( | ) | [protected, virtual] |
Creates the model agent. If already created, makes it visible.
Reimplemented from makVrv::DtSceneObjectVisualizer.
| virtual void makVrv::DtCuboidStateVisualizer::destroyModelAgents | ( | ) | [protected, virtual] |
Model agent is only destroyed in destructor.
Here, it will be hidden (if it has been created)
Reimplemented from makVrv::DtSceneObjectVisualizer.
| virtual void makVrv::DtCuboidStateVisualizer::setModelDefinitionForAgents | ( | ) | [protected, virtual] |
Sets model definition for all the agents that this visualizer might be using.
If model agents are not created, should create them. Should not call this directly, but rather call setModelDefinition
Reimplemented from makVrv::DtSceneObjectVisualizer.
DtAttachableCuboidModelAgent* makVrv::DtCuboidStateVisualizer::myCuboidModelAgent [protected] |
DtAttachableDeadReckonUpdaterAgent* makVrv::DtCuboidStateVisualizer::myAttachedUpdaterAgent [protected] |
DtVisibilityAdapter<DtAttachableCuboidModelAgent>* makVrv::DtCuboidStateVisualizer::myVisibilityAdapter [protected] |