![]() |
VR-Forces 4.1.1 Class Documentation
|
A visualizer for displaying a Military Standard Symbology Icon for an aggregate. More...
Public Member Functions | |
| DtAggregateMilStdIconVisualizer (DtBaseConnection &connection, DtStateListener &listener, int modelSet) | |
| CTOR. | |
| virtual | ~DtAggregateMilStdIconVisualizer () |
| DTOR. | |
| void | setEchelonEnabled (bool enabled) |
| Set whether the echelon component is shown. | |
| bool | echelonEnabled () const |
| Get whether the echelon component is shown. | |
| virtual void | setVisualizerDefinition (const DtVisualizerDefinition &visDef) |
| Sets the visual definition of the visualizer. | |
| virtual unsigned short | echelonCharacterForUnitSymbolFont (int force) const |
| Routines to modify glyphs into force appropriate glyphs. | |
| virtual DtUnicode | generateSymbolString (float fillColor[4], float outlineColor[4], unsigned int fillGlyph, unsigned int outlineGlyph, unsigned int echelonGlyph, bool damaged) const |
| Generates the symbol string to use with a font based icon. | |
| virtual DtUnicode | generateSymbolString (float fillColor[4], float outlineColor[4], unsigned int fillGlyph, unsigned int outlineGlyph, bool damaged) const |
| Generates the symbol string to use with a font based icon. | |
| virtual unsigned short | echelonGlyph () const |
| Returns glyphs. | |
| virtual void | setShowMainIcon (bool) |
| Hides this icon, however, uses DtAggregateIconContext to hide/show it. | |
| virtual const DtStateVisualizer::TypeInfo & | typeInfo () const |
| The instance's type info. | |
Public Member Functions inherited from makVrv::DtMilStdIconVisualizer | |
| DtMilStdIconVisualizer (DtBaseConnection &connection, DtStateListener &listener, int modelSet) | |
| CTOR. | |
| virtual | ~DtMilStdIconVisualizer () |
| DTOR. | |
| virtual void | setModelDefinitionForAgents () |
| Sets the model definition of the agents. | |
| virtual void | setSelected (bool selected) |
| Set the visualizer to be selected. | |
| void | setDrawMethod (DrawMethod dt) |
| Set how the symbol is to be drawn. | |
| DrawMethod | drawMethod () const |
| void | setOutlineEnabled (bool enabled) |
| Set whether the frame component is drawn. | |
| bool | outlineEnabled () const |
| Get whether the frame component is drawn. | |
| void | setFillEnabled (bool enabled) |
| Set whether the fill component is filled. | |
| bool | fillEnabled () const |
| Get whether the fill component is filled. | |
| void | setDamageEnabled (bool enabled) |
| Sets whether damaged component is drawn. | |
| bool | damageEnabled () const |
| Gets whether damaged component is drawn. | |
| void | setIconEnabled (bool enabled) |
| Set whether the icon component is drawn. | |
| bool | iconEnabled () const |
| Get whether the icon component of the symbol. | |
| void | setIconScale (float scale) |
| void | setColorByAffiliationEnabled (bool enabled) |
| Set whether the icon has it's color set by it's affiliation. | |
| bool | colorByAffiliationEnabled () const |
| Get whether the icon has it's color set by it's affiliation. | |
| virtual void | setForceId (int) |
| Sets force of item. | |
| int | forceId () const |
| virtual void | setDamaged (bool) |
| Sets whether or not item is damaged. | |
| bool | damaged () const |
| virtual void | setForceColor (float r, float g, float b, float a) |
| Sets the color of the force. Forces an update. | |
| void | getForceColor (double &r, double &g, double &b, double &a) |
| virtual unsigned short | outlineCharacterForUnitSymbolFont (unsigned short outlineBase, int force) const |
| Routines to modify glyphs into force appropriate glyphs. | |
| virtual unsigned short | fillCharacterForUnitSymbolFont (unsigned short outlineBase, int force) const |
| unsigned short | outlineGlyph () const |
| Returns glyphs. | |
| unsigned short | fillGlyph () const |
| unsigned short | damageGlyph () const |
| virtual void | setPickable (bool b) |
| Sets pickable state. | |
| virtual void | rotateSymbolToHeading (double) |
| Rotates the object to the given heading as supplied in radians. | |
Public Member Functions inherited from makVrv::DtStateVisualizer | |
| DtStateVisualizer (DtBaseConnection &connection, DtStateListener &listener, int modelSet) | |
| CTOR. | |
| virtual | ~DtStateVisualizer () |
| DTOR. | |
| virtual void | setParent (DtStateVisualizer *) |
| Override to set the parent of this visualizer. | |
| void | setModelDefinition (const std::string &definition) |
| Sets the model definition and creates agent(s) based on that definition. | |
| const std::string & | modelDefinition () const |
| Gets the current model definition. | |
| virtual bool | setVisible (bool visible, int context) |
| Returns true if this context wants to show or hide the item. | |
| virtual void | initialize () |
| Initialize the visualizer. | |
| virtual bool | isVisible () const |
| Returns true if visible. | |
| virtual bool | selected () const |
| void | setName (const std::string &) |
| Internal name of state visualizer. | |
| const std::string & | name () const |
| virtual bool | pickable () const |
| virtual void | setUniqueID (DtUniqueID id) |
| DtUniqueID | uniqueID () const |
| int | visualizerType () const |
| void | setShowHideContext (const std::vector< int > &s) |
| Set show/hide context without changing visibility of item. | |
| DtStateListener & | listener () |
| DtBaseConnection & | simulation () |
| Get the connection for this visualizer. | |
| void | setDistribute (bool b) |
| Whether or not to distribute over the network. | |
| bool | distribute () const |
Static Public Member Functions | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
| This class's type info. | |
Additional Inherited Members | |
Public Types inherited from makVrv::DtMilStdIconVisualizer | |
| enum | DrawMethod { DrawMethod_Bitmap, DrawMethod_Font } |
Public Attributes inherited from makVrv::DtStateVisualizer | |
| boost::signal< void(DtStateVisualizer *, DtStateVisualizer *, DtStateVisualizer *)> | signal_reparented |
| Signaled when the parent of this item changes, called before destroying any model agents. | |
| boost::signal< void(DtMouseState &, const DtUniqueID &, const std::string &, const std::string &, const std::string &, DtStateVisualizer *)> | signal_mouseDown |
| Emitted when the entity's indicator is clicked. | |
| boost::signal< void(DtMouseState &, const DtUniqueID &, const std::string &, const std::string &, const std::string &, DtStateVisualizer *)> | signal_mouseUp |
| boost::signal< void(DtMouseState &, const DtUniqueID &, const std::string &, const std::string &, const std::string &, DtStateVisualizer *)> | signal_mouseDblClick |
Protected Member Functions inherited from makVrv::DtMilStdIconVisualizer | |
| virtual bool | fillCharacterByOutline (unsigned short outline, unsigned short lower, unsigned short upper, unsigned short start, bool equipment, unsigned short &fill) const |
| virtual unsigned short | forceOffset (int force) const |
| virtual void | setHasMouse (bool hasMouse) |
| virtual void | stateChanged () |
| Virtual function called after any symbol state changes (battle dimension, or affiliation). | |
| virtual void | displayChanged () |
| Virtual function called after any symbol state changes (draw method, frame enabled, fill enabled, icon enabled, color by affiliation);. | |
| virtual void | createModelAgents () |
| Override to create model agents that will be used to display data from the listener. | |
| virtual void | destroyModelAgents () |
| Destroys all currently created definitions. | |
| virtual void | update () |
| virtual void | updateSymbol () |
| virtual void | updateSelectedIcon () |
A visualizer for displaying a Military Standard Symbology Icon for an aggregate.
A symbology icon is made up of several different components. Included are: A frame, a color fill, an echelon level and an icon.
| makVrv::DtAggregateMilStdIconVisualizer::DtAggregateMilStdIconVisualizer | ( | DtBaseConnection & | connection, |
| DtStateListener & | listener, | ||
| int | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
| void makVrv::DtAggregateMilStdIconVisualizer::setEchelonEnabled | ( | bool | enabled | ) |
Set whether the echelon component is shown.
| bool makVrv::DtAggregateMilStdIconVisualizer::echelonEnabled | ( | ) | const |
Get whether the echelon component is shown.
|
virtual |
Sets the visual definition of the visualizer.
Reimplemented from makVrv::DtMilStdIconVisualizer.
|
virtual |
Routines to modify glyphs into force appropriate glyphs.
Call outlineCharacterForUnitSymbolFont to get the force modified outline, then pass that result into fillCharacterForUnitSymbolFont to return the appropriate fill character
Reimplemented in makVrf::DtVrfGui3DAggregateMilStdIconVisualizer, makVrv::DT_PROTOCOL_NAMESPACE::DtVrlink2DAggregateMilStdIconVisualizer, makVrv::DT_PROTOCOL_NAMESPACE::DtVrlink3DAggregateMilStdIconVisualizer, and makVrf::DtVrfGui2DAggregateMilStdIconVisualizer.
|
virtual |
Generates the symbol string to use with a font based icon.
|
virtual |
Generates the symbol string to use with a font based icon.
Reimplemented from makVrv::DtMilStdIconVisualizer.
|
virtual |
Returns glyphs.
|
virtual |
Hides this icon, however, uses DtAggregateIconContext to hide/show it.
|
virtual |
The instance's type info.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::Dt2DAggregateMilStdIconVisualizer, and makVrv::Dt3DAggregateMilStdIconVisualizer.
|
static |
This class's type info.
Reimplemented in makVrv::Dt2DAggregateMilStdIconVisualizer, and makVrv::Dt3DAggregateMilStdIconVisualizer.
|
protected |
True
|
protected |