![]() |
VR-Forces 4.2 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. | |
Public Member Functions inherited from DtBaseSymbolDrawer | |
| DtBaseSymbolDrawer () | |
| virtual | ~DtBaseSymbolDrawer () |
| virtual bool | doDrawing (QPainter &paint, const DtSymbol *const symbol) |
| ! Initializes any drawing information and then calls internal draw() method | |
Public Member Functions inherited from DtSymbolDrawer | |
| DtSymbolDrawer () | |
| virtual | ~DtSymbolDrawer () |
| virtual QRect | calcBRect (const DtSymbol *const symbol) const |
| virtual bool | forceUpdate (const DtSymbol *const symbol) const |
| Override if your class wants to force a redraw of this item regardless of performance enhancement state. | |
| virtual bool | endTransparentDraw (QPainter &paint, const DtSymbol *const symbol) const |
| Called after transparent draw is finished if symbol wants to draw transparently. | |
| virtual void | processHiddenSymbolAction (QPainter &paint, const DtSymbol *const symbol) |
| Routine to perform even when symbol is hidden. | |
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 Member Functions inherited from DtBaseSymbolDrawer | |
| virtual QRgb | opaqueColor () const |
| ! Returns color that will be ignored during transparent draw | |
Protected Member Functions inherited from DtSymbolDrawer | |
| DtSymbolDrawer (const DtSymbolDrawer &orig) | |
| Protected so not used. Conceptually class is a singleton. | |
| DtSymbolDrawer & | operator= (const DtSymbolDrawer &orig) |
| Protected so not used. Conceptually class is a singleton. | |
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) |
Additional Inherited Members | |
Static Protected Attributes inherited from DtSymbolDrawer | |
| static double | gDrawScalingFactor |
| static QColor | theHighlightColor |
Qt includes.
Concrete class which draws bitmaps., This should be connected to the DtBMPSymbol in order to actually draw
| DtBMPDrawer::DtBMPDrawer | ( | ) |
|
virtual |
|
private |
Implements DtSymbolDrawer.
|
virtual |
Calculate the drawn size of this symbol.
The symbol must be of a type this drawer can recognize.
Implements DtSymbolDrawer.
|
static |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Adds a pixelation mask to the pixmap.
|
protectedvirtual |
Insert pixmap into cache.
|
protectedvirtual |
Insert pixmap into cache.
|
protectedvirtual |
Insert pixmap into cache.
|
protectedvirtual |
Find pixmap corresponding to symbol in cache.
|
protectedvirtual |
Find pixmap corresponding to symbol in cache.
|
private |
|
mutableprotected |
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.
|
mutableprotected |