VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrf::DtSpotReportVisualManager Class Reference
Inheritance diagram for makVrf::DtSpotReportVisualManager:
Inheritance graph
[legend]

Public Member Functions

virtual void addSpotReportHandler (const std::string &s, DtSpotReportVisualHandlerCreatorInterface *)
 Once added, this class will take ownership of the memory.
virtual void removeSpotReportHandler (const std::string &s)
virtual void reset ()
 Resets timer to use current simulation time, or 0 if there are no back-ends.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

static DtSpotReportVisualManagerinstance (makVrv::DtDe &de)
 Returns instance of the messager.

Protected Types

typedef std::map< std::string,
DtSpotReportVisualHandlerCreatorInterface * > 
SpotReportHandlerCreators
typedef std::map
< makVrv::DtUniqueID,
DtSpotReportVisualHandler * > 
SpotReportHandlers

Protected Member Functions

virtual DtSpotReportVisualHandlercreateSpotReportHandler (const std::string &s, makVrv::DtUniqueID) const
virtual void slot_onStateViewAdded (const makVrv::DtStateView< DtSpotReportState > &)
 Called when a state view is added, if there is a visualizer for this id, pass the new state to that visualizer, else create.
virtual void slot_stateViewAboutToBeRemoved (const makVrv::DtStateView< DtSpotReportState > &)
 Called when a state view is removed, if there is a visualizer for this id, removes the state from that visualizer.
virtual void slot_stateViewUpdated (makVrv::DtStateView< DtSpotReportState > *)
 Called when a state view is updated, update the handler with the spot report information.
virtual void createSpotReportFor (const DtSpotReportState &, makVrv::DtUniqueID)
 Creates a spot report around the given state and id. Registers with internal members.
virtual void tick ()
 Tick method used to check simulation time and then fade out spot reports as to when they were last received.
 DtSpotReportVisualManager (makVrv::DtDe &sim)
 CTOR.
virtual ~DtSpotReportVisualManager ()
 DTOR.

Protected Attributes

makVrv::DtDemyDe
makVrv::DtSignalConnectionManager myConnections
SpotReportHandlerCreators mySpotReportHandlerCreators
SpotReportHandlers mySpotReportHandlers
double myLastSimTime

Member Typedef Documentation

Constructor & Destructor Documentation

makVrf::DtSpotReportVisualManager::DtSpotReportVisualManager ( makVrv::DtDe sim)
protected

CTOR.

virtual makVrf::DtSpotReportVisualManager::~DtSpotReportVisualManager ( )
protectedvirtual

DTOR.

Member Function Documentation

static DtSpotReportVisualManager& makVrf::DtSpotReportVisualManager::instance ( makVrv::DtDe de)
static

Returns instance of the messager.

virtual void makVrf::DtSpotReportVisualManager::addSpotReportHandler ( const std::string &  s,
DtSpotReportVisualHandlerCreatorInterface  
)
virtual

Once added, this class will take ownership of the memory.

If an existing handler is there for the supplied string, it will be replaced

virtual void makVrf::DtSpotReportVisualManager::removeSpotReportHandler ( const std::string &  s)
virtual
virtual void makVrf::DtSpotReportVisualManager::reset ( )
virtual

Resets timer to use current simulation time, or 0 if there are no back-ends.

virtual DtSpotReportVisualHandler* makVrf::DtSpotReportVisualManager::createSpotReportHandler ( const std::string &  s,
makVrv::DtUniqueID   
) const
protectedvirtual
virtual void makVrf::DtSpotReportVisualManager::slot_onStateViewAdded ( const makVrv::DtStateView< DtSpotReportState > &  )
protectedvirtual

Called when a state view is added, if there is a visualizer for this id, pass the new state to that visualizer, else create.

virtual void makVrf::DtSpotReportVisualManager::slot_stateViewAboutToBeRemoved ( const makVrv::DtStateView< DtSpotReportState > &  )
protectedvirtual

Called when a state view is removed, if there is a visualizer for this id, removes the state from that visualizer.

If the visualizer has no more states to display, removes the visualizer handler itself

virtual void makVrf::DtSpotReportVisualManager::slot_stateViewUpdated ( makVrv::DtStateView< DtSpotReportState > *  )
protectedvirtual

Called when a state view is updated, update the handler with the spot report information.

virtual void makVrf::DtSpotReportVisualManager::createSpotReportFor ( const DtSpotReportState ,
makVrv::DtUniqueID   
)
protectedvirtual

Creates a spot report around the given state and id. Registers with internal members.

virtual void makVrf::DtSpotReportVisualManager::tick ( )
protectedvirtual

Tick method used to check simulation time and then fade out spot reports as to when they were last received.

Member Data Documentation

makVrv::DtDe& makVrf::DtSpotReportVisualManager::myDe
protected
makVrv::DtSignalConnectionManager makVrf::DtSpotReportVisualManager::myConnections
protected
SpotReportHandlerCreators makVrf::DtSpotReportVisualManager::mySpotReportHandlerCreators
protected
SpotReportHandlers makVrf::DtSpotReportVisualManager::mySpotReportHandlers
protected
double makVrf::DtSpotReportVisualManager::myLastSimTime
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)