![]() |
VR-Forces 4.0.4 Class Documentation
|
Qt includes. More...

Public Member Functions | |
| DtBMPDrawer () | |
| virtual | ~DtBMPDrawer () |
| virtual bool | draw (QPainter &paint, const DtSymbol *const symbol) const |
| virtual QSize | calcBBox (const DtSymbol *const symbol) const |
| Calculate the drawn size of this symbol. | |
Static Public Member Functions | |
| static DtSymbolDrawer * | create () |
Protected Member Functions | |
| virtual const QImage * | constructBMP (const DtBMPSymbol &b) const |
| virtual const QImage * | constructHighlight (const QPixmap *p) const |
| virtual void | renderBMP (QPainter &paint, const DtBMPSymbol &symbol, const QPixmap *pix) const |
| virtual void | applyGhosting (QImage *p) const |
| Adds a pixelation mask to the pixmap. | |
| virtual const QPixmap * | insertPix (const DtBMPSymbol &bmpSymbol, const QImage *pix) const |
| Insert pixmap into cache. | |
| virtual const QPixmap * | insertPix (const QString &key, const QImage *pix) const |
| Insert pixmap into cache. | |
| virtual const QPixmap * | insertHighlight (const DtBMPSymbol &bmpSymbol, const QImage *pix) const |
| Insert pixmap into cache. | |
| virtual const QPixmap * | lookupPix (const DtBMPSymbol &bmpSymbol) const |
| Find pixmap corresponding to symbol in cache. | |
| virtual const QPixmap * | lookupHighlight (const DtBMPSymbol &bmpSymbol) const |
| Find pixmap corresponding to symbol in cache. | |
Protected Attributes | |
| QCache< QString, const QPixmap > | myCache |
| Mutable since cache is for optimization purposes only. | |
| QCache< QString, const QPixmap > | myHighlightCache |
Private Member Functions | |
| DtBMPDrawer (const DtBMPDrawer &orig) | |
| DtBMPDrawer & | operator= (const DtBMPDrawer &orig) |
Qt includes.
Concrete class which draws bitmaps., This should be connected to the DtBMPSymbol in order to actually draw
| virtual DtBMPDrawer::~DtBMPDrawer | ( | ) | [virtual] |
| DtBMPDrawer::DtBMPDrawer | ( | const DtBMPDrawer & | orig | ) | [private] |
| virtual bool DtBMPDrawer::draw | ( | QPainter & | paint, |
| const DtSymbol *const | symbol | ||
| ) | const [virtual] |
Implements DtSymbolDrawer.
| virtual QSize DtBMPDrawer::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.
Implements DtSymbolDrawer.
| static DtSymbolDrawer* DtBMPDrawer::create | ( | ) | [static] |
| virtual const QImage* DtBMPDrawer::constructBMP | ( | const DtBMPSymbol & | b | ) | const [protected, virtual] |
| virtual const QImage* DtBMPDrawer::constructHighlight | ( | const QPixmap * | p | ) | const [protected, virtual] |
| virtual void DtBMPDrawer::renderBMP | ( | QPainter & | paint, |
| const DtBMPSymbol & | symbol, | ||
| const QPixmap * | pix | ||
| ) | const [protected, virtual] |
| virtual void DtBMPDrawer::applyGhosting | ( | QImage * | p | ) | const [protected, virtual] |
Adds a pixelation mask to the pixmap.
| virtual const QPixmap* DtBMPDrawer::insertPix | ( | const DtBMPSymbol & | bmpSymbol, |
| const QImage * | pix | ||
| ) | const [protected, virtual] |
Insert pixmap into cache.
| virtual const QPixmap* DtBMPDrawer::insertPix | ( | const QString & | key, |
| const QImage * | pix | ||
| ) | const [protected, virtual] |
Insert pixmap into cache.
| virtual const QPixmap* DtBMPDrawer::insertHighlight | ( | const DtBMPSymbol & | bmpSymbol, |
| const QImage * | pix | ||
| ) | const [protected, virtual] |
Insert pixmap into cache.
| virtual const QPixmap* DtBMPDrawer::lookupPix | ( | const DtBMPSymbol & | bmpSymbol | ) | const [protected, virtual] |
Find pixmap corresponding to symbol in cache.
| virtual const QPixmap* DtBMPDrawer::lookupHighlight | ( | const DtBMPSymbol & | bmpSymbol | ) | const [protected, virtual] |
Find pixmap corresponding to symbol in cache.
| DtBMPDrawer& DtBMPDrawer::operator= | ( | const DtBMPDrawer & | orig | ) | [private] |
QCache<QString, const QPixmap> DtBMPDrawer::myCache [mutable, protected] |
Mutable since cache is for optimization purposes only.
Conceptually there should be no difference in const between the first and second time a symbol is drawn.
QCache<QString, const QPixmap> DtBMPDrawer::myHighlightCache [mutable, protected] |