VR-Vantage
Loading...
Searching...
No Matches
DtExampleEffectsDriver Class Reference
Inheritance diagram for DtExampleEffectsDriver:

Public Member Functions

 DtExampleEffectsDriver (makVrv::DtAgentManager &am)
 CTOR.
virtual ~DtExampleEffectsDriver ()
 Virtual DTOR.
virtual void toggleDamage (makVrv::DtDe &de)
 Function for changing the state of the entity.
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)
 CTOR.
virtual ~DtDriver ()
 DTOR.
virtual void realizeConfiguration (const DtConfiguration &configuration)
 Realize the driver using the configuration.
virtual DtConfiguration createConfiguration (bool saveAllParameters=false) const
 Create a configuration for the driver.
DtAgentManager & agentManager ()
 Get the master scene for this host. Do not create drivers using this agentManager, use the sceneInterface as it may replaced the implementation of the sceneInterface.
virtual DtAgentManagerInterface & sceneInterface ()
 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. Will be saved to record if state is different.
bool objectFromAgentManager (const DtUniqueID &id) const
 check to see if the object was created using this driver's agent manager.

Protected Types

typedef std::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)
Protected Member Functions inherited from makVrv::DtDriver
void applyChangesAndDelete (DtElementChanges *changes)
 Function for apply changes from a changes object and deleting it. This function is useful for queuing from an external thread as a means of passing changes from a secondary thread back to the main thread.
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. Called by the Master Scene. Calls installAccessories().
void stop ()
 Stop the driver. Called by the Master Scene. Calls uninstallAccessories().
bool tick ()
 Tick the host driver. Called by the Master Scene.
virtual void setInstanceName (const std::string &name)
 set the Instance name.
virtual void installAccessories ()
 Installs accessories on this driver. The compatible and enabled accessories in the DtDriverManager's accessory map are installed on this driver.
virtual void uninstallAccessories ()
 Removes accessories from this driver. The compatible and enabled accessories in the DtDriverManager's accessory map are removed from this driver.

Protected Attributes

SceneObjectIdsByModelSet mySceneObjectIds
makVrv::DtEntityFacade * myEntityFacade
bool myDamagedFlag
makVrv::DtParticleSystemModelAgent * myFlamesAgent
makVrv::MyParticleSystemModelAgent * mySmokePlumeAgent
makVrv::DtParticleSystemModelAgent * myDetonationAgent
Protected Attributes inherited from makVrv::DtDriver
DtAgentManager & myAgentManager
bool myStartedFlag
std::string myName
DtConfiguration myConfiguration
bool myPersistentFlag
bool myUserControllableFlag
bool myRequestStateDiffPendingFlag
DtElementChanges myChanges
DtSignalConnectionManager myConnections
 Auto-disconnects on destruction; avoids singleton lookups in the DTOR.

Additional Inherited Members

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

Detailed Description

This driver demonstrates drawing communication lines.

Member Typedef Documentation

◆ SceneObjectIdsByModelSet

typedef std::unordered_map<int,makVrv::DtUniqueID> DtExampleEffectsDriver::SceneObjectIdsByModelSet
protected

Constructor & Destructor Documentation

◆ DtExampleEffectsDriver()

DtExampleEffectsDriver::DtExampleEffectsDriver ( makVrv::DtAgentManager & am)

CTOR.

◆ ~DtExampleEffectsDriver()

virtual DtExampleEffectsDriver::~DtExampleEffectsDriver ( )
virtual

Virtual DTOR.

Member Function Documentation

◆ className()

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

Returns the driver's class name.

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

Implements makVrv::DtDriver.

◆ onStart()

virtual bool DtExampleEffectsDriver::onStart ( )
virtual

Performs startup logic for the driver.

See also
makVrv::DtDriver::start()

Implements makVrv::DtDriver.

◆ onStop()

virtual bool DtExampleEffectsDriver::onStop ( )
virtual

Performs shutdown logic for the driver.

See also
makVrv::DtDriver::stop()

Implements makVrv::DtDriver.

◆ onTick()

virtual bool DtExampleEffectsDriver::onTick ( )
virtual

Performs update logic for the driver.

See also
makVrv::DtDriver::tick()

Implements makVrv::DtDriver.

◆ slot_displayEngineAdded()

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.

◆ toggleDamage()

virtual void DtExampleEffectsDriver::toggleDamage ( makVrv::DtDe & de)
virtual

Function for changing the state of the entity.

◆ changeColorOverride()

virtual void DtExampleEffectsDriver::changeColorOverride ( int color,
float deltaChange )
virtual

◆ createEntityFacade()

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

◆ mySceneObjectIds

SceneObjectIdsByModelSet DtExampleEffectsDriver::mySceneObjectIds
protected

◆ myEntityFacade

makVrv::DtEntityFacade* DtExampleEffectsDriver::myEntityFacade
protected

◆ myDamagedFlag

bool DtExampleEffectsDriver::myDamagedFlag
protected

◆ myFlamesAgent

makVrv::DtParticleSystemModelAgent* DtExampleEffectsDriver::myFlamesAgent
protected

◆ mySmokePlumeAgent

makVrv::MyParticleSystemModelAgent* DtExampleEffectsDriver::mySmokePlumeAgent
protected

◆ myDetonationAgent

makVrv::DtParticleSystemModelAgent* DtExampleEffectsDriver::myDetonationAgent
protected

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