Qwt User's Guide: qwt_plot_directpainter.h Source File

Qwt User's Guide 6.1.3

- Main Page
- Classes

qwt_plot_directpainter.h
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 * Qwt Widget Library
3 * Copyright (C) 1997 Josef Wilgen
4 * Copyright (C) 2002 Uwe Rathmann
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the Qwt License, Version 1.0
8 *****************************************************************************/
9
10 #ifndef QWT_PLOT_DIRECT_PAINTER_H
11 #define QWT_PLOT_DIRECT_PAINTER_H
12
13 #include "qwt_global.h"
14 #include <qobject.h>
15
16 class QRegion;
17 class QwtPlotSeriesItem;
18
39 class QWT_EXPORT QwtPlotDirectPainter: public QObject
40 {
41 public:
46 enum Attribute
47 {
54 AtomicPainter = 0x01,
55
60 FullRepaint = 0x02,
61
70 CopyBackingStore = 0x04
71 };
72
74 typedef QFlags<Attribute> Attributes;
75
76 QwtPlotDirectPainter( QObject *parent = NULL );
77 virtual ~QwtPlotDirectPainter();
78
79 void setAttribute( Attribute, bool on );
80 bool testAttribute( Attribute ) const;
81
82 void setClipping( bool );
83 bool hasClipping() const;
84
85 void setClipRegion( const QRegion & );
86 QRegion clipRegion() const;
87
88 void drawSeries( QwtPlotSeriesItem *, int from, int to );
89 void reset();
90
91 virtual bool eventFilter( QObject *, QEvent * );
92
93 private:
94 class PrivateData;
95 PrivateData *d_data;
96 };
97
98 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPlotDirectPainter::Attributes )
99
100 #endif
QwtPlotDirectPainter
Painter object trying to paint incrementally.
Definition: qwt_plot_directpainter.h:39
QwtPlotSeriesItem
Base class for plot items representing a series of samples.
Definition: qwt_plot_seriesitem.h:22
QwtPlotDirectPainter::Attributes
QFlags< Attribute > Attributes
Paint attributes.
Definition: qwt_plot_directpainter.h:74
QwtPlotDirectPainter::Attribute
Attribute
Paint attributes.
Definition: qwt_plot_directpainter.h:46