Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_painter_command.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_painter_command.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_painter_command.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 12 12 13 13 #include "qwt_global.h" 14 14 15 #include <qpaintengine.h> 15 16 #include <qpixmap.h> … … 21 22 22 23 /*! 23 QwtPainterCommand represents the attributes of a paint operation 24 how it is used between QPainter and QPaintDevice 24 QwtPainterCommand represents the attributes of a paint operation 25 how it is used between QPainter and QPaintDevice 25 26 26 It is used by QwtGraphic to record and replay paint operations 27 It is used by QwtGraphic to record and replay paint operations 27 28 28 \sa QwtGraphic::commands() 29 \sa QwtGraphic::commands() 29 30 */ 30 31 31 32 class QWT_EXPORT QwtPainterCommand 32 33 { 33 public: 34 public: 34 35 //! Type of the paint command 35 36 enum Type … … 79 80 Qt::BGMode backgroundMode; 80 81 QFont font; 81 QMatrix matrix;82 82 QTransform transform; 83 83 … … 93 93 94 94 QwtPainterCommand(); 95 QwtPainterCommand(const QwtPainterCommand &);95 QwtPainterCommand(const QwtPainterCommand&); 96 96 97 QwtPainterCommand( const QPainterPath & );97 explicit QwtPainterCommand( const QPainterPath& ); 98 98 99 QwtPainterCommand( const QRectF &rect,100 const QPixmap&, const QRectF& subRect );99 QwtPainterCommand( const QRectF& rect, 100 const QPixmap&, const QRectF& subRect ); 101 101 102 QwtPainterCommand( const QRectF &rect,103 const QImage&, const QRectF& subRect,104 Qt::ImageConversionFlags );102 QwtPainterCommand( const QRectF& rect, 103 const QImage&, const QRectF& subRect, 104 Qt::ImageConversionFlags ); 105 105 106 QwtPainterCommand( const QPaintEngineState & );106 explicit QwtPainterCommand( const QPaintEngineState& ); 107 107 108 108 ~QwtPainterCommand(); 109 109 110 QwtPainterCommand &operator=(const QwtPainterCommand& );110 QwtPainterCommand& operator=(const QwtPainterCommand& ); 111 111 112 112 Type type() const; 113 113 114 QPainterPath *path();115 const QPainterPath *path() const;114 QPainterPath* path(); 115 const QPainterPath* path() const; 116 116 117 117 PixmapData* pixmapData(); … … 124 124 const StateData* stateData() const; 125 125 126 private: 127 void copy( const QwtPainterCommand & );126 private: 127 void copy( const QwtPainterCommand& ); 128 128 void reset(); 129 129 130 Type d_type;130 Type m_type; 131 131 132 132 union 133 133 { 134 QPainterPath *d_path;135 PixmapData *d_pixmapData;136 ImageData *d_imageData;137 StateData *d_stateData;134 QPainterPath* m_path; 135 PixmapData* m_pixmapData; 136 ImageData* m_imageData; 137 StateData* m_stateData; 138 138 }; 139 139 }; … … 142 142 inline QwtPainterCommand::Type QwtPainterCommand::type() const 143 143 { 144 return d_type;144 return m_type; 145 145 } 146 146 147 147 //! \return Painter path to be painted 148 inline const QPainterPath *QwtPainterCommand::path() const148 inline const QPainterPath* QwtPainterCommand::path() const 149 149 { 150 return d_path;150 return m_path; 151 151 } 152 152 153 153 //! \return Attributes how to paint a QPixmap 154 inline const QwtPainterCommand::PixmapData *154 inline const QwtPainterCommand::PixmapData* 155 155 QwtPainterCommand::pixmapData() const 156 156 { 157 return d_pixmapData;157 return m_pixmapData; 158 158 } 159 159 160 160 //! \return Attributes how to paint a QImage 161 inline const QwtPainterCommand::ImageData *161 inline const QwtPainterCommand::ImageData* 162 162 QwtPainterCommand::imageData() const 163 163 { 164 return d_imageData;164 return m_imageData; 165 165 } 166 166 167 167 //! \return Attributes of a state change 168 inline const QwtPainterCommand::StateData *168 inline const QwtPainterCommand::StateData* 169 169 QwtPainterCommand::stateData() const 170 170 { 171 return d_stateData;171 return m_stateData; 172 172 } 173 173
Note:
See TracChangeset
for help on using the changeset viewer.
