![]() |
VR-Forces 5.0.1 Developer's Guide
|
Protocol independent emitter volume visualizer.

Public Types | |
| enum | ColoringMode { PulseFrequency, Frequency, Fixed } |
Public Types inherited from makVrv::DtStateVisualizer | |
| enum | Type { AllVisualizerTypes = 0, EntityVisualizerType = 1, EnvironmentalVisualizerType, InteractionVisualizerType, AggregateVisualizerType, IntervisibilityVisualizerType, TacticalSmokeVisualizerType, UserType = 10000 } |
Static Public Member Functions | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
Protected Member Functions | |
| virtual DtEntityStateListener & | entityStateListener () |
| virtual const DtEntityStateListener & | entityStateListener () const |
| virtual void | connectToListenerSignals () override |
| virtual DtModelAgent * | createBeamModel () |
| virtual DtModelAgent * | newBeamModel (DtUniqueID &beamUniqueId) |
| virtual DtModelAgent * | findBeamModel (const DtUniqueID &beamModelId) |
| virtual bool | setBeamModelVisible (const DtUniqueID &beamModelId, bool visibility) |
| virtual void | destroyBeamModel (const DtUniqueID &beamModelId) |
| virtual void | destroyBeamModelInternal (const DtUniqueID &beamModelId) |
| virtual void | slot_entityEmitterVolumesVisibleChanged (bool visible, bool instanceOnly) |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | makeVisible () |
| virtual bool | isVisible () const |
| virtual void | setInitialValuesFromVisualizerDefinition () |
| template<typename T , typename C > | |
| void | connectAndUpdate (boost::signalslib::signal< void(T)> &sig, void(C::*fp)(T), T val) |
Protected Attributes | |
| ColoringMode | myColoringMode |
| DtEntityStateListener * | myEntityStateListener |
Protected Attributes inherited from makVrv::DtStateVisualizer | |
| DtBaseConnection & | mySimulation |
| DtStateListener & | myListener |
| bool | myDistributeFlag |
| DtUniqueID | mySceneObjectID |
| std::string | myName |
| std::string | myModelDefinition |
| DtSignalConnectionManager | myConnections |
| int | myModelSet |
| int | myVisualizerType |
| bool | myPickable |
| bool | myVisible |
| const DtVisualizerDefinition * | myVisualizerDefinition |
| DtStateVisualizer * | myParent |
| DtSceneObjectAgent * | mySceneObjectAgent |
| bool | myInitialInitializeDone |
| ShowHideContextVector | myVisualizerShowHideContexts |
Private Types | |
| typedef boost::unordered_map < DtUniqueID, DtModelAgent * > | BeamModelMap |
Private Attributes | |
| BeamModelMap | myBeamModels |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtStateVisualizer | |
| boost::signalslib::signal < void(DtStateVisualizer *, DtStateVisualizer *, DtStateVisualizer *)> | signal_reparented |
Protected Types inherited from makVrv::DtStateVisualizer | |
| typedef std::vector < DtVisualizerShowHideContext::VisualizerShowHideContext > | ShowHideContextVector |
|
private |
| makVrv::DtEntityEmitterVolumeVisualizer::DtEntityEmitterVolumeVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| int | modelSet | ||
| ) |
CTOR Instantiates a new emitter volume visualizer.
| simulation | the DtBaseConnection this visualizer will use |
| listener | the DtEntityStateListener for this visualizer's entity |
| modelSet | the model set this visualizer belongs to |
| makVrv::DtEntityEmitterVolumeVisualizer::DtEntityEmitterVolumeVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| int | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR Cleans up the model agents associated with this visualizer.
|
virtual |
(no-op)
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityEmitterVolumeVisualizer.
|
virtual |
Detaches all beam model agents from the scene object agent and deletes them.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityEmitterVolumeVisualizer.
|
virtual |
Sets the model definition on all instantiated beam model agents.
Implements makVrv::DtStateVisualizer.
|
virtual |
Sets the method used to color the emitter volume Sets the mode to use for coloring the emitter volumes.
| mode | the coloring mode to use |
|
virtual |
Gets the method used to color the emitter volume Gets the mode used for coloring the emitter volumes.
|
virtual |
The instance's type info.
Implements makVrv::DtStateVisualizer.
|
static |
This class's type info.
|
protectedvirtual |
|
protectedvirtual |
|
overrideprotectedvirtual |
Connect the visualizer to the listeners signals.
Reimplemented from makVrv::DtStateVisualizer.
|
protectedvirtual |
Creates a new beam model agent Instantiates a DtOverlayEllipseArcModelAgent that will be used for visualizing a beam Extending classes should override this method to use a different beam model.
|
protectedvirtual |
Creates a beam model and stores the new model's unique id in beamUniqueId Creates a new model agent for visualizing the beam.
| beamUniqueId | reference to a DtUniqueID object where the new model's ID will be stored upon creation |
|
protectedvirtual |
Beam model accessor Gets the beam model with the given beamModelId.
| beamModelId | the unique beam model ID |
|
protectedvirtual |
Shows or hides the given beam model This method will return false if an invalid beam model is passed to the method or if mySceneObjectAgent has not yet been initialized.
| beamModelId | the unique beam model ID |
| visibility | whether to show or hide the beam model |
|
protectedvirtual |
Destroys the beam model with the given id Removes the indicated beam model from the scene, deletes it, and removes it from the local beam model listing.
| beamModelId | the unique ID of the beam model to destroy |
|
protectedvirtual |
Nonvirtual work function to destroy the beam model with the given id Removes the indicated beam model from the scene, deletes it, and removes it from the local beam model listing.
| beamModelId | the unique ID of the beam model to destroy |
|
protectedvirtual |
|
protected |
|
protected |
|
private |