VR-Forces 5.0.3 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
DtExampleEffectsDriver Class Reference

This driver demonstrates drawing communication lines.

Inheritance diagram for DtExampleEffectsDriver:
Inheritance graph
[legend]

Public Member Functions

 DtExampleEffectsDriver (makVrv::DtAgentManager &am)
 
virtual ~DtExampleEffectsDriver ()
 
virtual void toggleDamage (makVrv::DtDe &de)
 
virtual void changeColorOverride (int color, float deltaChange)
 
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 () 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 boost::unordered_map
< int, makVrv::DtUniqueID
SceneObjectIdsByModelSet
 

Protected Member Functions

makVrv::DtEntityFacadecreateEntityFacade (makVrv::DtAgentManager &am, makVrv::DtElementID elementId, const makVrv::DtModelSetRealizationManager::ModelSetRealizations &modelSets, bool distribute)
 
- 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

SceneObjectIdsByModelSet mySceneObjectIds
 
makVrv::DtEntityFacademyEntityFacade
 
bool myDamagedFlag
 
makVrv::DtParticleSystemModelAgent * myFlamesAgent
 
makVrv::MyParticleSystemModelAgent * mySmokePlumeAgent
 
makVrv::DtParticleSystemModelAgent * myDetonationAgent
 
- Protected Attributes inherited from makVrv::DtDriver
DtAgentManagermyAgentManager
 
bool myStartedFlag
 
std::string myName
 
DtConfiguration myConfiguration
 
bool myPersistentFlag
 
bool myUserControllableFlag
 
bool myRequestStateDiffPendingFlag
 
DtElementChanges myChanges
 

Member Typedef Documentation

Constructor & Destructor Documentation

DtExampleEffectsDriver::DtExampleEffectsDriver ( makVrv::DtAgentManager am)

CTOR.

virtual DtExampleEffectsDriver::~DtExampleEffectsDriver ( )
virtual

Virtual DTOR.

Member Function Documentation

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

Returns the driver's class name.

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

Implements makVrv::DtDriver.

virtual bool DtExampleEffectsDriver::onStart ( )
virtual

Performs startup logic for the driver.

See Also
makVrv::DtDriver::start()

Implements makVrv::DtDriver.

virtual bool DtExampleEffectsDriver::onStop ( )
virtual

Performs shutdown logic for the driver.

See Also
makVrv::DtDriver::stop()

Implements makVrv::DtDriver.

virtual bool DtExampleEffectsDriver::onTick ( )
virtual

Performs update logic for the driver.

See Also
makVrv::DtDriver::tick()

Implements makVrv::DtDriver.

virtual void DtExampleEffectsDriver::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 DtExampleEffectsDriver::toggleDamage ( makVrv::DtDe de)
virtual

Function for changing the state of the entity.

virtual void DtExampleEffectsDriver::changeColorOverride ( int  color,
float  deltaChange 
)
virtual
makVrv::DtEntityFacade* DtExampleEffectsDriver::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.

Member Data Documentation

SceneObjectIdsByModelSet DtExampleEffectsDriver::mySceneObjectIds
protected
makVrv::DtEntityFacade* DtExampleEffectsDriver::myEntityFacade
protected
bool DtExampleEffectsDriver::myDamagedFlag
protected
makVrv::DtParticleSystemModelAgent* DtExampleEffectsDriver::myFlamesAgent
protected
makVrv::MyParticleSystemModelAgent* DtExampleEffectsDriver::mySmokePlumeAgent
protected
makVrv::DtParticleSystemModelAgent* DtExampleEffectsDriver::myDetonationAgent
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)