VR-Forces 4.2 Class Documentation
List of all members | Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
DtExampleTrackHistoryDriver Class Reference

This driver demonstrates drawing track histories. More...

Inheritance diagram for DtExampleTrackHistoryDriver:
Inheritance graph
[legend]

Classes

struct  TrackHistoryInfo

Public Member Functions

 DtExampleTrackHistoryDriver (makVrv::DtAgentManager &am)
 CTOR.
virtual ~DtExampleTrackHistoryDriver ()
 Virtual DTOR.
virtual void slot_settingsChanged ()
 Receives notification that track history settings have changed.
Methods Inherited from makVrv::DtDriver
virtual const std::string & className () const
 Returns the driver's class name.
virtual bool onStart ()
 Performs startup logic for the driver.
virtual bool onStop ()
 Performs shutdown logic for the driver.
virtual bool onTick ()
 Performs update logic for the driver.
virtual void slot_displayEngineAdded (const makVrv::DtDeRecord &igRecord)
 Ensures the driver is properly restarted when a De is connected.

Protected Types

typedef std::vector
< TrackHistoryInfo
TrackHistoriesVector
 Vector type for storing created track histories and associated information.

Protected Member Functions

void createEntityTrackHistories (makVrv::DtEntityFacade *entityFacade, bool distribute)
 Creates the track history model agents for the model sets visualized by the facade.
void createEntityTrackHistory (int modelSet, int visualType, makVrv::DtSceneObjectAgent *sceneObjectAgent, bool distribute)
 Creates a track history for the given model set and scene object of the entity facade.
makVrv::DtEntityFacade * createEntityFacade (makVrv::DtAgentManager &am, makVrv::DtElementID elementId, const makVrv::DtModelSetRealizationManager::ModelSetRealizations &modelSets, bool distribute)
 Creates an entity facade for an F-18.
virtual void updatePosition ()
 Updates the current position / orientation of the entity.
virtual void repositionAircraft (DtVector position, DtTaitBryan ori)
 Positions the aircraft at the given coordinates.

Protected Attributes

TrackHistoriesVector myTrackHistories
makVrv::DtEntityFacade * myEntityFacade
DtVector myOrbitCenter
double myAngularVelocity
double myLastUpdateTime
double myClockAngle
double myRadius
double myRoll

Detailed Description

This driver demonstrates drawing track histories.

Member Typedef Documentation

Vector type for storing created track histories and associated information.

Constructor & Destructor Documentation

DtExampleTrackHistoryDriver::DtExampleTrackHistoryDriver ( makVrv::DtAgentManager &  am)

CTOR.

virtual DtExampleTrackHistoryDriver::~DtExampleTrackHistoryDriver ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual const std::string& DtExampleTrackHistoryDriver::className ( ) const
virtual

Returns the driver's class name.

See Also
makVrv::DtDriver::className() const
virtual bool DtExampleTrackHistoryDriver::onStart ( )
virtual

Performs startup logic for the driver.

See Also
makVrv::DtDriver::start()
virtual bool DtExampleTrackHistoryDriver::onStop ( )
virtual

Performs shutdown logic for the driver.

See Also
makVrv::DtDriver::stop()
virtual bool DtExampleTrackHistoryDriver::onTick ( )
virtual

Performs update logic for the driver.

See Also
makVrv::DtDriver::tick()
virtual void DtExampleTrackHistoryDriver::slot_displayEngineAdded ( const makVrv::DtDeRecord &  igRecord)
virtual

Ensures the driver is properly restarted when a De is connected.

See Also
makVrv::DtDriver::slot_displayEngineAdded( const makVrv::DtDeRecord& )
virtual void DtExampleTrackHistoryDriver::slot_settingsChanged ( )
virtual

Receives notification that track history settings have changed.

Updates the track history to reflect the latest settings.

void DtExampleTrackHistoryDriver::createEntityTrackHistories ( makVrv::DtEntityFacade *  entityFacade,
bool  distribute 
)
protected

Creates the track history model agents for the model sets visualized by the facade.

void DtExampleTrackHistoryDriver::createEntityTrackHistory ( int  modelSet,
int  visualType,
makVrv::DtSceneObjectAgent *  sceneObjectAgent,
bool  distribute 
)
protected

Creates a track history for the given model set and scene object of the entity facade.

makVrv::DtEntityFacade* DtExampleTrackHistoryDriver::createEntityFacade ( makVrv::DtAgentManager &  am,
makVrv::DtElementID  elementId,
const makVrv::DtModelSetRealizationManager::ModelSetRealizations &  modelSets,
bool  distribute 
)
protected

Creates an entity facade for an F-18.

Properly initializes the individual 3d/2d/XR facades.

virtual void DtExampleTrackHistoryDriver::updatePosition ( )
protectedvirtual

Updates the current position / orientation of the entity.

virtual void DtExampleTrackHistoryDriver::repositionAircraft ( DtVector  position,
DtTaitBryan  ori 
)
protectedvirtual

Positions the aircraft at the given coordinates.

Member Data Documentation

TrackHistoriesVector DtExampleTrackHistoryDriver::myTrackHistories
protected
makVrv::DtEntityFacade* DtExampleTrackHistoryDriver::myEntityFacade
protected
DtVector DtExampleTrackHistoryDriver::myOrbitCenter
protected
double DtExampleTrackHistoryDriver::myAngularVelocity
protected
double DtExampleTrackHistoryDriver::myLastUpdateTime
protected
double DtExampleTrackHistoryDriver::myClockAngle
protected
double DtExampleTrackHistoryDriver::myRadius
protected
double DtExampleTrackHistoryDriver::myRoll
protected

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)