![]() |
VR-Forces Developer's Guide
|
Interface for a Ambush Line Tactical Graphic Visualizer.
This class is used by a Connection to realize a ambush line tactical graphic by setting the attributes of an Ambush Line Facade according to signals received from the DtTacticalGraphicStateListener.
This class must be extended to create an ambush line model of the desired type, e.g. a 2D versus 3D ambush line.

Public Member Functions | |
| DtAmbushLineVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) | |
| virtual | ~DtAmbushLineVisualizer () |
| DtAmbushLineVisualizer ()=delete | |
| DtAmbushLineVisualizer (const DtAmbushLineVisualizer &)=delete | |
| DtAmbushLineVisualizer & | operator= (const DtAmbushLineVisualizer &)=delete |
| virtual void | initialize () override |
| virtual void | useDefaultColor () |
| virtual void | setPenStyle (vrvTacticalGraphicUtilities::PenStyle) |
| virtual void | setIsFriendlyForceColorOverrideEnabled (bool enabled) |
| virtual bool | isFriendlyForceColorOverrideEnabled () const |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | getColor (float &r, float &g, float &b, float &a) const |
| virtual void | setSelectedColor (float r, float g, float b, float a) |
| virtual void | getSelectedColor (float &r, float &g, float &b, float &a) const |
| virtual void | setStipplePattern (unsigned short) |
| virtual unsigned short | stipplePattern () |
| virtual void | setPixelLineWidth (int) |
| virtual int | pixelLineWidth () |
Public Member Functions inherited from makVrv::DtStateVisualizer | |
| DtStateVisualizer (DtBaseConnection &connection, DtStateListener &listener, DtSceneObjectAgent *sceneObjectAgent, DtModelSetId modelSet) | |
| virtual | ~DtStateVisualizer () |
| virtual DtModelSetId | modelSet () |
| virtual void | createModelAgents ()=0 |
| virtual void | destroyModelAgents ()=0 |
| 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 | setVisualizerIsVisible (bool vis, DtVisualizerShowHideContext::VisualizerShowHideContext context) |
Protected Member Functions | |
| virtual void | setInitialValuesFromVisualizerDefinition () override |
| virtual void | connectToListenerSignals () override |
| virtual void | updateColors ()=0 |
| virtual void | slot_setSelected (bool) override |
| void | setFriendlyForceColorStyle (vrvTacticalGraphicUtilities::FriendlyForceColorStyle style) |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | setModelDefinitionForAgents ()=0 |
| 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 | |
| DtTacticalGraphicStateListener & | myAmbushLineListener |
| float | myDefaultColor [4] |
| float | myColor [4] |
| float | mySelectedColor [4] |
| double | myDefaultLineWidth |
| int | myLineWidth |
| unsigned short | myLineStipple |
| vrvTacticalGraphicUtilities::FriendlyForceColorStyle | myFriendlyForceColorStyle |
| bool | myIsFriendlyForceColorOverrideEnabled |
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::DtAmbushLineVisualizer::DtAmbushLineVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
Default Constructor not implemented.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
delete |
Assignment Operator not implemented - Copy not allowed.
|
overridevirtual |
Initialize the visualizer.
Reimplemented from makVrv::DtStateVisualizer.
|
virtual |
Set/Get the color for the ambush line. Valid range for argument values are 0.0 - 1.0. This will apply to all segments of the arc. If arguments are all 0, use the default as defined in the visual definition.
|
virtual |
Set/Get the color for the ambush line. Valid range for argument values are 0.0 - 1.0. This will apply to all segments of the arc. If arguments are all 0, use the default as defined in the visual definition.
|
virtual |
Set/Get the inside color of the ambush line when selected. Valid range for argument values are 0.0 - 1.0. Default value is (0, 0, 0, 1).
|
virtual |
Set/Get the inside color of the ambush line when selected. Valid range for argument values are 0.0 - 1.0. Default value is (0, 0, 0, 1).
|
virtual |
Sets color to default color The default color is defined in the visualizer definition. This function is called when setColor( 0, 0, 0, 0 ); is called.
|
virtual |
Set the pen style This function translates the pen style to a stipple pattern. See vrvTacticalGraphicUtilities for styles.
|
virtual |
Set/Get the stipple pattern for the ambush lines.
Reimplemented in makVrv::Dt2DAmbushLineVisualizer.
|
virtual |
Set/Get the stipple pattern for the ambush lines.
|
virtual |
Set/Get the line width of the ambush line The pixel line width is the width of the line in osg pixel space. This is different than physicalLineWidth which sets the width of the line in database space.
Reimplemented in makVrv::Dt2DAmbushLineVisualizer.
|
virtual |
Set/Get the line width of the ambush line The pixel line width is the width of the line in osg pixel space. This is different than physicalLineWidth which sets the width of the line in database space.
|
virtual |
Set whether or not the color of this graphic, if aligned friendly,
can be overridden with black/white coloration
|
virtual |
Returns (based on the model definitionor set value) whether or not the color of this graphic, if aligned friendly, can be overridden with black/white coloration.
|
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.
|
protectedpure virtual |
Update the colors on the model.
Implemented in makVrv::Dt2DAmbushLineVisualizer.
|
overrideprotectedvirtual |
Sets whether or not the ambush line is selected. Connected to DtStateListener's signal_objectSelectionChanged signal.
Reimplemented from makVrv::DtStateVisualizer.
|
protected |
Connected to the TG listener's signal_friendlyForceColorStyleChanged. This will cache the new value and force a call to updateColors()
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |