![]() |
VR-Forces 4.0.4 Class Documentation
|
DtCylinderStateVisualizer objects are responsible for visualizing cylinder objects. More...

Public Member Functions | |
| DtCylinderStateVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet) | |
| Constructor. | |
| virtual | ~DtCylinderStateVisualizer () |
| Destructor. | |
| virtual void | setDiameters (double length, double width, double height) |
| Sets the diameters of the cylinder. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Sets the color of the cylinder. | |
| virtual void | setFlashing (bool flashing) |
| Sets whether the cylinder is flashing. | |
| virtual void | setStartLocation (const DtVector &pos) |
| Sets the start location of the cylinder. | |
| virtual void | setEndLocation (const DtVector &endpoint) |
| Sets the end location of the cylinder. Only used for fixed cylinders. | |
| virtual void | setOrientation (const DtTaitBryan &orientation) |
| Sets the orientation of the cylinder. | |
| virtual void | setAttached (DtUniqueID id, int vtx, double percentage) |
| Sets the cylinder's attachment. | |
| virtual void | setHostId (const std::string &id, int vtx, double percentage) |
| Sets the cylinder's host ID. Overridden by child class. | |
| virtual void | setOffset (const DtVector &offset) |
| Sets the offset of an attached cylinder. | |
| virtual void | setCylinderType (DtCylinderStateListener::DtCylinderType cylinderType) |
| Sets whether the cylinder is articulating or fixed. | |
| 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. | |
| virtual void | setFixedAttached (DtUniqueID id, int vtx, double percentage) |
| virtual void | setArticulatedAttached (DtUniqueID id, int vtx, double percentage) |
Protected Attributes | |
| DtCylinderModelAgent * | myFixedCylinderModelAgent |
| DtVisibilityAdapter < DtCylinderModelAgent > * | myFixedVisibilityAdapter |
| DtArticulatingCylinderModelAgent * | myArticulatingCylinderModelAgent |
| DtVisibilityAdapter < DtArticulatingCylinderModelAgent > * | myArticulatingVisibilityAdapter |
| DtAttachableUpdaterAgent * | myUpdaterAgent |
| DtAttachableDeadReckonUpdaterAgent * | myDRUpdaterAgent |
| bool | myVertex0Attached |
| bool | myVertex1Attached |
DtCylinderStateVisualizer objects are responsible for visualizing cylinder objects.
| makVrv::DtCylinderStateVisualizer::DtCylinderStateVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| int | modelSet | ||
| ) |
Constructor.
| virtual makVrv::DtCylinderStateVisualizer::~DtCylinderStateVisualizer | ( | ) | [virtual] |
Destructor.
| virtual void makVrv::DtCylinderStateVisualizer::setDiameters | ( | double | length, |
| double | width, | ||
| double | height | ||
| ) | [virtual] |
Sets the diameters of the cylinder.
| virtual void makVrv::DtCylinderStateVisualizer::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Sets the color of the cylinder.
| virtual void makVrv::DtCylinderStateVisualizer::setFlashing | ( | bool | flashing | ) | [virtual] |
Sets whether the cylinder is flashing.
Implements makVrv::DtRemoteGraphicVisualizerAttributes.
| virtual void makVrv::DtCylinderStateVisualizer::setStartLocation | ( | const DtVector & | pos | ) | [virtual] |
Sets the start location of the cylinder.
| virtual void makVrv::DtCylinderStateVisualizer::setEndLocation | ( | const DtVector & | endpoint | ) | [virtual] |
Sets the end location of the cylinder. Only used for fixed cylinders.
| virtual void makVrv::DtCylinderStateVisualizer::setOrientation | ( | const DtTaitBryan & | orientation | ) | [virtual] |
Sets the orientation of the cylinder.
Only used for articulating cylinders.
| virtual void makVrv::DtCylinderStateVisualizer::setAttached | ( | DtUniqueID | id, |
| int | vtx, | ||
| double | percentage | ||
| ) | [virtual] |
Sets the cylinder's attachment.
| id | Unique ID of the parent object |
| vtx | Which vertex (0 or 1) of the cylinder to attach |
| percentage | Percentage between vertices to attach to, if the attached object is a cylinder or line |
| virtual void makVrv::DtCylinderStateVisualizer::setHostId | ( | const std::string & | id, |
| int | vtx, | ||
| double | percentage | ||
| ) | [virtual] |
Sets the cylinder's host ID. Overridden by child class.
| virtual void makVrv::DtCylinderStateVisualizer::setOffset | ( | const DtVector & | offset | ) | [virtual] |
Sets the offset of an attached cylinder.
| virtual void makVrv::DtCylinderStateVisualizer::setCylinderType | ( | DtCylinderStateListener::DtCylinderType | cylinderType | ) | [virtual] |
Sets whether the cylinder is articulating or fixed.
Must be called *before other values are set.
| virtual const DtStateVisualizer::TypeInfo& makVrv::DtCylinderStateVisualizer::typeInfo | ( | ) | const [virtual] |
The instance's type info.
Implements makVrv::DtStateVisualizer.
| static const DtStateVisualizer::TypeInfo& makVrv::DtCylinderStateVisualizer::theTypeInfo | ( | ) | [static] |
This class's type info.
| virtual void makVrv::DtCylinderStateVisualizer::setVisible | ( | bool | yesNo | ) | [protected, virtual] |
Implements makVrv::DtRemoteGraphicVisualizerAttributes.
| virtual void makVrv::DtCylinderStateVisualizer::createModelAgents | ( | ) | [protected, virtual] |
Creates the model agent. If already created, makes it visible.
Reimplemented from makVrv::DtSceneObjectVisualizer.
| virtual void makVrv::DtCylinderStateVisualizer::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::DtCylinderStateVisualizer::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.
| virtual void makVrv::DtCylinderStateVisualizer::setFixedAttached | ( | DtUniqueID | id, |
| int | vtx, | ||
| double | percentage | ||
| ) | [protected, virtual] |
| virtual void makVrv::DtCylinderStateVisualizer::setArticulatedAttached | ( | DtUniqueID | id, |
| int | vtx, | ||
| double | percentage | ||
| ) | [protected, virtual] |
DtCylinderModelAgent* makVrv::DtCylinderStateVisualizer::myFixedCylinderModelAgent [protected] |
DtVisibilityAdapter<DtCylinderModelAgent>* makVrv::DtCylinderStateVisualizer::myFixedVisibilityAdapter [protected] |
DtArticulatingCylinderModelAgent* makVrv::DtCylinderStateVisualizer::myArticulatingCylinderModelAgent [protected] |
DtVisibilityAdapter<DtArticulatingCylinderModelAgent>* makVrv::DtCylinderStateVisualizer::myArticulatingVisibilityAdapter [protected] |
DtAttachableUpdaterAgent* makVrv::DtCylinderStateVisualizer::myUpdaterAgent [protected] |
DtAttachableDeadReckonUpdaterAgent* makVrv::DtCylinderStateVisualizer::myDRUpdaterAgent [protected] |