![]() |
VR-Forces Developer's Guide
|
Visualizer for 2d triangle remote graphics.

Static Public Member Functions | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
Protected Member Functions | |
| virtual void | setVisible (bool yesNo) |
| virtual void | createModelAgents () |
| virtual void | destroyModelAgents () |
| virtual void | setModelDefinitionForAgents () |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | connectToListenerSignals () |
| virtual void | makeVisible () |
| virtual bool | isVisible () const |
| virtual void | setInitialValuesFromVisualizerDefinition () |
| template<typename T , typename C > | |
| void | connectAndUpdate (boost::signalslib::signal< void(T)> &sig, void(C::*fp)(T), T val) |
Protected Attributes | |
| DtWindowPolygonAgent * | myPolygonAgent |
| DtVisibilityAdapter < DtWindowPolygonAgent > * | myVisibilityAdapter |
Protected Attributes inherited from makVrv::DtStateVisualizer | |
| DtBaseConnection & | mySimulation |
| DtStateListener & | myListener |
| bool | myDistributeFlag |
| DtUniqueID | mySceneObjectID |
| std::string | myName |
| std::string | myModelDefinition |
| DtSignalConnectionManager | myConnections |
| DtModelSetId | myModelSet |
| int | myVisualizerType |
| bool | myPickable |
| bool | myVisible |
| const DtVisualizerDefinition * | myVisualizerDefinition |
| DtSceneObjectAgent * | mySceneObjectAgent |
| bool | myInitialInitializeDone |
| ShowHideContextVector | myVisualizerShowHideContexts |
Protected Attributes inherited from makVrv::DtRemoteGraphicVisualizerAttributes | |
| bool | myActive |
| bool | myFlashing |
| std::vector< std::string > | myLayers |
| std::string | myLayerName |
| bool | myRemoteGraphicsEnabled |
Additional Inherited Members | |
Public Types inherited from makVrv::DtStateVisualizer | |
| enum | Type { AllVisualizerTypes = 0, EntityVisualizerType = 1, EnvironmentalVisualizerType, InteractionVisualizerType, AggregateVisualizerType, IntervisibilityVisualizerType, TacticalSmokeVisualizerType, UserType = 10000 } |
Protected Types inherited from makVrv::DtStateVisualizer | |
| typedef std::vector < DtVisualizerShowHideContext::VisualizerShowHideContext > | ShowHideContextVector |
| makVrv::Dt2DTriangleStateVisualizer::Dt2DTriangleStateVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the rectangle's color.
|
virtual |
Set the rectangle's flashing state (similar to HTML blink)
Implements makVrv::DtRemoteGraphicVisualizerAttributes.
|
virtual |
Set the location of the triangle's index'th vertex as a percentage of the screen width (x) and height (y).
Set the fill pattern of the triangle, according to OpenGL polygon stippling.
|
virtual |
Set the triangle to be filled or outlined.
|
virtual |
The instance's type info.
Implements makVrv::DtStateVisualizer.
|
static |
This class's type info.
|
protectedvirtual |
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.
|
protectedvirtual |
Create the visual models, or do nothing if they already exist.
Implements makVrv::DtStateVisualizer.
|
protectedvirtual |
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).
Implements makVrv::DtStateVisualizer.
|
protectedvirtual |
Not implemented.
Implements makVrv::DtStateVisualizer.
|
protected |
|
protected |