![]() |
VR-Forces 4.6.1 Class Documentation
|
Visualizer for entity track histories; places a 3d ribbon behind the entity, which tracks the location history of the entity. More...

Public Member Functions | |
| DtEntityTrackHistoryVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet) | |
| CTOR. | |
| virtual | ~DtEntityTrackHistoryVisualizer () |
| DTOR. | |
| virtual void | setTrackHistoryEnabled (bool) |
| Sets whether the track history is enabled (visible). | |
| bool | trackHistoryEnabled () const |
| Gets whether the track history is currently enabled (visible). | |
| virtual bool | active () const |
| Returns true if model should be visible. | |
| virtual void | setColor (float r, float g, float b, float alpha) |
| override color in the model definition | |
| virtual const DtStateVisualizer::TypeInfo & | typeInfo () const |
| The instance's type info. | |
Public Member Functions inherited from makVrv::DtEntityStateVisualizer | |
| DtEntityStateVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet) | |
| CTOR. | |
| virtual | ~DtEntityStateVisualizer () |
| DTOR. | |
| virtual void | setState (int stateNumber, int stateValue) |
| Override to set the attribute state of agents. | |
| DtEntityStateListener & | entityStateListener () |
Public Member Functions inherited from makVrv::DtStateVisualizer | |
| DtStateVisualizer (DtBaseConnection &connection, DtStateListener &listener, int modelSet) | |
| CTOR. | |
| virtual | ~DtStateVisualizer () |
| DTOR. | |
| virtual void | setParent (DtStateVisualizer *) |
| Override to set the parent of this visualizer. | |
| void | setModelDefinition (const std::string &definition) |
| Sets the model definition and creates agent(s) based on that definition. | |
| const std::string & | modelDefinition () const |
| Gets the current model definition. | |
| virtual bool | setVisible (bool visible, int context) |
| Returns true if this context wants to show or hide the item. | |
| virtual void | initialize () |
| Initialize the visualizer. | |
| virtual bool | isVisible () const |
| Returns true if visible. | |
| virtual void | setSelected (bool) |
| Sets selected state. | |
| virtual bool | selected () const |
| void | setName (const std::string &) |
| Internal name of state visualizer. | |
| const std::string & | name () const |
| virtual void | setPickable (bool) |
| Sets pickable state. | |
| virtual bool | pickable () const |
| virtual void | setUniqueID (DtUniqueID id) |
| DtUniqueID | uniqueID () const |
| int | visualizerType () const |
| void | setShowHideContext (const std::vector< int > &s) |
| Set show/hide context without changing visibility of item. | |
| DtStateListener & | listener () |
| DtBaseConnection & | simulation () |
| Get the connection for this visualizer. | |
| void | setDistribute (bool b) |
| Whether or not to distribute over the network. | |
| bool | distribute () const |
Static Public Member Functions | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
| This class's type info. | |
Protected Member Functions | |
| void | setEmbarked (bool b) |
| Set whether the entity is embarked or not (update track history visibility). | |
| virtual void | updateActivity () |
| Ensure model agents are created or destroyed as visibility changes. | |
| virtual void | createModelAgents () |
| Creates model agents for visualizing the track history. | |
| virtual void | destroyModelAgents () |
| Destroys the model agents used to visualize the track history. | |
| virtual void | updateColor () |
| Applies the color (set by setColor(float,float,float,float) to the track history. | |
| virtual void | setModelDefinitionForAgents () |
| Tells the track history model agents to use the current model definition. | |
| virtual void | setVisualizerDefinition (const DtVisualizerDefinition &visDef) |
| Sets the visualizer definition to use for visualizing the track history. | |
Track History Setting Changed Slots | |
Updates the track history as the settings change. | |
| virtual void | slot_trackHistoryRibbonSpacingChanged (float spacing) |
| virtual void | slot_trackHistoryRibbonLengthChanged (int maxSamples) |
| virtual void | slot_trackHistoryRibbonInfiniteChanged (bool isInfinite) |
| virtual void | slot_listenerHostGlobalIdSet (const std::string &hostId) |
Protected Attributes | |
| DtRibbonModelAgent * | myTrackHistory |
| DtTrackHistoryUpdaterAgent * | myTrackHistoryUpdater |
| bool | myInfiniteFlag |
| float | mySampleSpacing |
| int | myRibbonLength |
| bool | myTrackHistoryEnabled |
| bool | myEmbarked |
| bool | myOcclusionEnabled |
| bool | myColorSet |
| float | myColor [4] |
Protected Attributes inherited from makVrv::DtEntityStateVisualizer | |
| DtEntityStateListener * | myEntityListener |
| Same as myListener, but casted for convenience. | |
Protected Attributes inherited from makVrv::DtStateVisualizer | |
| DtBaseConnection & | mySimulation |
| DtStateListener & | myListener |
| bool | myDistributeFlag |
| DtUniqueID | myUniqueID |
| std::string | myName |
| std::string | myModelDefinition |
| DtSignalConnectionManager | myConnections |
| int | myModelSet |
| int | myVisualizerType |
| std::vector< int > | myShowHideContexts |
| bool | mySelected |
| bool | myPickable |
| bool | myVisible |
| DtStateVisualizer * | myParent |
| DtSceneObjectAgent * | mySceneObjectAgent |
Additional Inherited Members | |
Public Types inherited from makVrv::DtStateVisualizer | |
| enum | Type { AllVisualizerTypes = 0, EntityVisualizerType = 1, EnvironmentalVisualizerType, InteractionVisualizerType, AggregateVisualizerType, IntervisibilityVisualizerType, TacticalSmokeVisualizerType, UserType = 10000 } |
| Visualizer class types that are supportable via visualizers. More... | |
Public Attributes inherited from makVrv::DtStateVisualizer | |
| boost::signal< void(DtStateVisualizer *, DtStateVisualizer *, DtStateVisualizer *)> | signal_reparented |
| Signaled when the parent of this item changes, called before destroying any model agents. | |
| boost::signal< void(DtMouseState &, const DtUniqueID &, const std::string &, const std::string &, const std::string &, DtStateVisualizer *)> | signal_mouseDown |
| Emitted when the entity's indicator is clicked. | |
| boost::signal< void(DtMouseState &, const DtUniqueID &, const std::string &, const std::string &, const std::string &, DtStateVisualizer *)> | signal_mouseUp |
| boost::signal< void(DtMouseState &, const DtUniqueID &, const std::string &, const std::string &, const std::string &, DtStateVisualizer *)> | signal_mouseDblClick |
Visualizer for entity track histories; places a 3d ribbon behind the entity, which tracks the location history of the entity.
| makVrv::DtEntityTrackHistoryVisualizer::DtEntityTrackHistoryVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| int | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Sets whether the track history is enabled (visible).
| bool makVrv::DtEntityTrackHistoryVisualizer::trackHistoryEnabled | ( | ) | const |
Gets whether the track history is currently enabled (visible).
|
virtual |
Returns true if model should be visible.
Reimplemented in makVrf::DtVrfEntityTrackHistoryVisualizer.
|
virtual |
override color in the model definition
|
virtual |
The instance's type info.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrf::DtSpotReportTrackHistoryVisualizer, and makVrf::VRF_PROTOCOL_NAMESPACE::DtVrfVrlinkAggregateTrackHistoryVisualizer.
|
static |
This class's type info.
Reimplemented in makVrf::DtSpotReportTrackHistoryVisualizer, and makVrf::VRF_PROTOCOL_NAMESPACE::DtVrfVrlinkAggregateTrackHistoryVisualizer.
|
protected |
Set whether the entity is embarked or not (update track history visibility).
Non-virtual (Called from CTOR).
|
protectedvirtual |
Ensure model agents are created or destroyed as visibility changes.
Called from setTrackHistoryEnabled(bool).
|
protectedvirtual |
Creates model agents for visualizing the track history.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrf::DtSpotReportTrackHistoryVisualizer.
|
protectedvirtual |
Destroys the model agents used to visualize the track history.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrf::DtSpotReportTrackHistoryVisualizer.
|
protectedvirtual |
Applies the color (set by setColor(float,float,float,float) to the track history.
|
protectedvirtual |
Tells the track history model agents to use the current model definition.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrf::DtSpotReportTrackHistoryVisualizer.
|
protectedvirtual |
Sets the visualizer definition to use for visualizing the track history.
Reimplemented from makVrv::DtStateVisualizer.
Reimplemented in makVrf::DtVrfEntityTrackHistoryVisualizer.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |