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

Public Types | |
| using | DtListenToDisplayUnitSettingIndex = DtOverlaySpiderWebModel::DtListenToDisplayUnitSettingIndex |
Public Types inherited from makVrv::DtStateVisualizer | |
| enum | Type { AllVisualizerTypes = 0, EntityVisualizerType = 1, EnvironmentalVisualizerType, InteractionVisualizerType, AggregateVisualizerType, IntervisibilityVisualizerType, TacticalSmokeVisualizerType, UserType = 10000 } |
Protected Member Functions | |
| virtual void | connectToListenerSignals () override |
| virtual void | updateColors ()=0 |
| virtual void | setInitialValuesFromVisualizerDefinition () override |
| virtual void | createModelAgents () override |
| virtual void | destroyModelAgents () override |
| virtual void | setModelDefinitionForAgents () override |
| void | setFriendlyForceColorStyle (vrvTacticalGraphicUtilities::FriendlyForceColorStyle style) |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | makeVisible () |
| template<typename T , typename C > | |
| void | connectAndUpdate (boost::signalslib::signal< void(T)> &sig, void(C::*fp)(T), T val) |
Additional Inherited Members | |
Protected Types inherited from makVrv::DtStateVisualizer | |
| typedef std::vector < DtVisualizerShowHideContext::VisualizerShowHideContext > | ShowHideContextVector |
| using makVrv::DtSpiderWebVisualizer::DtListenToDisplayUnitSettingIndex = DtOverlaySpiderWebModel::DtListenToDisplayUnitSettingIndex |
| makVrv::DtSpiderWebVisualizer::DtSpiderWebVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
Default Constructor - not allowed.
|
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 |
Color.
Sets the color for the spider web. 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 |
Returns the color.
|
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/Get the color of the spider web. Valid range for argument values are 0.0 - 1.0. Default value is (1, 1, 1, 1).
|
virtual |
Color.
Sets the color for the spider web. 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 the pen style This function translates the pen style to a stipple pattern. See vrvTacticalGraphicUtilities for styles.
|
virtual |
Returns the stipple pattern.
|
virtual |
Sets the stipple pattern.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
overridevirtual |
Sets whether or not the spider web is selected. Connected to DtStateListener's signal_objectSelectionChanged signal.
Reimplemented from makVrv::DtStateVisualizer.
|
virtual |
Sets the line width of the spider web 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::Dt2DSpiderWebVisualizer.
|
virtual |
Sets the spider web to be attached to the specified object Once attached this object will move its origin offset from the relative location.
Set/Get the number of spokes the spider web has Default value is 6 spokes
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Sets the spider web to be attached to the specified object Once attached this object will move its origin offset from the relative location.
Set/Get the number of spokes the spider web has Default value is 6 spokes
|
virtual |
Set/Get the number of rings the spider web has Any prior call to setRingIntervalDistance(...) is ignored, the ring interval distance will be (radius / number_of_rings). Default value is 5 rings.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get the number of rings the spider web has Any prior call to setRingIntervalDistance(...) is ignored, the ring interval distance will be (radius / number_of_rings). Default value is 5 rings.
|
virtual |
Set/Get the max angle segment used when building the spider web Default value is PI / 18.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get the max angle segment used when building the spider web Default value is PI / 18.
|
virtual |
Set/Get the radius (in meters) of the spider web Default value is 100.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get the radius (in meters) of the spider web Default value is 100.
|
virtual |
Set/Get the spider web's scale factor Default value is 1.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get the spider web's scale factor Default value is 1.
|
virtual |
Set/Get whether the inner most ring of the spider web is filled Default is true.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get whether the inner most ring of the spider web is filled Default is true.
|
virtual |
Set/Get the ring interval distance for the spider web (in meters) Any prior call to setNumberOfRings(...) is ignored, the number of rings drawn will be (radius / ring_interval_distance). Default is 0 - setNumberOfRings is used instead.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get the ring interval distance for the spider web (in meters) Any prior call to setNumberOfRings(...) is ignored, the number of rings drawn will be (radius / ring_interval_distance). Default is 0 - setNumberOfRings is used instead.
|
virtual |
Set/Get whether or not to listen to display unit settings for which North to use. Default value is true.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get whether or not to listen to display unit settings for which North to use. Default value is true.
|
virtual |
Set/Get whether or not to listen to display unit settings for which Orientation unit to use. Default value is true.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get whether or not to listen to display unit settings for which Orientation unit to use. Default value is true.
|
virtual |
Set/Get whether or not to listen to display unit settings for which Distance unit to use. Default value is true.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get whether or not to listen to display unit settings for which Distance unit to use. Default value is true.
|
virtual |
Set/Get the group this overlay will be drawn in. The higher the group number, the "closer" to the eyepoint this overlay will be drawn. Use this function to stack overlay objects in the particular order you want them displayed. Default value is 1.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get the group this overlay will be drawn in. The higher the group number, the "closer" to the eyepoint this overlay will be drawn. Use this function to stack overlay objects in the particular order you want them displayed. Default value is 1.
|
virtual |
Set/Get whether or not this spider web is decorated. When a spider web is decorated, informative labels appear at each ring and spoke indicating the distance of the ring from the center and the angle of each spoke from North (True/Magnetic are supported). Default value is true.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get whether or not this spider web is decorated. When a spider web is decorated, informative labels appear at each ring and spoke indicating the distance of the ring from the center and the angle of each spoke from North (True/Magnetic are supported). Default value is true.
|
virtual |
Set/Get the font file to use for the spider web. Default value is "FreeSans.otf".
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get the font file to use for the spider web. Default value is "FreeSans.otf".
|
virtual |
Set/Get the font point size for the spider web. Default value is 20.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get the font point size for the spider web. Default value is 20.
|
virtual |
Set/Get the font color for the spider web. Default value is (1., 1., 1., .7).
|
virtual |
Set/Get the font color for the spider web. Default value is (1., 1., 1., .7).
|
virtual |
Set/Get the distance unit to use for the spider web. This function does nothing if setListenToDisplayUnitSettings(true). Default value is Nautical Miles.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get the distance unit to use for the spider web. This function does nothing if setListenToDisplayUnitSettings(true). Default value is Nautical Miles.
Set/Get the number of decimals to use for distance for the spider web. This function does nothing if setListenToDisplayUnitSettings(true). Default value is 0.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
Set/Get the number of decimals to use for distance for the spider web. This function does nothing if setListenToDisplayUnitSettings(true). Default value is 0.
|
virtual |
Set/Get the orientation unit to use for the spider web. This function does nothing if setListenToDisplayUnitSettings(true). Default value is degrees.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get the orientation unit to use for the spider web. This function does nothing if setListenToDisplayUnitSettings(true). Default value is degrees.
Set/Get the number of decimals to use for orientation values. This function does nothing if setListenToDisplayUnitSettings(true). Default value is 0.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
Set/Get the number of decimals to use for orientation values. This function does nothing if setListenToDisplayUnitSettings(true). Default value is 0.
|
virtual |
Set/Get the north unit to use for the spider web. This function does nothing if setListenToDisplayUnitSettings(true). Default value is True North.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
virtual |
Set/Get the north unit to use for the spider web. This function does nothing if setListenToDisplayUnitSettings(true). Default value is True North.
|
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 |
Connect the visualizer to the listeners signals.
Reimplemented from makVrv::DtStateVisualizer.
|
protectedpure virtual |
Update the colors on the model.
Implemented in makVrv::Dt2DSpiderWebVisualizer.
|
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 |
No-op must override pure virtual.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
overrideprotectedvirtual |
No-op must override pure virtual.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
overrideprotectedvirtual |
No-op must override pure virtual.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::Dt2DSpiderWebVisualizer.
|
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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |