![]() |
VR-Forces Development_Version Class Documentation
|
A visualizer for displaying a Image (Bitmap) Symbology Icon. More...

Public Member Functions | |
| DtTacticalGraphicImageSymbolVisualizer (DtBaseConnection &connection, DtStateListener &listener, int modelSet) | |
| CTOR. | |
| virtual | ~DtTacticalGraphicImageSymbolVisualizer () |
| DTOR. | |
| virtual const DtStateVisualizer::TypeInfo & | typeInfo () const |
| The instance's type info. | |
| virtual void | createModelAgents () |
| If centering the icon create a new scene object agent and attach projected widget to that. | |
| virtual void | setCenterIcon (bool) |
| If centering the icon create a new scene object agent and attach projected widget to that else place projected widget on the parent scene object agent. | |
| virtual void | setVisualizerDefinition (const DtVisualizerDefinition &visDef) |
| Get value for "center" value and set the center icon value to that. | |
| virtual void | destroyModelAgents () |
| Destroy all model agents. | |
Public Member Functions inherited from makVrv::DtImageSymbolVisualizer | |
| DtImageSymbolVisualizer (DtBaseConnection &connection, DtStateListener &listener, int modelSet) | |
| CTOR. | |
| virtual | ~DtImageSymbolVisualizer () |
| DTOR. | |
| virtual void | setModelDefinitionForAgents () |
| Sets the model definition of the agents. | |
| virtual void | setSelected (bool selected) |
| Set the visualizer to be selected. | |
| void | setScale (float scale) |
| Sets scale of the item relative to the default size. | |
| virtual void | setImageSymbol (int) |
| Sets the image to display. | |
| virtual int | imageSymbol () const |
| Returns the image symbol to display. | |
| virtual void | setPickable (bool b) |
| Sets whether or not the item is selectable. | |
| virtual void | setImageSymbolMap (const DtVisualAttributeSymbolSelector::ImageSymbolMap &) |
| Sets the integer to model definition map of this visualizer. | |
| const DtVisualAttributeSymbolSelector::ImageSymbolMap & | imageSymbolMap () const |
| Returns the map. | |
| virtual void | setImageSize (int x, int y) |
| Sets the size of the image if scaling is 1.0. | |
| void | getImageSize (int &x, int &y) |
| Returns the current size of the image if scale is 1.0. | |
| virtual void | setDestroyed (bool) |
| Sets whether or not this item is destroyed. | |
| bool | destroyed () const |
| Returns whether or not this object is destroyed. | |
| virtual void | setDestroyedModel (const std::string &) |
| Sets the model definition to display when item is destroyed. | |
| const std::string & | destroyedModel () const |
| Returns the model used for the destroyed image. | |
| virtual void | rotateSymbolToHeading (double) |
| Rotates the object to the given heading as indicated by the radians contents of heading. | |
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::DtStateVisualizer | |
| enum | Type { AllVisualizerTypes = 0, EntityVisualizerType = 1, EnvironmentalVisualizerType, InteractionVisualizerType, AggregateVisualizerType, IntervisibilityVisualizerType, TacticalSmokeVisualizerType, UserType = 10000 } |
| Visualizer class types that are supportable via visualizers. More... | |
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::DtImageSymbolVisualizer | |
| virtual void | setHasMouse (bool hasMouse) |
| Sets whether or not the mouse is on this item. If so will show as "highlighted". | |
| virtual void | update () |
| Updates the model with items to display. | |
| virtual DtUnicode | imageSymbolDefinition (int) const |
| Given an integer, return the image symbol definition for that. If it does not exist, return the first element. | |
A visualizer for displaying a Image (Bitmap) Symbology Icon.
The visualizer stores a map by integer of which image to display. If no image identifier is supplied, the first available image in the map is displayed. Will also display destroyed model image if model is destroyed
| makVrv::DtTacticalGraphicImageSymbolVisualizer::DtTacticalGraphicImageSymbolVisualizer | ( | DtBaseConnection & | connection, |
| DtStateListener & | listener, | ||
| int | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
The instance's type info.
Implements makVrv::DtStateVisualizer.
|
static |
This class's type info.
Referenced by makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkTacticalGraphicImageSymbolVisualizer::theTypeInfo().
|
virtual |
If centering the icon create a new scene object agent and attach projected widget to that.
Reimplemented from makVrv::DtImageSymbolVisualizer.
|
virtual |
If centering the icon create a new scene object agent and attach projected widget to that else place projected widget on the parent scene object agent.
|
virtual |
Get value for "center" value and set the center icon value to that.
Reimplemented from makVrv::DtImageSymbolVisualizer.
|
virtual |
Destroy all model agents.
Reimplemented from makVrv::DtImageSymbolVisualizer.
|
protected |
|
protected |
|
protected |
|
protected |