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

This driver demonstrates drawing communication lines. More...

Inheritance diagram for DtExampleCommLinesDriver:
Inheritance graph
[legend]

Public Member Functions

 DtExampleCommLinesDriver (makVrv::DtAgentManager &am)
 CTOR.
virtual ~DtExampleCommLinesDriver ()
 Virtual DTOR.
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 boost::unordered_map
< int, makVrv::DtUniqueID > 
SceneObjectIdsByModelSet

Protected Member Functions

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 updateCommLines (int modelSet)
 Instantiates comm lines if they have timed out.
virtual void repositionAircraft (DtVector position, DtTaitBryan ori)
 Positions the aircraft at the given coordinates.

Protected Attributes

SceneObjectIdsByModelSet mySceneObjectIds
makVrv::DtEntityFacade * myEntityFacade
double myAngularVelocity
DtVector myOrbitCenter
double myLastCommLineTime
double myLastUpdateTime
double myClockAngle
double myRadius
double myRoll

Detailed Description

This driver demonstrates drawing communication lines.

Member Typedef Documentation

typedef boost::unordered_map<int,makVrv::DtUniqueID> DtExampleCommLinesDriver::SceneObjectIdsByModelSet
protected

Constructor & Destructor Documentation

DtExampleCommLinesDriver::DtExampleCommLinesDriver ( makVrv::DtAgentManager &  am)

CTOR.

virtual DtExampleCommLinesDriver::~DtExampleCommLinesDriver ( )
virtual

Virtual DTOR.

Member Function Documentation

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

Returns the driver's class name.

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

Performs startup logic for the driver.

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

Performs shutdown logic for the driver.

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

Performs update logic for the driver.

See Also
makVrv::DtDriver::tick()
virtual void DtExampleCommLinesDriver::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& )
makVrv::DtEntityFacade* DtExampleCommLinesDriver::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/Colorized facades.

virtual void DtExampleCommLinesDriver::updatePosition ( )
protectedvirtual

Updates the current position / orientation of the entity.

virtual void DtExampleCommLinesDriver::updateCommLines ( int  modelSet)
protectedvirtual

Instantiates comm lines if they have timed out.

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

Positions the aircraft at the given coordinates.

Member Data Documentation

SceneObjectIdsByModelSet DtExampleCommLinesDriver::mySceneObjectIds
protected
makVrv::DtEntityFacade* DtExampleCommLinesDriver::myEntityFacade
protected
double DtExampleCommLinesDriver::myAngularVelocity
protected
DtVector DtExampleCommLinesDriver::myOrbitCenter
protected
double DtExampleCommLinesDriver::myLastCommLineTime
protected
double DtExampleCommLinesDriver::myLastUpdateTime
protected
double DtExampleCommLinesDriver::myClockAngle
protected
double DtExampleCommLinesDriver::myRadius
protected
double DtExampleCommLinesDriver::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)