VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtImageSymbolVisualizer Class Reference

A visualizer for displaying a Image (Bitmap) Symbology Icon. More...

Inheritance diagram for makVrv::DtImageSymbolVisualizer:
Inheritance graph
[legend]

List of all members.

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
DtWidgetInstanceSignalermyIconSignaler
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

Detailed Description

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


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

Sets the visual definition of the visualizer.

Reimplemented from makVrv::DtStateVisualizer.

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.

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.

Sets the integer to model definition map of this visualizer.

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.

Sets whether or not this item is destroyed.

If it is the destroyed model definition will be displayed on top of the icon

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.


Member Data Documentation

DtProjectedWidgetModelAgent* makVrv::DtImageSymbolVisualizer::myProjectIconPosition [protected]
DtWidgetAgent* makVrv::DtImageSymbolVisualizer::myIcon [protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)