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

Public Member Functions | |
| Dt2DRectangleStateVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) | |
| virtual | ~Dt2DRectangleStateVisualizer () |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setFlashing (bool flashing) |
| virtual void | setDimensions (double xLength, double yLength) |
| virtual void | setBottomLeftCorner (double x, double y) |
| virtual void | setRotation (double rotation) |
| virtual void | setScale (double scale) |
| virtual void | setFillPattern (unsigned int pattern) |
| virtual void | setFill (bool fill) |
| virtual void | updateVertices () |
| virtual const DtStateVisualizer::TypeInfo & | typeInfo () const |
Public Member Functions inherited from makVrv::DtRemoteGraphicVisualizer | |
| DtRemoteGraphicVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) | |
| virtual | ~DtRemoteGraphicVisualizer () |
| virtual void | initialize () override |
| virtual void | setActive (bool active) |
| virtual void | setLayerName (const std::string &layerName) |
| virtual void | setProjected (bool projected) |
Public Member Functions inherited from makVrv::DtStateVisualizer | |
| DtStateVisualizer (DtBaseConnection &connection, DtStateListener &listener, DtSceneObjectAgent *sceneObjectAgent, DtModelSetId modelSet) | |
| virtual | ~DtStateVisualizer () |
| virtual DtModelSetId | modelSet () |
| virtual void | setSceneObjectAgent (DtSceneObjectAgent *sceneObject) |
| void | setModelDefinition (const std::string &definition) |
| const std::string & | modelDefinition () const |
| virtual void | implementVisibility (bool visible) |
| virtual void | slot_setSelected (bool b) |
| void | setName (const std::string &) |
| const std::string & | name () const |
| virtual void | setPickable (bool) |
| virtual bool | pickable () const |
| virtual DtUniqueID | sceneObjectID () const |
| int | visualizerType () const |
| virtual void | setVisualizerDefinition (const DtVisualizerDefinition &) |
| DtStateListener & | listener () |
| const DtStateListener & | listener () const |
| DtBaseConnection & | simulation () |
| void | setDistribute (bool b) |
| bool | distribute () const |
| virtual bool | isVisible () const |
| virtual bool | setVisualizerIsVisible (bool vis, DtVisualizerShowHideContext::VisualizerShowHideContext context) |
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::DtRemoteGraphicVisualizer | |
| virtual void | connectToListenerSignals () override |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | makeVisible () |
| 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 |
| double | myWidth |
| double | myHeight |
| double | myBottomLeftX |
| double | myBottomLeftY |
Protected Attributes inherited from makVrv::DtRemoteGraphicVisualizer | |
| bool | myActive |
| bool | myFlashing |
| std::vector< std::string > | myLayers |
| std::string | myLayerName |
| bool | myRemoteGraphicsEnabled |
| bool | myProjected |
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 |
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::Dt2DRectangleStateVisualizer::Dt2DRectangleStateVisualizer | ( | 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::DtRemoteGraphicVisualizer.
|
virtual |
Set the percentage of the screen that the rectangle's width (x) and height (y) take up.
|
virtual |
Set the location of the rectangle's bottom left corner as a percentage of the screen width (x) and height (y).
|
virtual |
Set the rotation of the rectangle in radians. The rotation is clockwise around the center of the rectangle.
|
virtual |
Set the scale factor of the rectangle.
Set the fill pattern of the rectangle, according to OpenGL polygon stippling.
|
virtual |
Set the rectangle's drawing style to filled or outlined.
|
virtual |
Update the agent's vertices according to width/height and bottom left corner.
|
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::DtRemoteGraphicVisualizer.
|
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 |
|
protected |
|
protected |
|
protected |
|
protected |