VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtEntityTrackHistoryVisualizer Class Reference

Visualizer for entity track histories; places a 3d ribbon behind the entity, which tracks the location history of the entity. More...

Inheritance diagram for makVrv::DtEntityTrackHistoryVisualizer:
Inheritance graph
[legend]

List of all members.

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.

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]

Detailed Description

Visualizer for entity track histories; places a 3d ribbon behind the entity, which tracks the location history of the entity.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

Sets whether the track history is enabled (visible).

Gets whether the track history is currently enabled (visible).

Returns true if model should be visible.

virtual void makVrv::DtEntityTrackHistoryVisualizer::setColor ( float  r,
float  g,
float  b,
float  alpha 
) [virtual]

override color in the model definition

The instance's type info.

Implements makVrv::DtStateVisualizer.

This class's type info.

Set whether the entity is embarked or not (update track history visibility).

Non-virtual (Called from CTOR).

virtual void makVrv::DtEntityTrackHistoryVisualizer::updateActivity ( ) [protected, virtual]

Ensure model agents are created or destroyed as visibility changes.

Called from setTrackHistoryEnabled(bool).

virtual void makVrv::DtEntityTrackHistoryVisualizer::createModelAgents ( ) [protected, virtual]

Creates model agents for visualizing the track history.

Implements makVrv::DtStateVisualizer.

virtual void makVrv::DtEntityTrackHistoryVisualizer::destroyModelAgents ( ) [protected, virtual]

Destroys the model agents used to visualize the track history.

Implements makVrv::DtStateVisualizer.

virtual void makVrv::DtEntityTrackHistoryVisualizer::updateColor ( ) [protected, virtual]

Applies the color (set by setColor(float,float,float,float) to the track history.

Tells the track history model agents to use the current model definition.

Implements makVrv::DtStateVisualizer.

virtual void makVrv::DtEntityTrackHistoryVisualizer::setVisualizerDefinition ( const DtVisualizerDefinition visDef) [protected, virtual]

Sets the visualizer definition to use for visualizing the track history.

Reimplemented from makVrv::DtStateVisualizer.

virtual void makVrv::DtEntityTrackHistoryVisualizer::slot_trackHistoryRibbonSpacingChanged ( float  spacing) [protected, virtual]
virtual void makVrv::DtEntityTrackHistoryVisualizer::slot_trackHistoryRibbonLengthChanged ( int  maxSamples) [protected, virtual]
virtual void makVrv::DtEntityTrackHistoryVisualizer::slot_listenerHostGlobalIdSet ( const std::string &  hostId) [protected, virtual]

Member Data Documentation

DtTrackHistoryUpdaterAgent* makVrv::DtEntityTrackHistoryVisualizer::myTrackHistoryUpdater [protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)