VR-Forces 4.0.4 Class Documentation
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]

List of all members.

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::DtEntityFacadecreateEntityFacade (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::DtEntityFacademyEntityFacade
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

CTOR.

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

Implements makVrv::DtDriver.

Performs startup logic for the driver.

See also:
makVrv::DtDriver::start()

Implements makVrv::DtDriver.

Performs shutdown logic for the driver.

See also:
makVrv::DtDriver::stop()

Implements makVrv::DtDriver.

Performs update logic for the driver.

See also:
makVrv::DtDriver::tick()

Implements makVrv::DtDriver.

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& )

Reimplemented from makVrv::DtDriver.

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.

Creates an entity facade for an F-18.

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

virtual void DtExampleTrackHistoryDriver::updatePosition ( ) [protected, virtual]

Updates the current position / orientation of the entity.

virtual void DtExampleTrackHistoryDriver::repositionAircraft ( DtVector  position,
DtTaitBryan  ori 
) [protected, virtual]

Positions the aircraft at the given coordinates.


Member Data Documentation


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)