qwt_plot_directpainter.h
Go to the documentation of this file.
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  explicit 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;
96 };
97 
98 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPlotDirectPainter::Attributes )
99 
100 #endif
#define QWT_EXPORT
Definition: qwt_global.h:38
Attribute
Paint attributes.
Painter object trying to paint incrementally.
QFlags< Attribute > Attributes
Paint attributes.
Base class for plot items representing a series of samples.


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17