12 #ifndef DtBMPDrawer_H_
13 #define DtBMPDrawer_H_
23 #include <QtCore/QCache>
24 #include <QtGui/QImage>
37 virtual bool draw( QPainter& paint,
38 const DtSymbol *
const symbol )
const;
47 virtual const QImage * constructBMP(
const DtBMPSymbol & b )
const;
49 virtual const QImage* constructHighlight(
const QPixmap* p)
const;
51 virtual void renderBMP( QPainter& paint,
53 const QPixmap * pix )
const;
56 virtual void applyGhosting(QImage* p)
const;
59 virtual const QPixmap* insertPix(
const DtBMPSymbol & bmpSymbol,
60 const QImage * pix )
const;
63 virtual const QPixmap* insertPix(
const QString & key,
64 const QImage * pix )
const;
67 virtual const QPixmap* insertHighlight(
const DtBMPSymbol & bmpSymbol,
68 const QImage * pix )
const;
71 virtual const QPixmap * lookupPix(
const DtBMPSymbol & bmpSymbol )
const;
74 virtual const QPixmap * lookupHighlight(
const DtBMPSymbol & bmpSymbol )
const;
86 mutable QCache<QString, const QPixmap>
myCache;