![]() |
VR-Forces Developer's Guide
|
DtEntityAudializer manages the sound for an entity. The sound will update itself according to the entity's state. It points to a sound model definition, you can configure the filename, decibel,etc.

Static Public Member Functions | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
Protected Member Functions | |
| virtual void | setInitialValuesFromVisualizerDefinition () override |
| virtual void | connectToListenerSignals () override |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | makeVisible () |
| virtual bool | isVisible () const |
| template<typename T , typename C > | |
| void | connectAndUpdate (boost::signalslib::signal< void(T)> &sig, void(C::*fp)(T), T val) |
Protected Attributes | |
| DtSoundModelAgent * | mySoundModelAgent |
| DtEntitySoundUpdaterAgent * | myEntitySoundUpdaterAgent |
| bool | myIs3d |
| float | myDecibel |
| EntityStateListener::DamageState | myDamageState |
| bool | myPowerPlantOn |
| DtEntityStateListener * | myEntityListener |
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 |
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::DtEntityAudializer::DtEntityAudializer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
not allowed - default constructor
|
delete |
not allowed - copy constructor
|
delete |
not allowed - equals operator
|
overridevirtual |
called soon after construction to initialize the signals/state from the listener
Reimplemented from makVrv::DtStateVisualizer.
|
virtual |
Override to create model agents that will be used to display data from the listener.
Implements makVrv::DtStateVisualizer.
|
virtual |
Destroys all currently created definitions.
Implements makVrv::DtStateVisualizer.
|
virtual |
Get the type info. Typically the implementation of this function should call a static function called theTypeInfo.
Implements makVrv::DtStateVisualizer.
|
static |
This class's type info.
|
virtual |
Sets the model definition of the audializer.
Implements makVrv::DtStateVisualizer.
|
virtual |
Gets whether the powerplant of the entity is on. It will only sound when the powerplant is on and the entity is not desctoryed.
|
virtual |
Sets the damage state for the entity.
|
virtual |
Gets whether the entity is destroyed. It will stop playing sound if it's destroyed.
|
virtual |
|
virtual |
Plays the sound.
|
virtual |
brief Stops the sound.
|
virtual |
Sets whether the sound should be played in 3d.
|
virtual |
Gets whether the sound should be played in 3d.
|
virtual |
Sets the decibel of the sound.
|
virtual |
Gets the decibel of the sound.
| DtEntityStateListener& makVrv::DtEntityAudializer::entityStateListener | ( | ) |
Get the entity state listener.
| const DtEntityStateListener& makVrv::DtEntityAudializer::entityStateListener | ( | ) | const |
|
overrideprotectedvirtual |
Sets member variables from the visualizer definition if they exist Should not call this directly. Called by DtStateVisualizer::initialize.
Reimplemented from makVrv::DtStateVisualizer.
|
overrideprotectedvirtual |
Connect the visualizer to the listeners signals Called by DtStateVisualizer::initialize()
Reimplemented from makVrv::DtStateVisualizer.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Same as myListener, but casted for convenience.