Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_plot_directpainter.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_plot_directpainter.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_directpainter.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 36 36 by another operation ( like changing scales ) and nothing needs 37 37 to be erased. 38 */ 39 class QWT_EXPORT QwtPlotDirectPainter: public QObject 38 */ 39 class QWT_EXPORT QwtPlotDirectPainter : public QObject 40 40 { 41 public: 41 public: 42 42 /*! 43 \brief Paint attributes 44 \sa setAttribute(), testAttribute(), drawSeries() 45 */ 43 \brief Paint attributes 44 \sa setAttribute(), testAttribute(), drawSeries() 45 */ 46 46 enum Attribute 47 47 { 48 48 /*! 49 Initializing a QPainter is an expensive operation. 50 When AtomicPainter is set each call of drawSeries() opens/closes 51 a temporary QPainter. Otherwise QwtPlotDirectPainter tries to 52 use the same QPainter as long as possible. 49 Initializing a QPainter is an expensive operation. 50 When AtomicPainter is set each call of drawSeries() opens/closes 51 a temporary QPainter. Otherwise QwtPlotDirectPainter tries to 52 use the same QPainter as long as possible. 53 53 */ 54 54 AtomicPainter = 0x01, 55 55 56 56 /*! 57 When FullRepaint is set the plot canvas is explicitly repainted 58 after the samples have been rendered. 57 When FullRepaint is set the plot canvas is explicitly repainted 58 after the samples have been rendered. 59 59 */ 60 60 FullRepaint = 0x02, 61 61 62 62 /*! 63 When QwtPlotCanvas::BackingStore is enabled the painter 64 has to paint to the backing store and the widget. In certain 65 situations/environments it might be faster to paint to 66 the backing store only and then copy the backing store to the canvas. 67 This flag can also be useful for settings, where Qt fills the 68 the clip region with the widget background. 63 When QwtPlotCanvas::BackingStore is enabled the painter 64 has to paint to the backing store and the widget. In certain 65 situations/environments it might be faster to paint to 66 the backing store only and then copy the backing store to the canvas. 67 This flag can also be useful for settings, where Qt fills the 68 the clip region with the widget background. 69 69 */ 70 70 CopyBackingStore = 0x04 71 71 }; 72 72 73 //! Paint attributes 74 typedef QFlags<Attribute> Attributes; 73 Q_DECLARE_FLAGS( Attributes, Attribute ) 75 74 76 QwtPlotDirectPainter( QObject *parent = NULL );75 explicit QwtPlotDirectPainter( QObject* parent = NULL ); 77 76 virtual ~QwtPlotDirectPainter(); 78 77 … … 83 82 bool hasClipping() const; 84 83 85 void setClipRegion( const QRegion & );84 void setClipRegion( const QRegion& ); 86 85 QRegion clipRegion() const; 87 86 88 void drawSeries( QwtPlotSeriesItem *, int from, int to );87 void drawSeries( QwtPlotSeriesItem*, int from, int to ); 89 88 void reset(); 90 89 91 virtual bool eventFilter( QObject *, QEvent* );90 virtual bool eventFilter( QObject*, QEvent* ) QWT_OVERRIDE; 92 91 93 private: 92 private: 94 93 class PrivateData; 95 PrivateData *d_data;94 PrivateData* m_data; 96 95 }; 97 96
Note:
See TracChangeset
for help on using the changeset viewer.
