VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrf::DtVrfGuiSymbolMapper Class Reference

The class that will contain information about the currently loaded scenario. More...

Inheritance diagram for makVrf::DtVrfGuiSymbolMapper:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtVrfGuiSymbolMapper (makVrv::DtDe &)
virtual ~DtVrfGuiSymbolMapper ()
virtual void clear ()
 Clears out contents of symbol mapper.
virtual void clearIcons (const DtEntityMapperKey &)
 Removes all cached information for this entity type.
virtual QPixmap getIcon (const DtEntityMapperKey &, bool destroyed=false, int pointSize=48, bool sizeToFont=false, const makVrv::DtVrlinkSimulatedBaseState *baseState=0)
 Returns a pixmap from the entity mapper key.
virtual int addFont (const QString &)
void setIconSize (int w, int h)
const QSize & iconSize () const

Static Public Member Functions

static DtVrfGuiSymbolMapperinstance (makVrv::DtDe &de)
 Returns instance of the DtVrfGuiSymbolMapper.

Protected Types

typedef boost::unordered_map
< std::string, std::string > 
PathListMap

Protected Member Functions

virtual const
makVrv::DtVisualizerDefinitionSet
visualDefinitionSetThatBestMatches (const DtEntityMapperKey &)
 Returns the visual definition set that best matches the entity key (entity or tactical graphic)
virtual QImage milStdRender (const makVrv::DtVisualizerDefinition *, const DtEntityMapperKey &key, bool destroyed, int pointSize, const makVrv::DtVrlinkSimulatedBaseState *baseState=0) const
virtual QImage imageSymbolRender (const makVrv::DtVisualizerDefinition *, const DtEntityMapperKey &key, bool destroyed, const makVrv::DtVrlinkSimulatedBaseState *baseState=0) const
virtual QImage imageFromModelDefinition (const std::string &) 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 color, const makVrv::DtVrlinkSimulatedBaseState *baseState=0) const
 Paints the milStd image on the font given the glyphs and color.

Protected Attributes

makVrv::DtDemyDe
QHash< QString, QPixmap * > myIconCache
QHash< int, QString > myFontMap
QSize myIconSize
PathListMap myAggregateMap
PathListMap myTacticalMap
PathListMap myEntityMap

Detailed Description

The class that will contain information about the currently loaded scenario.


Member Typedef Documentation

typedef boost::unordered_map<std::string, std::string> makVrf::DtVrfGuiSymbolMapper::PathListMap [protected]

Constructor & Destructor Documentation


Member Function Documentation

Returns instance of the DtVrfGuiSymbolMapper.

virtual void makVrf::DtVrfGuiSymbolMapper::clear ( ) [virtual]

Clears out contents of symbol mapper.

virtual void makVrf::DtVrfGuiSymbolMapper::clearIcons ( const DtEntityMapperKey ) [virtual]

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 
) [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

virtual int makVrf::DtVrfGuiSymbolMapper::addFont ( const QString &  ) [virtual]
void makVrf::DtVrfGuiSymbolMapper::setIconSize ( int  w,
int  h 
) [inline]
const QSize& makVrf::DtVrfGuiSymbolMapper::iconSize ( ) const [inline]

Returns the visual definition set that best matches the entity key (entity or tactical graphic)

virtual QImage makVrf::DtVrfGuiSymbolMapper::milStdRender ( const makVrv::DtVisualizerDefinition ,
const DtEntityMapperKey key,
bool  destroyed,
int  pointSize,
const makVrv::DtVrlinkSimulatedBaseState baseState = 0 
) const [protected, virtual]
virtual QImage makVrf::DtVrfGuiSymbolMapper::imageSymbolRender ( const makVrv::DtVisualizerDefinition ,
const DtEntityMapperKey key,
bool  destroyed,
const makVrv::DtVrlinkSimulatedBaseState baseState = 0 
) const [protected, virtual]
virtual QImage makVrf::DtVrfGuiSymbolMapper::imageFromModelDefinition ( const std::string &  ) const [protected, virtual]
virtual void makVrf::DtVrfGuiSymbolMapper::composeMilStdImage ( QPainter &  painter,
int  left,
int  base,
unsigned short  fillGlyph,
unsigned short  outlineGlyph,
unsigned short  echelonGlyph,
unsigned short  destroyedGlyph,
makVrv::DtForceManager::RGBAColor  color,
const makVrv::DtVrlinkSimulatedBaseState baseState = 0 
) const [protected, virtual]

Paints the milStd image on the font given the glyphs and color.


Member Data Documentation

QHash<QString, QPixmap*> makVrf::DtVrfGuiSymbolMapper::myIconCache [protected]
QHash<int, QString> makVrf::DtVrfGuiSymbolMapper::myFontMap [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)