Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_null_paintdevice.h
- Timestamp:
- May 10, 2017, 3:20:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_null_paintdevice.h
r4271 r8127 19 19 20 20 Sometimes important layout/rendering geometries are not 21 available or chang able from the public Qt class interface.21 available or changeable from the public Qt class interface. 22 22 ( f.e hidden in the style implementation ). 23 23 24 24 QwtNullPaintDevice can be used to manipulate or filter out 25 th ese informationsby analyzing the stream of paint primitives.25 this information by analyzing the stream of paint primitives. 26 26 27 27 F.e. QwtNullPaintDevice is used by QwtPlotCanvas to identify … … 32 32 { 33 33 public: 34 QwtNullPaintDevice( QPaintEngine::PaintEngineFeatures ); 35 QwtNullPaintDevice( const QSize &size, 36 QPaintEngine::PaintEngineFeatures ); 34 /*! 35 \brief Render mode 37 36 37 \sa setMode(), mode() 38 */ 39 enum Mode 40 { 41 /*! 42 All vector graphic primitives are painted by 43 the corresponding draw methods 44 */ 45 NormalMode, 46 47 /*! 48 Vector graphic primitives ( beside polygons ) are mapped to a QPainterPath 49 and are painted by drawPath. In PathMode mode 50 only a few draw methods are called: 51 52 - drawPath() 53 - drawPixmap() 54 - drawImage() 55 - drawPolygon() 56 */ 57 PolygonPathMode, 58 59 /*! 60 Vector graphic primitives are mapped to a QPainterPath 61 and are painted by drawPath. In PathMode mode 62 only a few draw methods are called: 63 64 - drawPath() 65 - drawPixmap() 66 - drawImage() 67 */ 68 PathMode 69 }; 70 71 QwtNullPaintDevice(); 38 72 virtual ~QwtNullPaintDevice(); 39 73 40 void set Size( const QSize &);41 QSize size() const;74 void setMode( Mode ); 75 Mode mode() const; 42 76 43 77 virtual QPaintEngine *paintEngine() const; 78 44 79 virtual int metric( PaintDeviceMetric metric ) const; 45 80 … … 77 112 virtual void updateState( const QPaintEngineState &state ); 78 113 114 protected: 115 //! \return Size needed to implement metric() 116 virtual QSize sizeMetrics() const = 0; 117 79 118 private: 80 void init( QPaintEngine::PaintEngineFeatures );81 82 119 class PaintEngine; 83 120 PaintEngine *d_engine;
Note:
See TracChangeset
for help on using the changeset viewer.