![]() |
VR-Forces Developer's Guide
|
DtInteractionAudializer manages the sound for an interaction. The sound will only play one time, it has delay due to the doppler effect. It points to a sound model definition, you can configure the filename, decibel,etc. It's the base class for DtFireInteractionAudializer and DtDetonationAudializer. You cannot create an instance of this class(typeInfo not implemented).

Public Member Functions | |
| DtInteractionAudializer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) | |
| virtual | ~DtInteractionAudializer () |
| virtual void | createModelAgents () |
| virtual void | destroyModelAgents () |
| virtual void | setModelDefinitionForAgents () |
| virtual void | setInteractionLocation (DtVector location) |
| virtual DtVector | interactionLocation () |
| virtual void | setDecibel (float decibel) |
| virtual float | decibel () |
| virtual void | setDeleteDelay (float delay) |
| virtual float | deleteDelay () |
Public Member Functions inherited from makVrv::DtStateVisualizer | |
| DtStateVisualizer (DtBaseConnection &connection, DtStateListener &listener, DtSceneObjectAgent *sceneObjectAgent, DtModelSetId modelSet) | |
| virtual | ~DtStateVisualizer () |
| virtual DtModelSetId | modelSet () |
| virtual const TypeInfo & | typeInfo () const =0 |
| virtual void | setSceneObjectAgent (DtSceneObjectAgent *sceneObject) |
| void | setModelDefinition (const std::string &definition) |
| const std::string & | modelDefinition () const |
| virtual void | implementVisibility (bool visible) |
| virtual void | initialize () |
| virtual void | slot_setSelected (bool b) |
| void | setName (const std::string &) |
| const std::string & | name () const |
| virtual void | setPickable (bool) |
| virtual bool | pickable () const |
| virtual DtUniqueID | sceneObjectID () const |
| int | visualizerType () const |
| virtual void | setVisualizerDefinition (const DtVisualizerDefinition &) |
| DtStateListener & | listener () |
| const DtStateListener & | listener () const |
| DtBaseConnection & | simulation () |
| void | setDistribute (bool b) |
| bool | distribute () const |
| virtual bool | isVisible () const |
| virtual bool | setVisualizerIsVisible (bool vis, DtVisualizerShowHideContext::VisualizerShowHideContext context) |
Protected Member Functions | |
| virtual void | setInitialValuesFromVisualizerDefinition () override |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | connectToListenerSignals () |
| virtual void | makeVisible () |
| template<typename T , typename C > | |
| void | connectAndUpdate (boost::signalslib::signal< void(T)> &sig, void(C::*fp)(T), T val) |
Protected Attributes | |
| DtSoundModelAgent * | mySoundModelAgent |
| float | myDecibel |
| DtVector | myInteractionLocation |
| float | myDeleteDelay |
Protected Attributes inherited from makVrv::DtStateVisualizer | |
| DtBaseConnection & | mySimulation |
| DtStateListener & | myListener |
| bool | myDistributeFlag |
| DtUniqueID | mySceneObjectID |
| std::string | myName |
| std::string | myModelDefinition |
| DtSignalConnectionManager | myConnections |
| DtModelSetId | myModelSet |
| int | myVisualizerType |
| bool | myPickable |
| bool | myVisible |
| const DtVisualizerDefinition * | myVisualizerDefinition |
| DtSceneObjectAgent * | mySceneObjectAgent |
| bool | myInitialInitializeDone |
| ShowHideContextVector | myVisualizerShowHideContexts |
Private Member Functions | |
| DtInteractionAudializer () | |
| DtInteractionAudializer (const DtInteractionAudializer &) | |
| DtInteractionAudializer & | operator= (const DtInteractionAudializer &) |
Additional Inherited Members | |
Public Types inherited from makVrv::DtStateVisualizer | |
| enum | Type { AllVisualizerTypes = 0, EntityVisualizerType = 1, EnvironmentalVisualizerType, InteractionVisualizerType, AggregateVisualizerType, IntervisibilityVisualizerType, TacticalSmokeVisualizerType, UserType = 10000 } |
Protected Types inherited from makVrv::DtStateVisualizer | |
| typedef std::vector < DtVisualizerShowHideContext::VisualizerShowHideContext > | ShowHideContextVector |
| makVrv::DtInteractionAudializer::DtInteractionAudializer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
private |
Default Constructor not implemented – default constructor not allowed.
|
private |
Copy Constructor not implemented – Copy not allowed.
|
virtual |
Override to create model agents that will be used to display data from the listener.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::DtDetonationAudializer.
|
virtual |
Destroys all currently created definitions.
Implements makVrv::DtStateVisualizer.
|
virtual |
Sets the model definition for the agent.
Implements makVrv::DtStateVisualizer.
|
virtual |
Sets the local location of the interaction.
|
virtual |
Gets the local location of the interaction.
|
virtual |
Sets the decibel of the sound.
|
virtual |
Gets the decibel of the sound.
|
virtual |
Sets the deletion delay of the interacion sound in seconds, default is 60 seconds. This will allow a sound to be heard up to ~12 miles away. It's used to handle the deletion of the agent class. Increase this if you want to hear the sound further away.
|
virtual |
Gets the deletion delay of the interacion sound in seconds, default is 60 seconds. This will allow a sound to be heard up to ~12 miles away. It's used to handle the deletion of the agent class. Increase this if you want to hear the sound further away.
|
overrideprotectedvirtual |
Sets member variables from the visualizer definition if they exist Should not call this directly. Called by DtStateVisualizer::initialize.
Reimplemented from makVrv::DtStateVisualizer.
Reimplemented in makVrv::DtDetonationAudializer.
|
private |
Assignment Operator not implemented – Copy not allowed.
|
protected |
|
protected |
|
protected |
|
protected |