![]() |
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 | |
| DtMMMDrawer () | |
| DtMMMDrawer (const QString &family, int pointSize=24, const QColor &fillColor=QColor(128, 224, 225)) | |
| Default to 24 point, force friendly blue. | |
| virtual | ~DtMMMDrawer () |
Static Public Member Functions | |
| static DtSymbolDrawer * | create () |
| calcBBox intentionally not reimplemented. Same as parent. | |
Protected Member Functions | |
| virtual void | drawSolid (QPainter &paint, const QPoint &, const DtMMMSymbol *pSymbol) const |
| Paint the font symbol on the device, centered at the specified location, with a solid pattern. | |
| virtual bool | drawPattern (QPainter &paint, const QPoint &, const DtMMMSymbol *pSymbol) const |
| virtual void | drawHighlightForPattern (QPainter &paint, const DtMMMSymbol *pSymbol) const |
| 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 | paintPix (QPainter &paint, const QPixmap *pix, const DtMMMSymbol *pSymbol) const |
| paint pixmap on our device. | |
| 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 QSize | fontSize (const DtMMMSymbol *pSymbol) const |
| virtual QPoint | calcOrigin (const DtTTSSymbol *, 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. | |
| virtual bool | drawFont (QPainter &paint, const QPoint &origin, const DtTTSSymbol &t) const |
| virtual bool | drawSymbolAsBitmap (QPainter &painter, const QPoint &origin, const DtTTSSymbol &t) const |
| virtual const QPixmap * | createPix (const DtTTSSymbol *s) const |
| "create" means the caller is responsible for deleting the allocated memory. | |
| virtual QImage * | createBGMask (const DtMMMSymbol *pSymbol) const |
| "create" means the caller is responsible for deleting the allocated memory. | |
| virtual QImage * | createDitherMask (const DtMMMSymbol *pSymbol) const |
| "create" means the caller is responsible for deleting the allocated memory. | |
| virtual QImage * | createPercentDither (const DtMMMSymbol *pSymbol) const |
| "create" means the caller is responsible for deleting the allocated memory. | |
| virtual QImage * | createPatternDither (const DtMMMSymbol *pSymbol) const |
| "create" means the caller is responsible for deleting the allocated memory. | |
Private Member Functions | |
| DtMMMDrawer (const DtMMMDrawer &orig) | |
| DtMMMDrawer & | operator= (const DtMMMDrawer &orig) |
Concrete class which interprets a string as Military Map Marking symbol, and draws it using a true type font.
| DtMMMDrawer::DtMMMDrawer | ( | const QString & | family, |
| int | pointSize = 24, |
||
| const QColor & | fillColor = QColor(128, 224, 225) |
||
| ) |
Default to 24 point, force friendly blue.
| virtual DtMMMDrawer::~DtMMMDrawer | ( | ) | [virtual] |
| DtMMMDrawer::DtMMMDrawer | ( | const DtMMMDrawer & | orig | ) | [private] |
| static DtSymbolDrawer* DtMMMDrawer::create | ( | ) | [static] |
calcBBox intentionally not reimplemented. Same as parent.
Reimplemented from DtTTSDrawer.
Reimplemented in DtTTFUnitSymbolDrawer.
| virtual void DtMMMDrawer::drawSolid | ( | QPainter & | paint, |
| const QPoint & | , | ||
| const DtMMMSymbol * | pSymbol | ||
| ) | const [protected, virtual] |
Paint the font symbol on the device, centered at the specified location, with a solid pattern.
| virtual bool DtMMMDrawer::drawPattern | ( | QPainter & | paint, |
| const QPoint & | , | ||
| const DtMMMSymbol * | pSymbol | ||
| ) | const [protected, virtual] |
| virtual void DtMMMDrawer::drawHighlightForPattern | ( | QPainter & | paint, |
| const DtMMMSymbol * | pSymbol | ||
| ) | const [protected, virtual] |
Reimplemented in DtTTFUnitSymbolDrawer.
| virtual void DtMMMDrawer::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 in DtTTFUnitSymbolDrawer.
| virtual void DtMMMDrawer::paintPix | ( | QPainter & | paint, |
| const QPixmap * | pix, | ||
| const DtMMMSymbol * | pSymbol | ||
| ) | const [protected, virtual] |
paint pixmap on our device.
| virtual void DtMMMDrawer::paintFontOnPix | ( | QPixmap * | pix, |
| const DtMMMSymbol * | pSymbol | ||
| ) | const [protected, virtual] |
Paint the string on a pixmap.
Reimplemented in DtTTFUnitSymbolDrawer.
| virtual void DtMMMDrawer::paintFontOnPix | ( | QImage * | pix, |
| const DtMMMSymbol * | pSymbol | ||
| ) | const [protected, virtual] |
Reimplemented in DtTTFUnitSymbolDrawer.
| virtual const QPixmap* DtMMMDrawer::createPix | ( | const DtTTSSymbol * | s | ) | const [protected, virtual] |
"create" means the caller is responsible for deleting the allocated memory.
Reimplemented from DtTTSDrawer.
| virtual QImage* DtMMMDrawer::createBGMask | ( | const DtMMMSymbol * | pSymbol | ) | const [protected, virtual] |
"create" means the caller is responsible for deleting the allocated memory.
| virtual QImage* DtMMMDrawer::createDitherMask | ( | const DtMMMSymbol * | pSymbol | ) | const [protected, virtual] |
"create" means the caller is responsible for deleting the allocated memory.
| virtual QImage* DtMMMDrawer::createPercentDither | ( | const DtMMMSymbol * | pSymbol | ) | const [protected, virtual] |
"create" means the caller is responsible for deleting the allocated memory.
| virtual QImage* DtMMMDrawer::createPatternDither | ( | const DtMMMSymbol * | pSymbol | ) | const [protected, virtual] |
"create" means the caller is responsible for deleting the allocated memory.
| virtual QSize DtMMMDrawer::fontSize | ( | const DtMMMSymbol * | pSymbol | ) | const [protected, virtual] |
Reimplemented in DtTTFUnitSymbolDrawer.
| virtual QPoint DtMMMDrawer::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 DtTTSDrawer.
Reimplemented in DtTTFUnitSymbolDrawer.
| virtual bool DtMMMDrawer::drawFont | ( | QPainter & | paint, |
| const QPoint & | origin, | ||
| const DtTTSSymbol & | t | ||
| ) | const [protected, virtual] |
Reimplemented from DtTTSDrawer.
| virtual bool DtMMMDrawer::drawSymbolAsBitmap | ( | QPainter & | painter, |
| const QPoint & | origin, | ||
| const DtTTSSymbol & | t | ||
| ) | const [protected, virtual] |
Reimplemented from DtTTSDrawer.
| DtMMMDrawer& DtMMMDrawer::operator= | ( | const DtMMMDrawer & | orig | ) | [private] |