VR-Vantage API Documentation
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtExampleDriver Class Reference
Inheritance diagram for DtExampleDriver:
Inheritance graph
[legend]

Public Member Functions

 DtExampleDriver (makVrv::DtAgentManager &am)
 CTOR.
virtual ~DtExampleDriver ()
 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.
- Public Member Functions inherited from makVrv::DtDriver
 DtDriver (DtAgentManager &agentManager, const std::string &instanceName)
 CTOR.
virtual ~DtDriver ()
 DTOR.
virtual void realizeConfiguration (const DtConfiguration &configuration)
 Realize the driver using the configuration.
virtual DtConfiguration createConfiguration () const
 Create a configuration for the driver.
DtAgentManageragentManager ()
 Get the master scene for this host.
virtual DtAgentManagerInterfacesceneInterface ()
 Get the scene manager interface for creating agents.
bool started () const
 Get this driver's active state.
virtual const std::string & instanceName () const
 Get this driver's instance name.
virtual bool autoStart () const
 Get whether this driver is set to automatically start if it is persistent.
virtual void setAutoStart (bool autoStart)
 Set whether this driver automatically starts if it is persistent.
virtual bool isWindowDependent () const
 Get whether this driver is set to automatically start when the first window is created and stop when the last window is destroyed.
virtual void setIsWindowDependent (bool dep)
 Set whether this driver is set to automatically start when the first window is created and stop when the last window is destroyed.
virtual void setIsUserControllable (bool)
 Set whether this driver can be started and stopped by the user.
virtual bool isUserControllable () const
 Get whether this driver can be started and stopped by the user.
virtual void setIsPersistent (bool per)
 Set if the driver is persistent and should be saved between runs.
virtual bool isPersistent () const
 Get if the driver is persistent and should be saved between runs.
virtual bool isOnDriverSelectionList () const
 Returns whether or not this driver is to be automatically started/stopped from the driver selection list.
virtual void setOnDriverSelectionList (bool)
 Sets whether or not this item is on the driver selection list.
bool objectFromAgentManager (const DtUniqueID &id) const
 check to see if the object was created using this driver's agent manager.

Protected Member Functions

virtual void slot_togglePinnedLabel (const makVrv::DtSelectionManager::IdSet &sel)
 Listens for entity labels being pinned / unpinned.
virtual void setHoverSignalsActive (bool active)
 Sets whether the driver is listening for mouseover events or not.
virtual void setEntityInfoWidgetActive (bool active)
 Sets whether the entity info widget is displayed or not.
virtual makVrv::DtUnicode generateInfoString () const
 Generates the information string displayed in the info widget.
virtual void updatePosition ()
 Updates the current position / orientation of the entity.
virtual void repositionAircraft (DtVector position, DtTaitBryan ori)
 Positions the aircraft at the given position with the given orientation.
- Protected Member Functions inherited from makVrv::DtDriver
void applyChangesAndDelete (DtElementChanges *changes)
 Function for apply changes from a changes object and deleting it.
void reportElementCreated (DtElementID id, DtElementID parentId, DtElementEntry::ElementType type)
 Report an element created.
void reportElementAttribute (DtElementID id, DtElementAttribute *attribute)
 Report an element attribute changed.
void reportElementDestroyed (DtElementID id)
 Report an element destroyed.
void start ()
 Start the driver.
void stop ()
 Stop the driver.
bool tick ()
 Tick the host driver.
virtual void setInstanceName (const std::string &name)
 set the Instance name.
virtual void installAccessories ()
 Installs accessories on this driver.
virtual void uninstallAccessories ()
 Removes accessories from this driver.

Protected Attributes

makVrv::DtEntity3dFacademyEntityFacade
makVrv::DtEntityIndicatorWidgetmyEntityIndicator
makVrv::DtEntityInfoWidgetmyEntityInfoWidget
std::string myEntityDisplayName
bool myEntityInfoWidgetPinnedFlag
DtTaitBryan myOrientation
DtVector myPosition
DtVector myOrbitCenter
double myAngularVelocity
double myLastCommLineTime
double myLastUpdateTime
double myClockAngle
double myHeading
double myRadius
double myRoll
- Protected Attributes inherited from makVrv::DtDriver
DtAgentManagermyAgentManager
bool myStartedFlag
std::string myName
DtConfiguration myConfiguration
bool myPersistentFlag
bool myUserControllableFlag
bool myRequestStateDiffPendingFlag
DtElementChanges myChanges

Constructor & Destructor Documentation

DtExampleDriver::DtExampleDriver ( makVrv::DtAgentManager am)

CTOR.

virtual DtExampleDriver::~DtExampleDriver ( )
virtual

Virtual DTOR.

Member Function Documentation

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

Returns the driver's class name.

See Also
makVrv::DtDriver::className() const

Implements makVrv::DtDriver.

virtual bool DtExampleDriver::onStart ( )
virtual

Performs startup logic for the driver.

See Also
makVrv::DtDriver::start()

Implements makVrv::DtDriver.

virtual bool DtExampleDriver::onStop ( )
virtual

Performs shutdown logic for the driver.

See Also
makVrv::DtDriver::stop()

Implements makVrv::DtDriver.

virtual bool DtExampleDriver::onTick ( )
virtual

Performs update logic for the driver.

See Also
makVrv::DtDriver::tick()

Implements makVrv::DtDriver.

virtual void DtExampleDriver::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.

virtual void DtExampleDriver::slot_togglePinnedLabel ( const makVrv::DtSelectionManager::IdSet sel)
protectedvirtual

Listens for entity labels being pinned / unpinned.

virtual void DtExampleDriver::setHoverSignalsActive ( bool  active)
protectedvirtual

Sets whether the driver is listening for mouseover events or not.

virtual void DtExampleDriver::setEntityInfoWidgetActive ( bool  active)
protectedvirtual

Sets whether the entity info widget is displayed or not.

virtual makVrv::DtUnicode DtExampleDriver::generateInfoString ( ) const
protectedvirtual

Generates the information string displayed in the info widget.

virtual void DtExampleDriver::updatePosition ( )
protectedvirtual

Updates the current position / orientation of the entity.

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

Positions the aircraft at the given position with the given orientation.

Member Data Documentation

makVrv::DtEntity3dFacade* DtExampleDriver::myEntityFacade
protected
makVrv::DtEntityIndicatorWidget* DtExampleDriver::myEntityIndicator
protected
makVrv::DtEntityInfoWidget* DtExampleDriver::myEntityInfoWidget
protected
std::string DtExampleDriver::myEntityDisplayName
protected
bool DtExampleDriver::myEntityInfoWidgetPinnedFlag
protected
DtTaitBryan DtExampleDriver::myOrientation
protected
DtVector DtExampleDriver::myPosition
protected
DtVector DtExampleDriver::myOrbitCenter
protected
double DtExampleDriver::myAngularVelocity
protected
double DtExampleDriver::myLastCommLineTime
protected
double DtExampleDriver::myLastUpdateTime
protected
double DtExampleDriver::myClockAngle
protected
double DtExampleDriver::myHeading
protected
double DtExampleDriver::myRadius
protected
double DtExampleDriver::myRoll
protected

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


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)