VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
DtExampleCommLinesDriver Class Reference

This driver demonstrates drawing communication lines.

Inheritance diagram for DtExampleCommLinesDriver:
Inheritance graph
[legend]

Public Member Functions

 DtExampleCommLinesDriver (makVrv::DtAgentManager &am)
 
virtual ~DtExampleCommLinesDriver ()
 
Methods Inherited from makVrv::DtDriver
virtual const std::string & className () const
 
virtual bool onStart ()
 
virtual bool onStop ()
 
virtual bool onTick ()
 
virtual void slot_displayEngineAdded (const makVrv::DtDeRecord &igRecord)
 
- Public Member Functions inherited from makVrv::DtDriver
 DtDriver (DtAgentManager &agentManager, const std::string &instanceName)
 
virtual ~DtDriver ()
 
virtual void realizeConfiguration (const DtConfiguration &configuration)
 
virtual DtConfiguration createConfiguration (bool saveAllParameters=false) const
 
DtAgentManageragentManager ()
 
virtual DtAgentManagerInterfacesceneInterface ()
 
bool started () const
 
virtual const std::string & instanceName () const
 
virtual bool autoStart () const
 
virtual void setAutoStart (bool autoStart)
 
virtual bool isWindowDependent () const
 
virtual void setIsWindowDependent (bool dep)
 
virtual void setIsUserControllable (bool)
 
virtual bool isUserControllable () const
 
virtual void setIsPersistent (bool per)
 
virtual bool isPersistent () const
 
virtual bool isOnDriverSelectionList () const
 
virtual void setOnDriverSelectionList (bool)
 
bool objectFromAgentManager (const DtUniqueID &id) const
 

Protected Types

typedef std::unordered_map
< makVrv::DtModelSetId,
makVrv::DtElementID
ElementIdsByModelSet
 

Protected Member Functions

makVrv::DtEntityFacadecreateEntityFacade (makVrv::DtAgentManager &am, makVrv::DtElementID elementId, const makVrv::DtModelSetRealizationManager::ModelSetRealizations &modelSets, bool distribute)
 
virtual void updatePosition ()
 
virtual void updateCommLines (makVrv::DtModelSetId modelSet)
 
virtual void repositionAircraft (DtVector position, DtTaitBryan ori)
 
virtual void slot_coordinateSystemChanged ()
 
- Protected Member Functions inherited from makVrv::DtDriver
void applyChangesAndDelete (DtElementChanges *changes)
 
void reportElementCreated (DtElementID id, DtElementID parentId, DtElementEntry::ElementType type)
 
void reportElementAttribute (DtElementID id, DtElementAttribute *attribute)
 
void reportElementDestroyed (DtElementID id)
 
void start ()
 
void stop ()
 
bool tick ()
 
virtual void setInstanceName (const std::string &name)
 
virtual void installAccessories ()
 
virtual void uninstallAccessories ()
 

Protected Attributes

ElementIdsByModelSet myElementIds
 
makVrv::DtEntityFacademyEntityFacade
 
double myAngularVelocity
 
DtVector myOrbitCenter
 
double myLastCommLineTime
 
double myLastUpdateTime
 
double myClockAngle
 
double myRadius
 
double myRoll
 
makVrv::DtSignalConnectionManager myConnections
 
makVrv::DtCoordinateSystemmyCoordinateSystem
 
- Protected Attributes inherited from makVrv::DtDriver
DtAgentManagermyAgentManager
 
bool myStartedFlag
 
std::string myName
 
DtConfiguration myConfiguration
 
bool myPersistentFlag
 
bool myUserControllableFlag
 
bool myRequestStateDiffPendingFlag
 
DtElementChanges myChanges
 

Additional Inherited Members

- Static Protected Attributes inherited from makVrv::DtDriver
static const std::string theOnDriverSelectionList
 

Member Typedef Documentation

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

Implements makVrv::DtDriver.

virtual bool DtExampleCommLinesDriver::onStart ( )
virtual

Performs startup logic for the driver.

See Also
makVrv::DtDriver::start()

Implements makVrv::DtDriver.

virtual bool DtExampleCommLinesDriver::onStop ( )
virtual

Performs shutdown logic for the driver.

See Also
makVrv::DtDriver::stop()

Implements makVrv::DtDriver.

virtual bool DtExampleCommLinesDriver::onTick ( )
virtual

Performs update logic for the driver.

See Also
makVrv::DtDriver::tick()

Implements makVrv::DtDriver.

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

Reimplemented from makVrv::DtDriver.

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 ( makVrv::DtModelSetId  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.

virtual void DtExampleCommLinesDriver::slot_coordinateSystemChanged ( )
protectedvirtual

slot for when the coordinate system changes

Member Data Documentation

ElementIdsByModelSet DtExampleCommLinesDriver::myElementIds
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
makVrv::DtSignalConnectionManager DtExampleCommLinesDriver::myConnections
protected
makVrv::DtCoordinateSystem* DtExampleCommLinesDriver::myCoordinateSystem
protected

local clone of the system wide coordinate system. for thread safety.


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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)