![]() |
VR-Forces 4.0.4 Class Documentation
|
Dt3DAreaStateVisualizer objects are responsible for visualizing 3D areas. More...

Public Member Functions | |
| Dt3DAreaStateVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet) | |
| Constructor. | |
| virtual | ~Dt3DAreaStateVisualizer () |
| Destructor. | |
| virtual void | setVertices (const std::vector< DtVector > &vertices) |
| Sets the locations of the vertices (in database coordinates) | |
| virtual void | setColor (float r, float g, float b, float a) |
| Sets the color of the area. | |
| virtual void | setFlashing (bool flashing) |
| Sets whether the area is flashing. | |
| virtual void | setTexturePath (const std::string &path) |
| Sets the path of the texture (including filename). | |
| virtual void | setNumberOfTextureTiles (int num) |
| Sets the number of texture tiles. | |
| 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) |
| Set the visuals visible or invisible. | |
| virtual void | createModelAgents () |
| Create the visual models, or do nothing if they already exist. | |
| virtual void | destroyModelAgents () |
| Destroy the visual models. | |
| virtual void | setModelDefinitionForAgents () |
| Not implemented. | |
Protected Attributes | |
| DtPolygonModelAgent * | myPolygonModelAgent |
| DtVisibilityAdapter < DtPolygonModelAgent > * | myVisibilityAdapter |
Dt3DAreaStateVisualizer objects are responsible for visualizing 3D areas.
| makVrv::Dt3DAreaStateVisualizer::Dt3DAreaStateVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| int | modelSet | ||
| ) |
Constructor.
| virtual makVrv::Dt3DAreaStateVisualizer::~Dt3DAreaStateVisualizer | ( | ) | [virtual] |
Destructor.
| virtual void makVrv::Dt3DAreaStateVisualizer::setVertices | ( | const std::vector< DtVector > & | vertices | ) | [virtual] |
Sets the locations of the vertices (in database coordinates)
| virtual void makVrv::Dt3DAreaStateVisualizer::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Sets the color of the area.
| virtual void makVrv::Dt3DAreaStateVisualizer::setFlashing | ( | bool | flashing | ) | [virtual] |
Sets whether the area is flashing.
Implements makVrv::DtRemoteGraphicVisualizerAttributes.
| virtual void makVrv::Dt3DAreaStateVisualizer::setTexturePath | ( | const std::string & | path | ) | [virtual] |
Sets the path of the texture (including filename).
| virtual void makVrv::Dt3DAreaStateVisualizer::setNumberOfTextureTiles | ( | int | num | ) | [virtual] |
Sets the number of texture tiles.
| virtual const DtStateVisualizer::TypeInfo& makVrv::Dt3DAreaStateVisualizer::typeInfo | ( | ) | const [virtual] |
The instance's type info.
Implements makVrv::DtStateVisualizer.
| static const DtStateVisualizer::TypeInfo& makVrv::Dt3DAreaStateVisualizer::theTypeInfo | ( | ) | [static] |
This class's type info.
| virtual void makVrv::Dt3DAreaStateVisualizer::setVisible | ( | bool | yesNo | ) | [protected, virtual] |
Set the visuals visible or invisible.
This maintains the state of the visual objects, and calling setVisible(false) should not be expected to provide any performance benefit.
Implements makVrv::DtRemoteGraphicVisualizerAttributes.
| virtual void makVrv::Dt3DAreaStateVisualizer::createModelAgents | ( | ) | [protected, virtual] |
Create the visual models, or do nothing if they already exist.
Reimplemented from makVrv::DtSceneObjectVisualizer.
| virtual void makVrv::Dt3DAreaStateVisualizer::destroyModelAgents | ( | ) | [protected, virtual] |
Destroy the visual models.
This does not maintain their state; for example, calling setFlashing(true); destroyModelAgents(); createModelAgents(); will result in models with the default value of flashing, which is false.
Destroying models generally provides some performance benefit, as compared to calling setVisible(false).
Reimplemented from makVrv::DtSceneObjectVisualizer.
| virtual void makVrv::Dt3DAreaStateVisualizer::setModelDefinitionForAgents | ( | ) | [protected, virtual] |
Not implemented.
Reimplemented from makVrv::DtSceneObjectVisualizer.
DtPolygonModelAgent* makVrv::Dt3DAreaStateVisualizer::myPolygonModelAgent [protected] |
DtVisibilityAdapter<DtPolygonModelAgent>* makVrv::Dt3DAreaStateVisualizer::myVisibilityAdapter [protected] |