#include <qwt_painter_command.h>
Classes | |
| struct | ImageData |
| Attributes how to paint a QImage. More... | |
| struct | PixmapData |
| Attributes how to paint a QPixmap. More... | |
| struct | StateData |
| Attributes of a state change. More... | |
Public Types | |
| enum | Type { Invalid = -1, Path, Pixmap, Image, State } |
| Type of the paint command. More... | |
Public Member Functions | |
| ImageData * | imageData () |
| const ImageData * | imageData () const |
| QwtPainterCommand & | operator= (const QwtPainterCommand &) |
| QPainterPath * | path () |
| const QPainterPath * | path () const |
| PixmapData * | pixmapData () |
| const PixmapData * | pixmapData () const |
| QwtPainterCommand () | |
| Construct an invalid command. | |
| QwtPainterCommand (const QwtPainterCommand &) | |
| QwtPainterCommand (const QPainterPath &) | |
| Copy constructor. | |
| QwtPainterCommand (const QRectF &rect, const QPixmap &, const QRectF &subRect) | |
| QwtPainterCommand (const QRectF &rect, const QImage &, const QRectF &subRect, Qt::ImageConversionFlags) | |
| QwtPainterCommand (const QPaintEngineState &) | |
| StateData * | stateData () |
| const StateData * | stateData () const |
| Type | type () const |
| ~QwtPainterCommand () | |
| Destructor. | |
Private Member Functions | |
| void | copy (const QwtPainterCommand &) |
| void | reset () |
Private Attributes | |
| union { | |
| ImageData * d_imageData | |
| QPainterPath * d_path | |
| PixmapData * d_pixmapData | |
| StateData * d_stateData | |
| }; | |
| Type | d_type |
QwtPainterCommand represents the attributes of a paint operation how it is used between QPainter and QPaintDevice
It is used by QwtGraphic to record and replay paint operations
Definition at line 30 of file qwt_painter_command.h.
Type of the paint command.
| Invalid |
Invalid command. |
| Path |
Draw a QPainterPath. |
| Pixmap |
Draw a QPixmap. |
| Image |
Draw a QImage. |
| State |
QPainter state change. |
Definition at line 34 of file qwt_painter_command.h.
Construct an invalid command.
Definition at line 13 of file qwt_painter_command.cpp.
| QwtPainterCommand::QwtPainterCommand | ( | const QwtPainterCommand & | other | ) |
Copy constructor
| other | Command to be copied |
Definition at line 128 of file qwt_painter_command.cpp.
| QwtPainterCommand::QwtPainterCommand | ( | const QPainterPath & | path | ) | [explicit] |
Copy constructor.
Definition at line 19 of file qwt_painter_command.cpp.
| QwtPainterCommand::QwtPainterCommand | ( | const QRectF & | rect, |
| const QPixmap & | pixmap, | ||
| const QRectF & | subRect | ||
| ) |
Constructor for Pixmap paint operation
| rect | Target rectangle |
| pixmap | Pixmap |
| subRect | Rectangle inside the pixmap |
Definition at line 34 of file qwt_painter_command.cpp.
| QwtPainterCommand::QwtPainterCommand | ( | const QRectF & | rect, |
| const QImage & | image, | ||
| const QRectF & | subRect, | ||
| Qt::ImageConversionFlags | flags | ||
| ) |
Constructor for Image paint operation
| rect | Target rectangle |
| image | Image |
| subRect | Rectangle inside the image |
| flags | Conversion flags |
Definition at line 54 of file qwt_painter_command.cpp.
| QwtPainterCommand::QwtPainterCommand | ( | const QPaintEngineState & | state | ) | [explicit] |
Constructor for State paint operation
| state | Paint engine state |
Definition at line 70 of file qwt_painter_command.cpp.
Destructor.
Definition at line 134 of file qwt_painter_command.cpp.
| void QwtPainterCommand::copy | ( | const QwtPainterCommand & | other | ) | [private] |
Definition at line 153 of file qwt_painter_command.cpp.
Definition at line 228 of file qwt_painter_command.cpp.
| const QwtPainterCommand::ImageData * QwtPainterCommand::imageData | ( | ) | const [inline] |
Definition at line 161 of file qwt_painter_command.h.
| QwtPainterCommand & QwtPainterCommand::operator= | ( | const QwtPainterCommand & | other | ) |
Assignment operator
| other | Command to be copied |
Definition at line 145 of file qwt_painter_command.cpp.
| QPainterPath * QwtPainterCommand::path | ( | ) |
Definition at line 216 of file qwt_painter_command.cpp.
| const QPainterPath * QwtPainterCommand::path | ( | ) | const [inline] |
Definition at line 147 of file qwt_painter_command.h.
Definition at line 222 of file qwt_painter_command.cpp.
| const QwtPainterCommand::PixmapData * QwtPainterCommand::pixmapData | ( | ) | const [inline] |
Definition at line 154 of file qwt_painter_command.h.
| void QwtPainterCommand::reset | ( | ) | [private] |
Definition at line 184 of file qwt_painter_command.cpp.
Definition at line 234 of file qwt_painter_command.cpp.
| const QwtPainterCommand::StateData * QwtPainterCommand::stateData | ( | ) | const [inline] |
Definition at line 168 of file qwt_painter_command.h.
| QwtPainterCommand::Type QwtPainterCommand::type | ( | ) | const [inline] |
Definition at line 141 of file qwt_painter_command.h.
union { ... } [private] |
Definition at line 135 of file qwt_painter_command.h.
| QPainterPath* QwtPainterCommand::d_path |
Definition at line 133 of file qwt_painter_command.h.
Definition at line 134 of file qwt_painter_command.h.
Definition at line 136 of file qwt_painter_command.h.
Type QwtPainterCommand::d_type [private] |
Definition at line 129 of file qwt_painter_command.h.