![]() |
VR-Forces 4.10 Class Documentation
|
The class will manage the icons for the entities, tactical graphics, munitions ,ect. More...

Classes | |
| class | EntityWithForceKey |
Public Member Functions | |
| DtGuiSymbolMapper (makVrv::DtDe &de) | |
| CTOR. More... | |
| virtual | ~DtGuiSymbolMapper () |
| DTOR. More... | |
| virtual QPixmap | getIcon (DtElementID id, int pointSize=80, const QColor &milStdOutlineColor=Qt::black) |
| Get the icon for the given element. More... | |
| virtual QImage | defaultTacticalGraphicsIconImage () |
| Get the default tactical graphics icon image. More... | |
| virtual QImage | defaultEntityIconImage () |
| Get the default entity icon image. More... | |
| virtual QImage | defaultPropIconImage () |
| Get the default prop icon image. More... | |
| virtual QImage | defaultBuoyBeaconIconImage () |
| Get the default buoy and beacon icon image. More... | |
| virtual QImage | defaultObserverIconImage () |
| Get the default observer icon image. More... | |
| virtual void | setDefaultTacticalGraphicsIconImage (DtUnicode file) |
| Set the default tactical graphics icon image to use. More... | |
| virtual void | setDefaultEntityIconImage (DtUnicode file) |
| Set the default entity icon image to use. More... | |
| virtual void | setDefaultPropIconImage (DtUnicode file) |
| Set the default prop icon image. More... | |
| virtual void | setDefaultBuoyBeaconIconImage (DtUnicode file) |
| Set the default buoy and beacon icon image. More... | |
| virtual void | setDefaultObserverIconImage (DtUnicode file) |
| Set the default observer icon image. More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtGuiSymbolMapper & | instance (makVrv::DtDe &de) |
| Return instance of the DtGuiSymbolMapper. More... | |
Protected Member Functions | |
| bool | elementDestroyed (DtElementID id) const |
| Check if an element has been destroyed. More... | |
| virtual EntityWithForceKey | getEntityWithForceKey (DtElementID id) const |
| Get the EntityWithForceKey for the element. More... | |
| virtual QImage | milStdRender (const makVrv::DtVisualizerDefinition *vis, const EntityWithForceKey &key, bool destroyed, int pointSize, const QColor &outlineColor=Qt::black) const |
| Render the icon from 2525b font. More... | |
| virtual QImage | imageSymbolRender (const makVrv::DtVisualizerDefinition *vis, const EntityWithForceKey &key, bool destroyed) const |
| Render the icon from image. More... | |
| virtual QImage | imageFromFile (const std::string &filePath) const |
| Render the icon from image. More... | |
| virtual QImage | imageFromModelDefinition (const std::string &modelDef) const |
| Render the icon from image given by the model definition. More... | |
| const DtVisualizerDefinition * | findVisualDefinition2DSet (DtElementID element, const std::string &schema) |
| Find the visual definition for the given schema. More... | |
| virtual void | composeMilStdImage (QPainter &painter, int left, int base, unsigned short fillGlyph, unsigned short outlineGlyph, unsigned short echelonGlyph, unsigned short destroyedGlyph, makVrv::DtForceManager::RGBAColor fillColor, makVrv::DtForceManager::RGBAColor outlineColor) const |
| Paints the milStd image on the font given the glyphs and color. More... | |
| virtual QImage | getDefaultIconImage (DtElementID element) |
| Get the default icon to use when no icon is found for the element. More... | |
| virtual void | loadElementIconMapMappingFile () |
| Load the icon mapping file. More... | |
| virtual QString | generateIconKeyForElement (DtElementID element) |
| Generate the key used for the cache of icon. More... | |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| std::map< QString, QPixmap * > | myIconCache |
| QImage * | myDefaultTacticalGraphicsIconImage |
| QImage * | myDefaultEntityIconImage |
| QImage * | myDefaultPropIconImage |
| QImage * | myDefaultBuoyBeaconIconImage |
| QImage * | myDefaultObserverIconImage |
| std::map< DtEntityType, std::string > | myElementIconMap |
| std::string | myElementIconMapMappingFile |
Private Member Functions | |
| DtGuiSymbolMapper () | |
| Unimplemented Default CTOR. More... | |
| DtGuiSymbolMapper (const DtGuiSymbolMapper &orig) | |
| Not implemented. More... | |
| DtGuiSymbolMapper & | operator= (const DtGuiSymbolMapper &orig) |
| Not implemented. More... | |
The class will manage the icons for the entities, tactical graphics, munitions ,ect.
It caches the icon for given entity type and force.
| makVrv::DtGuiSymbolMapper::DtGuiSymbolMapper | ( | makVrv::DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
private |
Unimplemented Default CTOR.
|
private |
Not implemented.
|
static |
Return instance of the DtGuiSymbolMapper.
|
virtual |
Get the icon for the given element.
| id | The element id of the element. |
| pointSize | The size of the font. |
| milStdOutlineColor | The outline color of the 2525b symbol. |
|
virtual |
Get the default tactical graphics icon image.
|
virtual |
Get the default entity icon image.
|
virtual |
Get the default prop icon image.
|
virtual |
Get the default buoy and beacon icon image.
|
virtual |
Get the default observer icon image.
|
virtual |
Set the default tactical graphics icon image to use.
| file | The file to load for the icon. |
|
virtual |
Set the default entity icon image to use.
| file | The file to load for the icon. |
|
virtual |
Set the default prop icon image.
| file | The file to load for the icon. |
|
virtual |
Set the default buoy and beacon icon image.
| file | The file to load for the icon. |
|
virtual |
Set the default observer icon image.
| file | The file to load for the icon. |
|
protected |
Check if an element has been destroyed.
|
protectedvirtual |
Get the EntityWithForceKey for the element.
|
protectedvirtual |
Render the icon from 2525b font.
| vis | The visual definition point to the 2525b model definition. |
| key | The EntityWithForceKey key. |
| destroyed | If the element is destroyed. |
| pointSize | The size of the font. |
| milStdOutlineColor | The outline color of the 2525b symbol. |
|
protectedvirtual |
Render the icon from image.
| vis | The visual definition point to the image symbol. |
| key | The EntityWithForceKey key. |
| destroyed | If the element is destroyed. |
|
protectedvirtual |
Render the icon from image.
| vis | The visual definition point to the image symbol. |
| key | The EntityWithForceKey key. |
| destroyed | If the element is destroyed. |
|
protectedvirtual |
Render the icon from image given by the model definition.
|
protected |
Find the visual definition for the given schema.
|
protectedvirtual |
Paints the milStd image on the font given the glyphs and color.
|
protectedvirtual |
Get the default icon to use when no icon is found for the element.
| element | The element id of the element. |
|
protectedvirtual |
Load the icon mapping file.
|
protectedvirtual |
Generate the key used for the cache of icon.
|
private |
Not implemented.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |