00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef QWT_PLOT_DIRECT_PAINTER_H
00011 #define QWT_PLOT_DIRECT_PAINTER_H
00012
00013 #include "qwt_global.h"
00014 #include <qobject.h>
00015
00016 class QwtPlotAbstractSeriesItem;
00017
00018 class QWT_EXPORT QwtPlotDirectPainter: public QObject
00019 {
00020 public:
00021 enum Attribute
00022 {
00023 AtomicPainter = 1,
00024 FullRepaint = 2
00025 };
00026
00027 QwtPlotDirectPainter(QObject *parent = NULL);
00028 virtual ~QwtPlotDirectPainter();
00029
00030 void setAttribute(Attribute, bool on);
00031 bool testAttribute(Attribute) const;
00032
00033 void drawSeries(QwtPlotAbstractSeriesItem *, int from, int to);
00034 void reset();
00035
00036 virtual bool eventFilter(QObject *, QEvent *);
00037
00038 private:
00039 class PrivateData;
00040 PrivateData *d_data;
00041 };
00042
00043 #endif