![]() |
VR-Forces Developer's Guide
|
Interface for a Maneuver By Fire Position Tactical Graphic Visualizer.
This class is used by a Connection to realize a support by fire position tactical graphic or attack by fire position tactical graphic by setting the attributes of a Maneuver By Fire Facade according to signals received from the DtTacticalGraphicStateListener.
This class must be extended to create an maneuver by fire position model of the desired type, e.g. a 2D versus 3D maneuver by fire position.
The tactical graphic supports two modes which can be set in the entity definition under 'tacticalManeuverMode' If 'tacticalManeuverMode' is "Support" the the graphic will draw as a Support by Fire Position tactical graphic If 'tacticalManeuverMode' is "Attack" the the graphic will draw as an Attack by Fire Position tactical graphic
In the API, you can use setManeuverMode("Support") or setManeuverMode("Attack")

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 & | myManeuverByFireListener |
| float | myDefaultColor [4] |
| float | myColor [4] |
| float | mySelectedColor [4] |
| double | myDefaultLineWidth |
| int | myLineWidth |
| unsigned short | myLineStipple |
| DtOverlayManeuverByFireModel::ManeuverMode | myManeuverMode |
| 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::DtManeuverByFireVisualizer::DtManeuverByFireVisualizer | ( | 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 maneuver by fire position. 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 maneuver by fire position. 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 maneuver by fire position 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 maneuver by fire position 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 maneuver by fire position.
Reimplemented in makVrv::Dt2DManeuverByFireVisualizer.
|
virtual |
Set/Get the stipple pattern for the maneuver by fire position.
|
virtual |
Set/Get the line width of the maneuver by fire position 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::Dt2DManeuverByFireVisualizer.
|
virtual |
Set/Get the line width of the maneuver by fire position 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/Get the maneuver mode for the tactical graphic Two modes are supported: If string = "Support" then the tactical graphic will draw in support by fire position mode = 2 arrows If string = "Attack" then the tactical graphic will draw in attack by fire position mode = 1 arrow.
|
virtual |
Set/Get the maneuver mode for the tactical graphic Two modes are supported: If string = "Support" then the tactical graphic will draw in support by fire position mode = 2 arrows If string = "Attack" then the tactical graphic will draw in attack by fire position mode = 1 arrow.
|
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::Dt2DManeuverByFireVisualizer.
|
overrideprotectedvirtual |
Sets whether or not the maneuver by fire position 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 |
|
protected |