VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions
DtTTFUnitSymbolDrawer Class Reference

! Concrete class which interprets a string as Military Map Marking symbol, and draws it using a true type font. More...

Inheritance diagram for DtTTFUnitSymbolDrawer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtTTFUnitSymbolDrawer ()
 DtTTFUnitSymbolDrawer (const QString &family, int pointSize=24, const QColor &fillColor=QColor(128, 224, 225))
 ! Default to 24 point, force friendly blue.
virtual ~DtTTFUnitSymbolDrawer ()
virtual QSize calcBBox (const DtSymbol *const symbol) const
 Calculate the drawn size of this symbol.
virtual QRect calcBRect (const DtSymbol *const symbol) const
virtual unsigned int pixelSize (const DtMMMSymbol &) const
virtual void setPixelSize (unsigned int size)
virtual unsigned int pointSize () const
virtual void setPointSize (unsigned int size)

Static Public Member Functions

static DtSymbolDrawercreate ()
 calcBBox intentionally not reimplemented. Same as parent.

Protected Member Functions

virtual void paintFont (QPainter &painter, int left, int base, const DtTTSSymbol &symbol) const
 ! Paint the font symbol on the device, so that its left, bottom corner is at the specified location.
virtual void paintFontOnPix (QPixmap *pix, const DtMMMSymbol *pSymbol) const
 Paint the string on a pixmap.
virtual void paintFontOnPix (QImage *pix, const DtMMMSymbol *pSymbol) const
virtual void drawHighlightForPattern (QPainter &paint, const DtMMMSymbol *pSymbol) const
virtual QSize fontSize (const DtMMMSymbol *) const
virtual QPoint calcOrigin (const DtTTSSymbol *pSymbol, bool calcBitmapOrigin=false) const
 Calculates the upper left corner of the text and sets the appearance font for drawing, so, if you call this routine, you do not need to call setAppearance.

Private Member Functions

 DtTTFUnitSymbolDrawer (const DtTTFUnitSymbolDrawer &orig)
DtTTFUnitSymbolDraweroperator= (const DtTTFUnitSymbolDrawer &orig)

Detailed Description

! Concrete class which interprets a string as Military Map Marking symbol, and draws it using a true type font.


Constructor & Destructor Documentation

DtTTFUnitSymbolDrawer::DtTTFUnitSymbolDrawer ( const QString &  family,
int  pointSize = 24,
const QColor &  fillColor = QColor(128, 224, 225) 
)

! Default to 24 point, force friendly blue.


Member Function Documentation

virtual QSize DtTTFUnitSymbolDrawer::calcBBox ( const DtSymbol *const  symbol) const [virtual]

Calculate the drawn size of this symbol.

The symbol must be of a type this drawer can recognize.

Reimplemented from DtTTSDrawer.

virtual QRect DtTTFUnitSymbolDrawer::calcBRect ( const DtSymbol *const  symbol) const [virtual]

Reimplemented from DtSymbolDrawer.

virtual unsigned int DtTTFUnitSymbolDrawer::pixelSize ( const DtMMMSymbol ) const [virtual]
virtual void DtTTFUnitSymbolDrawer::setPixelSize ( unsigned int  size) [virtual]
virtual unsigned int DtTTFUnitSymbolDrawer::pointSize ( ) const [virtual]
virtual void DtTTFUnitSymbolDrawer::setPointSize ( unsigned int  size) [virtual]

calcBBox intentionally not reimplemented. Same as parent.

Reimplemented from DtMMMDrawer.

virtual void DtTTFUnitSymbolDrawer::paintFont ( QPainter &  painter,
int  left,
int  base,
const DtTTSSymbol symbol 
) const [protected, virtual]

! Paint the font symbol on the device, so that its left, bottom corner is at the specified location.

Reimplemented from DtMMMDrawer.

virtual void DtTTFUnitSymbolDrawer::paintFontOnPix ( QPixmap *  pix,
const DtMMMSymbol pSymbol 
) const [protected, virtual]

Paint the string on a pixmap.

Reimplemented from DtMMMDrawer.

virtual void DtTTFUnitSymbolDrawer::paintFontOnPix ( QImage *  pix,
const DtMMMSymbol pSymbol 
) const [protected, virtual]

Reimplemented from DtMMMDrawer.

virtual void DtTTFUnitSymbolDrawer::drawHighlightForPattern ( QPainter &  paint,
const DtMMMSymbol pSymbol 
) const [protected, virtual]

Reimplemented from DtMMMDrawer.

virtual QSize DtTTFUnitSymbolDrawer::fontSize ( const DtMMMSymbol ) const [protected, virtual]

Reimplemented from DtMMMDrawer.

virtual QPoint DtTTFUnitSymbolDrawer::calcOrigin ( const DtTTSSymbol s,
bool  calcBitmapOrigin = false 
) const [protected, virtual]

Calculates the upper left corner of the text and sets the appearance font for drawing, so, if you call this routine, you do not need to call setAppearance.

Reimplemented from DtMMMDrawer.

DtTTFUnitSymbolDrawer& DtTTFUnitSymbolDrawer::operator= ( const DtTTFUnitSymbolDrawer orig) [private]

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)