![]() |
VR-Forces 5.0.3 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 DtModelAgent * | createBeamModel () |
| DtModelAgent * | newBeamModel (DtUniqueID &beamUniqueId) |
| virtual DtModelAgent * | findBeamModel (const DtUniqueID &beamModelId) |
| virtual bool | setBeamModelVisible (const DtUniqueID &beamModelId, bool vis) |
| virtual void | destroyBeamModel (const DtUniqueID &beamModelId) |
| void | destroyBeamModelInternal (const DtUniqueID &beamModelId) |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | connectToListenerSignals () |
| 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 |
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::Dt2DEntityEmitterVolumeVisualizer::Dt2DEntityEmitterVolumeVisualizer | ( | 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::Dt2DEntityEmitterVolumeVisualizer::Dt2DEntityEmitterVolumeVisualizer | ( | 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::DtVrlink2DEntityEmitterVolumeVisualizer.
|
virtual |
Detaches all beam model agents from the scene object agent and deletes them.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlink2DEntityEmitterVolumeVisualizer.
|
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 (const) mode used for coloring the emitter volumes.
|
virtual |
Get the type info of this visualizer.
Implements makVrv::DtStateVisualizer.
|
static |
Get this class's type info.
|
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.
|
protected |
Creates a new beam model and stores it using a generated unique id 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. Note: This method will return false if the scene object agent has not yet been initialized.
| beamModelId | the unique beam model ID |
| visibility | whether to show or hide the beam model |
Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlink2DEntityEmitterVolumeVisualizer.
|
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 |
|
protected |
Nonvirtual work function to destroy specified beam model.
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 |
|
protected |
|
private |