![]() |
VR-Forces 4.0.4 Class Documentation
|
! Concrete class which interprets a string as Military Map Marking symbol, and draws it using a true type font. More...

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 DtSymbolDrawer * | create () |
| 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) | |
| DtTTFUnitSymbolDrawer & | operator= (const DtTTFUnitSymbolDrawer &orig) |
! Concrete class which interprets a string as Military Map Marking symbol, and draws it using a true type font.
| DtTTFUnitSymbolDrawer::DtTTFUnitSymbolDrawer | ( | const QString & | family, |
| int | pointSize = 24, |
||
| const QColor & | fillColor = QColor(128, 224, 225) |
||
| ) |
! Default to 24 point, force friendly blue.
| virtual DtTTFUnitSymbolDrawer::~DtTTFUnitSymbolDrawer | ( | ) | [virtual] |
| DtTTFUnitSymbolDrawer::DtTTFUnitSymbolDrawer | ( | const DtTTFUnitSymbolDrawer & | orig | ) | [private] |
| 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] |
| static DtSymbolDrawer* DtTTFUnitSymbolDrawer::create | ( | ) | [static] |
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] |