The class that will contain information about the currently loaded scenario.
- Related Examples
-
|
| | DtVrfGuiSymbolMapper (makVrv::DtDe &) |
| |
| virtual | ~DtVrfGuiSymbolMapper () |
| |
| virtual void | clear () |
| |
| virtual void | clearIcons (const DtEntityMapperKey &) |
| |
| virtual QPixmap | getIcon (const DtEntityMapperKey &, bool destroyed=false, int pointSize=48, bool sizeToFont=false, const makVrv::DtVrlinkSimulatedBaseState *baseState=0, const QSize &rescaleToIconSize=QSize(), bool isSpotReport=false, const QColor &milStdOutlineColor=Qt::black, bool fillMilStdSymbol=true, bool ignoreMenuIcon=false, const QColor &fillColor=Qt::transparent) |
| |
| virtual QPixmap | getIcon (const DtUUID &, int pointSize=48, bool sizeToFont=false, const makVrv::DtVrlinkSimulatedBaseState *baseState=0, const QSize &rescaleToIconSize=QSize(), bool isSpotReport=false, const QColor &milStdOutlineColor=Qt::black, bool fillMilStdSymbol=true, bool ignoreMenuIcon=false) |
| |
| virtual int | addFont (const QString &) |
| |
| void | setIconSize (int w, int h) |
| |
| const QSize & | iconSize () const |
| |
| virtual void | addSVGColorizerRule (const DtGuiSVGSymbolColorizerRule &) |
| |
| virtual void | removeSVGColorizerRule (const std::string &) |
| |
| virtual void | removeAllSVGColorizerRules () |
| |
| virtual QImage | iconImageForIcon (const DtEntityMapperKey &, const QColor &fillColor=Qt::transparent, const QSize &iconSize=QSize(16, 16)) const |
| |
| virtual QPixmap | forceColorSwatch (int force) |
| |
| virtual QImage | convertSvgUsingColorizerRules (const DtEntityMapperKey &, const QSize &pixmapSize, const std::string &image) const |
| |
| | DtVirtualBaseClass () |
| |
| virtual | ~DtVirtualBaseClass () |
| |
|
virtual const
makVrv::DtVisualizerDefinitionSet * | visualDefinitionSetThatBestMatches (const DtEntityMapperKey &, bool isSpotReport) |
| |
| virtual unsigned short | echelonGlyphFor (const DtEntityMapperKey &key, const makVrv::DtVisualizerDefinition *set) const |
| |
| virtual QImage | milStdRender (const makVrv::DtVisualizerDefinition *, const DtEntityMapperKey &key, bool destroyed, int pointSize, const QColor &outlineColor=Qt::black, bool fillMilStdSymbol=true, const makVrv::DtVrlinkSimulatedBaseState *baseState=0, const QColor &fillColor=Qt::transparent) const |
| |
| virtual QImage | imageSymbolRender (const makVrv::DtVisualizerDefinition *, const DtEntityMapperKey &key, bool destroyed, const makVrv::DtVrlinkSimulatedBaseState *baseState=0, const QSize &iconSize=QSize(16, 16)) const |
| |
| virtual QImage | imageFromModelDefinition (const std::string &, const QSize &iconSize=QSize(16, 16)) const |
| |
| virtual DtObjectType | menuItemIconIsObjectType (const DtEntityMapperKey &) const |
| |
| 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 makVrv::DtVrlinkSimulatedBaseState *baseState=0) const |
| |
| virtual QImage | menuItemIcon (const DtEntityMapperKey &, const QSize &iconSize=QSize()) const |
| |
| makVrf::DtVrfGuiSymbolMapper::DtVrfGuiSymbolMapper |
( |
makVrv::DtDe & |
| ) |
|
| virtual makVrf::DtVrfGuiSymbolMapper::~DtVrfGuiSymbolMapper |
( |
| ) |
|
|
virtual |
| virtual void makVrf::DtVrfGuiSymbolMapper::clear |
( |
| ) |
|
|
virtual |
Clears out contents of symbol mapper.
Removes all cached information for this entity type.
| virtual QPixmap makVrf::DtVrfGuiSymbolMapper::getIcon |
( |
const DtEntityMapperKey & |
, |
|
|
bool |
destroyed = false, |
|
|
int |
pointSize = 48, |
|
|
bool |
sizeToFont = false, |
|
|
const makVrv::DtVrlinkSimulatedBaseState * |
baseState = 0, |
|
|
const QSize & |
rescaleToIconSize = QSize(), |
|
|
bool |
isSpotReport = false, |
|
|
const QColor & |
milStdOutlineColor = Qt::black, |
|
|
bool |
fillMilStdSymbol = true, |
|
|
bool |
ignoreMenuIcon = false, |
|
|
const QColor & |
fillColor = Qt::transparent |
|
) |
| |
|
virtual |
Returns a pixmap from the entity mapper key. If sizeToFont is true, sizes to the font size, not icon size. Base state is supplied if this an icon on behalf of a published entity. Transparent fill color will mean that the default force (or user set) color will be used.
| virtual QPixmap makVrf::DtVrfGuiSymbolMapper::getIcon |
( |
const DtUUID & |
, |
|
|
int |
pointSize = 48, |
|
|
bool |
sizeToFont = false, |
|
|
const makVrv::DtVrlinkSimulatedBaseState * |
baseState = 0, |
|
|
const QSize & |
rescaleToIconSize = QSize(), |
|
|
bool |
isSpotReport = false, |
|
|
const QColor & |
milStdOutlineColor = Qt::black, |
|
|
bool |
fillMilStdSymbol = true, |
|
|
bool |
ignoreMenuIcon = false |
|
) |
| |
|
virtual |
| virtual int makVrf::DtVrfGuiSymbolMapper::addFont |
( |
const QString & |
| ) |
|
|
virtual |
| void makVrf::DtVrfGuiSymbolMapper::setIconSize |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
|
inline |
| const QSize& makVrf::DtVrfGuiSymbolMapper::iconSize |
( |
| ) |
const |
|
inline |
Adds a colorization rule. Will replace existing if there or add if not.
| virtual void makVrf::DtVrfGuiSymbolMapper::removeSVGColorizerRule |
( |
const std::string & |
| ) |
|
|
virtual |
| virtual void makVrf::DtVrfGuiSymbolMapper::removeAllSVGColorizerRules |
( |
| ) |
|
|
virtual |
| virtual QImage makVrf::DtVrfGuiSymbolMapper::iconImageForIcon |
( |
const DtEntityMapperKey & |
, |
|
|
const QColor & |
fillColor = Qt::transparent, |
|
|
const QSize & |
iconSize = QSize(16, 16) |
|
) |
| const |
|
virtual |
If there is a default icon list, and there is an icon image for that model set entry, and it exists, then return the image.
| virtual QPixmap makVrf::DtVrfGuiSymbolMapper::forceColorSwatch |
( |
int |
force | ) |
|
|
virtual |
Returns a pixmap of current myIconSize that is a solid force color of the given force.
| virtual QImage makVrf::DtVrfGuiSymbolMapper::convertSvgUsingColorizerRules |
( |
const DtEntityMapperKey & |
, |
|
|
const QSize & |
pixmapSize, |
|
|
const std::string & |
image |
|
) |
| const |
|
virtual |
Returns the visual definition set that best matches the entity key (entity or tactical graphic)
| virtual QImage makVrf::DtVrfGuiSymbolMapper::imageFromModelDefinition |
( |
const std::string & |
, |
|
|
const QSize & |
iconSize = QSize(16, 16) |
|
) |
| const |
|
protectedvirtual |
| virtual DtObjectType makVrf::DtVrfGuiSymbolMapper::menuItemIconIsObjectType |
( |
const DtEntityMapperKey & |
| ) |
const |
|
protectedvirtual |
If the menu item is a object key it will return an object type that is not equal to DtObjectType()
Paints the milStd image on the font given the glyphs and color.
| virtual QImage makVrf::DtVrfGuiSymbolMapper::menuItemIcon |
( |
const DtEntityMapperKey & |
, |
|
|
const QSize & |
iconSize = QSize() |
|
) |
| const |
|
protectedvirtual |
Find the menu item entry for the specified item and see if it has an icon.
| QHash<QString, QPixmap*> makVrf::DtVrfGuiSymbolMapper::myIconCache |
|
protected |
| QHash<int, QPixmap*> makVrf::DtVrfGuiSymbolMapper::myForceSwatchCache |
|
protected |
| QHash<int, QString> makVrf::DtVrfGuiSymbolMapper::myFontMap |
|
protected |
| QSize makVrf::DtVrfGuiSymbolMapper::myIconSize |
|
protected |
| PathListMap makVrf::DtVrfGuiSymbolMapper::myAggregateMap |
|
protected |
| PathListMap makVrf::DtVrfGuiSymbolMapper::myTacticalMap |
|
protected |
The documentation for this class was generated from the following file:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf5-1-branch/include/vrfGuiCommonQt/vrfGuiSymbolMapper.h