VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Attributes
makVrv::DtEntitySensorVolumeVisualizer Class Reference

Protocol independent sensor volume visualizer. More...

Inheritance diagram for makVrv::DtEntitySensorVolumeVisualizer:
Inheritance graph
[legend]

List of all members.

Public Types

enum  ColoringMode { PulseFrequency, Frequency, Fixed }
 Enumeration of the coloring modes for coloring sensor volumes. More...

Public Member Functions

 DtEntitySensorVolumeVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet)
 CTOR Instantiates a new sensor volume visualizer.
virtual ~DtEntitySensorVolumeVisualizer ()
 DTOR Cleans up the model agents associated with this visualizer.
virtual void createModelAgents ()
 (no-op)
virtual void destroyModelAgents ()
 Detaches all beam model agents from the scene object agent and deletes them.
virtual void setModelDefinitionForAgents ()
 Sets the model definition on all instantiated beam model agents.
virtual void setColoringMode (ColoringMode method)
 Sets the method used to color the sensor volume Sets the mode to use for coloring the sensor volumes.
virtual const ColoringMode coloringMode () const
 Gets the method used to color the sensor volume Gets the mode used for coloring the sensor volumes.
virtual const
DtStateVisualizer::TypeInfo
typeInfo () const
 The instance's type info.

Static Public Member Functions

static const
DtStateVisualizer::TypeInfo
theTypeInfo ()
 This class's type info.

Protected Member Functions

virtual DtModelAgent * createBeamModel ()
 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.
virtual DtModelAgent * newBeamModel (DtUniqueID &beamUniqueId)
 Creates a beam model and stores the new model's unique id in beamUniqueId Creates a new model agent for visualizing the beam.
virtual DtModelAgent * findBeamModel (const DtUniqueID &beamModelId)
 Beam model accessor Gets the beam model with the given beamModelId.
virtual bool setBeamModelVisible (const DtUniqueID &beamModelId, bool visibility)
 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.
virtual void destroyBeamModel (const DtUniqueID &beamModelId)
 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.
void destroyBeamModelInternal (const DtUniqueID &beamModelId)
 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.

Protected Attributes

ColoringMode myColoringMode

Private Types

typedef boost::unordered_map
< DtUniqueID, DtModelAgent * > 
BeamModelMap

Private Attributes

BeamModelMap myBeamModels

Detailed Description

Protocol independent sensor volume visualizer.


Member Typedef Documentation

typedef boost::unordered_map<DtUniqueID,DtModelAgent*> makVrv::DtEntitySensorVolumeVisualizer::BeamModelMap [private]

Member Enumeration Documentation

Enumeration of the coloring modes for coloring sensor volumes.

Enumerator:
PulseFrequency 
Frequency 
Fixed 

Constructor & Destructor Documentation

CTOR Instantiates a new sensor volume visualizer.

Parameters:
simulationthe DtBaseConnection this visualizer will use
listenerthe DtEntityStateListener for this visualizer's entity
modelSetthe model set this visualizer belongs to

DTOR Cleans up the model agents associated with this visualizer.


Member Function Documentation

Detaches all beam model agents from the scene object agent and deletes them.

See also:
makVrv::DtStateVisualizer::destroyModelAgents()

Implements makVrv::DtStateVisualizer.

Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntitySensorVolumeVisualizer.

Sets the model definition on all instantiated beam model agents.

See also:
DtStateVisualizer::setModelDefinitionForAgents()

Implements makVrv::DtStateVisualizer.

Sets the method used to color the sensor volume Sets the mode to use for coloring the sensor volumes.

Parameters:
modethe coloring mode to use
See also:
makVrv::Dt2DEntitySensorVolumeVisualizer::ColoringMode

Gets the method used to color the sensor volume Gets the mode used for coloring the sensor volumes.

Returns:
the ColoringMode used for coloring the sensor volumes
See also:
makVrv::Dt2DEntitySensorVolumeVisualizer::ColoringMode

The instance's type info.

Implements makVrv::DtStateVisualizer.

This class's type info.

virtual DtModelAgent* makVrv::DtEntitySensorVolumeVisualizer::createBeamModel ( ) [protected, virtual]

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.

Returns:
the newly created beam model
virtual DtModelAgent* makVrv::DtEntitySensorVolumeVisualizer::newBeamModel ( DtUniqueID beamUniqueId) [protected, virtual]

Creates a beam model and stores the new model's unique id in beamUniqueId Creates a new model agent for visualizing the beam.

Parameters:
beamUniqueIdreference to a DtUniqueID object where the new model's ID will be stored upon creation
Returns:
the newly created beam model
See also:
makVrv::Dt2DEntitySensorVolumeVisualizer::createBeamModel()
virtual DtModelAgent* makVrv::DtEntitySensorVolumeVisualizer::findBeamModel ( const DtUniqueID beamModelId) [protected, virtual]

Beam model accessor Gets the beam model with the given beamModelId.

Parameters:
beamModelIdthe unique beam model ID
Returns:
the beam model with the given ID, or NULL if there isn't one.
virtual bool makVrv::DtEntitySensorVolumeVisualizer::setBeamModelVisible ( const DtUniqueID beamModelId,
bool  visibility 
) [protected, virtual]

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.

Parameters:
beamModelIdthe unique beam model ID
visibilitywhether to show or hide the beam model
Returns:
true if the beam model was shown or hidden, false otherwise
virtual void makVrv::DtEntitySensorVolumeVisualizer::destroyBeamModel ( const DtUniqueID beamModelId) [protected, virtual]

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.

Parameters:
beamModelIdthe unique ID of the beam model to destroy

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.

Parameters:
beamModelIdthe unique ID of the beam model to destroy

Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)