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

Public Member Functions | |
| DtImageSymbolVisualizer (DtBaseConnection &connection, DtStateListener &listener, int modelSet) | |
| CTOR. | |
| virtual | ~DtImageSymbolVisualizer () |
| DTOR. | |
| virtual void | setVisualizerDefinition (const DtVisualizerDefinition &visDef) |
| Sets the visual definition of the visualizer. | |
| 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. | |
Protected Member Functions | |
| virtual void | setHasMouse (bool hasMouse) |
| Sets whether or not the mouse is on this item. If so will show as "highlighted". | |
| virtual void | createModelAgents () |
| Creates the agents used to display this model. | |
| virtual void | destroyModelAgents () |
| Destroys agents used to create this mode. | |
| 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. | |
Protected Attributes | |
| DtProjectedWidgetModelAgent * | myProjectIconPosition |
| DtWidgetAgent * | myIcon |
| DtWidgetInstanceSignaler * | myIconSignaler |
| DtWidgetAgent * | mySelectedIcon |
| bool | myHasMouse |
| float | myScale |
| int | myImageSymbol |
| DtVisualAttributeSymbolSelector::ImageSymbolMap | myImageSymbolMap |
| unsigned int | myIconGroup |
| unsigned int | myDestroyedIconGroup |
| int | mySizeX |
| int | mySizeY |
| DtWidgetAgent * | myDestroyedIcon |
| bool | myDestroyed |
| std::string | myDestroyedModel |
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
| makVrv::DtImageSymbolVisualizer::DtImageSymbolVisualizer | ( | DtBaseConnection & | connection, |
| DtStateListener & | listener, | ||
| int | modelSet | ||
| ) |
CTOR.
| virtual makVrv::DtImageSymbolVisualizer::~DtImageSymbolVisualizer | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtImageSymbolVisualizer::setVisualizerDefinition | ( | const DtVisualizerDefinition & | visDef | ) | [virtual] |
Sets the visual definition of the visualizer.
Reimplemented from makVrv::DtStateVisualizer.
| virtual void makVrv::DtImageSymbolVisualizer::setModelDefinitionForAgents | ( | ) | [virtual] |
Sets the model definition of the agents.
Implements makVrv::DtStateVisualizer.
| virtual void makVrv::DtImageSymbolVisualizer::setSelected | ( | bool | selected | ) | [virtual] |
Set the visualizer to be selected.
Reimplemented from makVrv::DtStateVisualizer.
| void makVrv::DtImageSymbolVisualizer::setScale | ( | float | scale | ) |
Sets scale of the item relative to the default size.
| virtual void makVrv::DtImageSymbolVisualizer::setImageSymbol | ( | int | ) | [virtual] |
Sets the image to display.
| virtual int makVrv::DtImageSymbolVisualizer::imageSymbol | ( | ) | const [virtual] |
Returns the image symbol to display.
| virtual void makVrv::DtImageSymbolVisualizer::setPickable | ( | bool | b | ) | [virtual] |
Sets whether or not the item is selectable.
Reimplemented from makVrv::DtStateVisualizer.
| virtual void makVrv::DtImageSymbolVisualizer::setImageSymbolMap | ( | const DtVisualAttributeSymbolSelector::ImageSymbolMap & | ) | [virtual] |
Sets the integer to model definition map of this visualizer.
| const DtVisualAttributeSymbolSelector::ImageSymbolMap& makVrv::DtImageSymbolVisualizer::imageSymbolMap | ( | ) | const |
Returns the map.
| virtual void makVrv::DtImageSymbolVisualizer::setImageSize | ( | int | x, |
| int | y | ||
| ) | [virtual] |
Sets the size of the image if scaling is 1.0.
| void makVrv::DtImageSymbolVisualizer::getImageSize | ( | int & | x, |
| int & | y | ||
| ) |
Returns the current size of the image if scale is 1.0.
| virtual void makVrv::DtImageSymbolVisualizer::setDestroyed | ( | bool | ) | [virtual] |
Sets whether or not this item is destroyed.
If it is the destroyed model definition will be displayed on top of the icon
| bool makVrv::DtImageSymbolVisualizer::destroyed | ( | ) | const [inline] |
Returns whether or not this object is destroyed.
| virtual void makVrv::DtImageSymbolVisualizer::setDestroyedModel | ( | const std::string & | ) | [virtual] |
Sets the model definition to display when item is destroyed.
| const std::string& makVrv::DtImageSymbolVisualizer::destroyedModel | ( | ) | const [inline] |
Returns the model used for the destroyed image.
| virtual void makVrv::DtImageSymbolVisualizer::setHasMouse | ( | bool | hasMouse | ) | [protected, virtual] |
Sets whether or not the mouse is on this item. If so will show as "highlighted".
| virtual void makVrv::DtImageSymbolVisualizer::createModelAgents | ( | ) | [protected, virtual] |
Creates the agents used to display this model.
Implements makVrv::DtStateVisualizer.
| virtual void makVrv::DtImageSymbolVisualizer::destroyModelAgents | ( | ) | [protected, virtual] |
Destroys agents used to create this mode.
Implements makVrv::DtStateVisualizer.
| virtual void makVrv::DtImageSymbolVisualizer::update | ( | ) | [protected, virtual] |
Updates the model with items to display.
| virtual DtUnicode makVrv::DtImageSymbolVisualizer::imageSymbolDefinition | ( | int | ) | const [protected, virtual] |
Given an integer, return the image symbol definition for that. If it does not exist, return the first element.
DtProjectedWidgetModelAgent* makVrv::DtImageSymbolVisualizer::myProjectIconPosition [protected] |
DtWidgetAgent* makVrv::DtImageSymbolVisualizer::myIcon [protected] |
DtWidgetAgent* makVrv::DtImageSymbolVisualizer::mySelectedIcon [protected] |
bool makVrv::DtImageSymbolVisualizer::myHasMouse [protected] |
float makVrv::DtImageSymbolVisualizer::myScale [protected] |
int makVrv::DtImageSymbolVisualizer::myImageSymbol [protected] |
DtVisualAttributeSymbolSelector::ImageSymbolMap makVrv::DtImageSymbolVisualizer::myImageSymbolMap [protected] |
unsigned int makVrv::DtImageSymbolVisualizer::myIconGroup [protected] |
unsigned int makVrv::DtImageSymbolVisualizer::myDestroyedIconGroup [protected] |
int makVrv::DtImageSymbolVisualizer::mySizeX [protected] |
int makVrv::DtImageSymbolVisualizer::mySizeY [protected] |
DtWidgetAgent* makVrv::DtImageSymbolVisualizer::myDestroyedIcon [protected] |
bool makVrv::DtImageSymbolVisualizer::myDestroyed [protected] |
std::string makVrv::DtImageSymbolVisualizer::myDestroyedModel [protected] |