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
00033 class QWT_EXPORT QwtPlotDirectPainter: public QObject
00034 {
00035 public:
00049 enum Attribute
00050 {
00051 AtomicPainter = 1,
00052 FullRepaint = 2
00053 };
00054
00055 QwtPlotDirectPainter( QObject *parent = NULL );
00056 virtual ~QwtPlotDirectPainter();
00057
00058 void setAttribute( Attribute, bool on );
00059 bool testAttribute( Attribute ) const;
00060
00061 void drawSeries( QwtPlotAbstractSeriesItem *, int from, int to );
00062 void reset();
00063
00064 virtual bool eventFilter( QObject *, QEvent * );
00065
00066 private:
00067 class PrivateData;
00068 PrivateData *d_data;
00069 };
00070
00071 #endif