10 #ifndef QWT_PLOT_RASTERITEM_H 11 #define QWT_PLOT_RASTERITEM_H 80 PaintInDeviceResolution = 1
93 void setAlpha(
int alpha );
99 void invalidateCache();
101 virtual void draw( QPainter *,
105 virtual QRectF pixelHint(
const QRectF & )
const;
127 virtual QImage renderImage( const
QwtScaleMap &xMap,
129 const QSize &imageSize ) const = 0;
133 const QSize &imageSize,
double pixelSize) const;
137 QwtPlotRasterItem &operator=( const QwtPlotRasterItem & );
141 QImage compose( const
QwtScaleMap &, const QwtScaleMap &,
142 const QRectF &imageArea, const QRectF &paintRect,
143 const QSize &imageSize,
bool doCache) const;
150 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPlotRasterItem::PaintAttributes )
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
Draw the item.
A class representing an interval.
A class, which displays raster data.
QFlags< PaintAttribute > PaintAttributes
Paint attributes.
A class representing a text.
CachePolicy
Cache policy The default policy is NoCache.
Base class for items on the plot canvas.
virtual QRectF boundingRect() const