![]() |
VR-Forces Developer's Guide
|
TacticalGraphic Symbol decoration visualizer.

Public Member Functions | |
| DtTacticalGraphicNameVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) | |
| virtual | ~DtTacticalGraphicNameVisualizer () |
| DtTacticalGraphicNameVisualizer ()=delete | |
| DtTacticalGraphicNameVisualizer (const DtTacticalGraphicNameVisualizer &)=delete | |
| DtTacticalGraphicNameVisualizer & | operator= (const DtTacticalGraphicNameVisualizer &)=delete |
| virtual void | initialize () override |
| virtual void | connectToListenerSignals () override |
| virtual void | setTacticalGraphicsNameEnabled (bool enabled, bool instanceOnly=false) |
| virtual const DtStateVisualizer::TypeInfo & | typeInfo () const |
| virtual void | createModelAgents () override |
| virtual void | destroyModelAgents () override |
| virtual std::string | fontFile () |
| virtual void | setFontFile (std::string fontFile) |
| virtual int | fontSize () const |
| virtual void | setFontSize (int size) |
| virtual void | setLocalVertexList (const VertexList &) |
| const VertexList & | localVertexList () const |
| virtual void | setColor (float r, float g, float b, float a) |
| void | getColor (float &r, float &g, float &b, float &a) const |
| virtual void | setClosedFigure (bool) |
| bool | closedFigure () const |
| virtual void | setLabelPosition (DtVector &labelPosition) |
| const DtVector & | labelPosition () const |
| virtual void | setIsTimeSensitive (bool) |
| virtual bool | isTimeSensitive () const |
| virtual void | slot_colorChanged (float r, float g, float b, float a) |
| virtual void | slot_fontChanged (const std::string &fontFile, int fontSize) |
| virtual void | slot_closedFigureChanged (bool isClosedFigure) |
| virtual void | slot_activationDeactivationTimeSet () |
| virtual void | slot_nameChanged (const std::string &name) |
| virtual std::string | createDateTimeLabel (time_t totalSeconds) const |
| virtual void | setIsFriendlyForceColorOverrideEnabled (bool enabled) |
| virtual bool | isFriendlyForceColorOverrideEnabled () const |
| virtual void | slot_vertexAdded (const DtVector &) |
| virtual void | slot_vertexRemoved (int index) |
| virtual void | slot_vertexInserted (int index, const DtVector &) |
| virtual void | slot_vertexMoved (int index, const DtVector &) |
| virtual void | slot_vertexListUpdated (const VertexList &) |
| virtual void | slot_physicalLineHeightChanged (float height) |
| virtual void | setLabelOffset (int xOffset, int yOffset) |
Public Member Functions inherited from makVrv::DtStateVisualizer | |
| DtStateVisualizer (DtBaseConnection &connection, DtStateListener &listener, DtSceneObjectAgent *sceneObjectAgent, DtModelSetId modelSet) | |
| virtual | ~DtStateVisualizer () |
| virtual DtModelSetId | modelSet () |
| virtual void | setSceneObjectAgent (DtSceneObjectAgent *sceneObject) |
| void | setModelDefinition (const std::string &definition) |
| const std::string & | modelDefinition () const |
| virtual void | implementVisibility (bool visible) |
| virtual void | slot_setSelected (bool b) |
| 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) |
Static Public Member Functions | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
Protected Member Functions | |
| virtual void | setModelDefinitionForAgents () override |
| virtual void | updateLabelPosition () |
| virtual void | updateLabelString () |
| virtual void | updateTextColor () |
| virtual DtUnicode | createAreaInformationString () const |
| virtual DtUnicode | createLinearInformationString () const |
| virtual void | calculateLineLabelAngle (const std::vector< DtVector > &vertexList) |
| virtual void | setInitialValuesFromVisualizerDefinition () |
| 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 |
| typedef std::vector<DtVector> makVrv::DtTacticalGraphicNameVisualizer::VertexList |
used to store a list of the object's vertices
| makVrv::DtTacticalGraphicNameVisualizer::DtTacticalGraphicNameVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
| simulation | the DtBaseConnection this visualizer will use |
| listener | the DtTacticalGraphicStateListener for this visualizer's entity |
| sceneObject | SceneObjectAgent this visualizer adds a model to |
| modelSet | the model set this visualizer belongs to |
|
virtual |
DTOR Cleans up the model agents associated with this visualizer.
|
delete |
not allowed - default constructor
|
delete |
not allowed - copy constructor
|
delete |
not allowed = equals operator
|
overridevirtual |
Initialize the visualizer.
Reimplemented from makVrv::DtStateVisualizer.
|
overridevirtual |
Connect the visualizer to the listeners signals.
Reimplemented from makVrv::DtStateVisualizer.
|
virtual |
Enables or disables the name of the tactical graphic being visualized controlled by the listener's signal_tacticalGraphicsIndicatorsEnabled.
|
virtual |
The instance's type info.
Implements makVrv::DtStateVisualizer.
|
static |
This class's type info.
|
overridevirtual |
Implements makVrv::DtStateVisualizer.
|
overridevirtual |
Implements makVrv::DtStateVisualizer.
|
virtual |
Get the label's font file "$(SHARED_DATA_DIR)/Fonts/FreeSans.otf" by default.
|
virtual |
Set the label's font file.
|
virtual |
Gets the label's font size 14 by default.
|
virtual |
Sets the label's font size.
|
virtual |
Set the local vertex list.
| const VertexList& makVrv::DtTacticalGraphicNameVisualizer::localVertexList | ( | ) | const |
Get the current vertex list.
|
virtual |
Sets the color of the object.
| void makVrv::DtTacticalGraphicNameVisualizer::getColor | ( | float & | r, |
| float & | g, | ||
| float & | b, | ||
| float & | a | ||
| ) | const |
Gets the color of the object.
|
virtual |
Sets whether or not figure is a closed figure (area vs. line)
| bool makVrv::DtTacticalGraphicNameVisualizer::closedFigure | ( | ) | const |
Gets whether or not figure is a closed figure (area vs. line)
|
virtual |
Sets the position of the object's label.
| const DtVector& makVrv::DtTacticalGraphicNameVisualizer::labelPosition | ( | ) | const |
Gets the position of the object's label.
|
virtual |
Sets whether or not alitude and time information should be displayed for area tactical graphics.
|
virtual |
Gets whether or not alitude and time information should be displayed for area tactical graphics.
|
virtual |
Slot that is called when the tactical graphic widget color is set Bound to the listener's signal_colorSet.
|
virtual |
Slot that is called when the tactical graphic text font changes Bound to the listener's signal_fontChanged.
|
virtual |
Slot that is called when the tactical graphic's isClosedFigure property changes Bound to the listener's signal_closedFigureChanged.
|
virtual |
|
virtual |
Slot that is called when the tactical graphic name changes Bound to the listener's signal_nameChanged.
|
virtual |
Creates a Date-Time Group string representation for the provided time. The default implementation creates string representation, for the provided time, expressed in the Zulu timezone. Further, the resulting string representation is expressed in Date/Time Group format: DDHHMMSSZMONYYYY where DD is Day, HH is Hours, MM is minutes, SS is seconds, Z is the time zone acronym for the Zulu timezone, MON is month, and YYYY is year.
| totalSeconds | The number of seconds since Jan 1, 1970. |
|
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.
|
virtual |
Slot that is called when a vertex is added to the object Bound to the listener's signal_vertexAdded.
|
virtual |
Slot that is called when a vertex is removed from the object Bound to the listener's signal_vertexRemoved.
|
virtual |
Slot that is called when a vertex is inserted at a particular index Bound to the listener's signal_insertVertex.
|
virtual |
Slot that is called when a vertex is moved to a particular index Bound to the listener's signal_vertexMoved.
|
virtual |
Slot that is called when the vertex list changes Bound to the listener's signal_vertexListUpdated.
|
virtual |
Slot for when physical height changes.
|
virtual |
Set the label offset in pixels.
|
overrideprotectedvirtual |
Implements makVrv::DtStateVisualizer.
|
protectedvirtual |
updates the label position and rotation based on the type of tactical graphic
|
protectedvirtual |
updates the label string
|
protectedvirtual |
update the widget's colors
|
protectedvirtual |
Utility function to create the informational string that appears at the center of an area.
|
protectedvirtual |
Utility function to create the informational string that appears at the center of an area.
|
protectedvirtual |
Calculates the angle of the line label and updates myLabelAngle.
| vertexList | list of vertices the make up the line |
|
protectedvirtual |
Sets member variables from the visualizer definition if they exist Should not call this directly. Called by initialize.
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 |
color of the tactical graphic
|
protected |
selected color of the tactical graphic
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
For name labels, i.e. this for lines only. Areas have 'information' labels since they can contain more information besides the name.
|
protected |
Rotation offset for label, set from visualizer definition.
|
protected |
|
protected |
|
protected |
ASCII integer to use for the linear arrow character Only use for paired coulde arrows.
|
protected |
title used for areal information - comes from visual definition
|
protected |
arrow title, preceeds arrow but after name - comes from visual definition
|
protected |
string used to separate the title and name used for areal information - comes from visual definition
|
protected |
|
protected |
label used for object visualization contains the graphic name only, no additional info included
|
protected |
The position of the graphic label.
|
protected |
Angle of the label.
|
protected |
The maximum world distance of the label.
|
protected |
Whether or not the arrow is rendered for linear tactical graphics.
|
protected |
Used to turn the additional area info (altitude and time) on or off Defaults to true.
|
protected |
Has the label been flipped due to line orientation.
|
protected |
Whether or not figure is a closed figure (area vs. line)
|
protected |
When this visualizer if used by a friendly aligned graphic, can its color be overridden by 2525d black/white colors.
|
protected |