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

Qt includes. More...

Inheritance diagram for DtBMPDrawer:
Inheritance graph
[legend]

List of all members.

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 DtSymbolDrawercreate ()

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)
DtBMPDraweroperator= (const DtBMPDrawer &orig)

Detailed Description

Qt includes.

Concrete class which draws bitmaps., This should be connected to the DtBMPSymbol in order to actually draw


Constructor & Destructor Documentation

virtual DtBMPDrawer::~DtBMPDrawer ( ) [virtual]
DtBMPDrawer::DtBMPDrawer ( const DtBMPDrawer orig) [private]

Member Function Documentation

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]

Member Data Documentation

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]

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)