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

Public Member Functions | |
| Dt2DLineStateVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) | |
| virtual | ~Dt2DLineStateVisualizer () |
| virtual void | setNumSegments (unsigned int numSegments) |
| virtual void | setSegmentPercentage (unsigned int segmentIndex, double percentage) |
| virtual void | setSegmentStyle (unsigned int segmentIndex, int lineStyle) |
| virtual void | setSegmentArrowStyle (unsigned int segmentIndex, int arrowStyle) |
| virtual void | setSegmentWidth (unsigned int segmentIndex, unsigned int width) |
| virtual void | setSegmentStipplePattern (unsigned int segmentIndex, unsigned int pattern) |
| virtual void | setSegmentColor (unsigned int segmentIndex, float r, float g, float b, float a) |
| virtual void | setFlashing (bool blinking) |
| virtual void | setStartVertex (double x, double y) |
| virtual void | setEndVertex (double x, double y) |
| 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 Types | |
| typedef std::vector< double > | Segments |
Protected Types inherited from makVrv::DtStateVisualizer | |
| typedef std::vector < DtVisualizerShowHideContext::VisualizerShowHideContext > | ShowHideContextVector |
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 | |
| DtWindowLineAgent * | myLineAgent |
| DtVisibilityAdapter < DtWindowLineAgent > * | myVisibilityAdapter |
| Segments | mySegments |
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 |
| makVrv::Dt2DLineStateVisualizer::Dt2DLineStateVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
Set the number of segments in the line.
|
virtual |
Set the percentage of the total line that the segment at segmentIndex makes up.
|
virtual |
Set the style of the segment at segmentIndex.
See VrfVrlExt documentation for the values of lineStyle
|
virtual |
Set the arrow style of the segment at segmentIndex.
See VrfVrlExt documentation for the values of arrowStyle
|
virtual |
Set the width of the segment at segmentIndex.
|
virtual |
Set the OpenGL stipple pattern of the segment at segment index.
|
virtual |
Set the color of a segment.
|
virtual |
Set the line to blink or not blink.
Implements makVrv::DtRemoteGraphicVisualizer.
Set the location of the line's start vertex in normalized (0-1) screen coordinates.
For example, setStartVertex(0.5, 0.7) sets the line's starting vertex to 50% of the screen horizontally and 70% of the screen vertically.
Set the location of the line's end vertex in normalized (0-1) screen coordinates.
For example, setEndVertex(0.5, 0.7) sets the line's ending vertex to 50% of the screen horizontally and 70% of the screen vertically.
|
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 |