![]() |
VR-Forces Developer's Guide
|
DtEnvironmentalVolumetricLineVisualizer display a line that contains at least two points. Use this class if you want to create a line that has a physical line width and a physical line height. This differs from the DtEnvironmentalLineVisualizer class in that it supports both items being set at the same time for a more consistant and correct visualization in 2D and 3D modes. This class does not support the drawing of arrows with volumetric lines. This class will also create a volumetric facade interface (rather than a line facade interface) which will create polygonal models rather than line models for the use in displaying these visuals.

Public Member Functions | |
| DtEnvironmentalVolumetricLineVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) | |
| virtual | ~DtEnvironmentalVolumetricLineVisualizer () |
| DtEnvironmentalVolumetricLineVisualizer ()=delete | |
| DtEnvironmentalVolumetricLineVisualizer (const DtEnvironmentalVolumetricLineVisualizer &)=delete | |
| DtEnvironmentalVolumetricLineVisualizer & | operator= (const DtEnvironmentalVolumetricLineVisualizer &)=delete |
| virtual void | initialize () override |
| virtual void | slot_setSelected (bool) override |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | useDefaultColor () |
| virtual void | setInsideColor (float r, float g, float b, float a) |
| virtual void | getInsideColor (float &r, float &g, float &b, float &a) |
| virtual void | setSelectedInsideColor (float r, float g, float b, float a) |
| virtual void | getSelectedInsideColor (float &r, float &g, float &b, float &a) |
| virtual void | setOutsideColor (float r, float g, float b, float a) |
| virtual void | getOutsideColor (float &r, float &g, float &b, float &a) |
| virtual void | setSelectedOutsideColor (float r, float g, float b, float a) |
| virtual void | getSelectedOutsideColor (float &r, float &g, float &b, float &a) |
| virtual void | updateColors ()=0 |
| virtual void | setPixelLineWidth (int) |
| virtual int | pixelLineWidth () |
| virtual void | setPhysicalLineWidth (float) |
| virtual float | physicalLineWidth () |
| virtual void | setSolid (bool) |
| virtual bool | isSolid () |
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) |
| 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 | connectToListenerSignals () override |
| virtual void | setInitialValuesFromVisualizerDefinition () override |
| virtual void | createModelAgents () override |
| virtual void | destroyModelAgents () override |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | setModelDefinitionForAgents ()=0 |
| virtual void | makeVisible () |
| template<typename T , typename C > | |
| void | connectAndUpdate (boost::signalslib::signal< void(T)> &sig, void(C::*fp)(T), T val) |
Protected Attributes | |
| DtTacticalGraphicStateListener * | myLineListener |
| int | myPixelLineWidth |
| float | myPhysicalLineWidth |
| float | myDefaultColor [4] |
| float | myColor [4] |
| float | myInsideColor [4] |
| float | myOutsideColor [4] |
| float | mySelectedOutsideColor [4] |
| float | mySelectedInsideColor [4] |
| bool | mySelectedInsideColorSet |
| bool | mySelectedOutsideColorSet |
| bool | myDefaultColorSet |
| bool | myIsSolid |
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::DtEnvironmentalVolumetricLineVisualizer::DtEnvironmentalVolumetricLineVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
Constructor.
|
virtual |
Destructor.
|
delete |
not allowed - default constructor
|
delete |
not allowed - copy constructor
|
delete |
not allowed = equals operator
|
overridevirtual |
Initialize the visualizer.
Reimplemented from makVrv::DtStateVisualizer.
Reimplemented in makVrv::Dt3DEnvironmentalVolumetricLineVisualizer.
|
virtual |
Color setting routines.
Sets the color for the line. This will apply to all segments of the line. If the default (all 0's), uses the default as defined in the visual definition
|
virtual |
Sets color to default color as defined in the visualizer definition. Called when color set is 0, 0, 0, 0.
|
virtual |
Sets the inside color of the line.
|
virtual |
Color setting routines.
Sets the color for the line. This will apply to all segments of the line. If the default (all 0's), uses the default as defined in the visual definition
|
virtual |
Sets the selected inside color.
|
virtual |
Color setting routines.
Sets the color for the line. This will apply to all segments of the line. If the default (all 0's), uses the default as defined in the visual definition
|
virtual |
Sets the outside color of the line.
Reimplemented in makVrv::Dt3DEnvironmentalVolumetricLineVisualizer.
|
virtual |
Color setting routines.
Sets the color for the line. This will apply to all segments of the line. If the default (all 0's), uses the default as defined in the visual definition
|
virtual |
Sets the selected outside color. This color is used if the object is selected.
|
virtual |
Color setting routines.
Sets the color for the line. This will apply to all segments of the line. If the default (all 0's), uses the default as defined in the visual definition
|
pure virtual |
Update the colors on the model.
Implemented in makVrv::Dt3DEnvironmentalVolumetricLineVisualizer, and makVrv::Dt2DEnvironmentalVolumetricLineVisualizer.
|
overridevirtual |
Sets whether or not the line is selected. Connected to DtStateListener's signal_objectSelectionChanged signal.
Reimplemented from makVrv::DtStateVisualizer.
|
virtual |
Set / get the width of the outside line. Default is 2. The pixel line width is the line in osg pixel space. This is different than physicalLineWidth which sets the width of the line in database space. If value is 0 will use default pixel line width.
Reimplemented in makVrv::Dt2DEnvironmentalVolumetricLineVisualizer.
|
virtual |
Set / get the width of the outside line. Default is 2. The pixel line width is the line in osg pixel space. This is different than physicalLineWidth which sets the width of the line in database space. If value is 0 will use default pixel line width.
|
virtual |
Set / get the width of the line in database space.
Reimplemented in makVrv::Dt2DEnvironmentalVolumetricLineVisualizer, and makVrv::Dt3DEnvironmentalVolumetricLineVisualizer.
|
virtual |
Set / get the width of the line in database space.
|
virtual |
Set / Get if the model is solid. Default is true.
Reimplemented in makVrv::Dt3DEnvironmentalVolumetricLineVisualizer, and makVrv::Dt2DEnvironmentalVolumetricLineVisualizer.
|
virtual |
Set / Get if the model is solid. Default is true.
|
overrideprotectedvirtual |
Connect the visualizer to the listeners signals Called by DtStateVisualizer::initialize()
Reimplemented from makVrv::DtStateVisualizer.
Reimplemented in makVrv::Dt3DEnvironmentalVolumetricLineVisualizer.
|
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::Dt3DEnvironmentalVolumetricLineVisualizer.
|
overrideprotectedvirtual |
No-op must override pure virtual.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::Dt3DEnvironmentalVolumetricLineVisualizer, and makVrv::Dt2DEnvironmentalVolumetricLineVisualizer.
|
overrideprotectedvirtual |
No-op must override pure virtual.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::Dt3DEnvironmentalVolumetricLineVisualizer, and makVrv::Dt2DEnvironmentalVolumetricLineVisualizer.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |