Qwt User's Guide 6.3.0
|
#include <qwt_painter_command.h>
Classes | |
struct | ImageData |
Attributes how to paint a QImage. | |
struct | PixmapData |
Attributes how to paint a QPixmap. | |
struct | StateData |
Attributes of a state change. | |
Public Types | |
enum | Type { Invalid = -1 , Path , Pixmap , Image , State } |
Type of the paint command. More... | |
Public Member Functions | |
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 &) | |
~QwtPainterCommand () | |
Destructor. | |
QwtPainterCommand & | operator= (const QwtPainterCommand &) |
Type | type () const |
QPainterPath * | path () |
const QPainterPath * | path () const |
PixmapData * | pixmapData () |
const PixmapData * | pixmapData () const |
ImageData * | imageData () |
const ImageData * | imageData () const |
StateData * | stateData () |
const StateData * | stateData () const |
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 32 of file qwt_painter_command.h.
Type of the paint command.
Enumerator | |
---|---|
Invalid | Invalid command. |
Path | Draw a QPainterPath. |
Pixmap | Draw a QPixmap. |
Image | Draw a QImage. |
State | QPainter state change. |
Definition at line 36 of file qwt_painter_command.h.
QwtPainterCommand::QwtPainterCommand | ( | ) |
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.
|
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.
|
explicit |
Constructor for State paint operation
state | Paint engine state |
Definition at line 70 of file qwt_painter_command.cpp.
QwtPainterCommand::~QwtPainterCommand | ( | ) |
Destructor.
Definition at line 134 of file qwt_painter_command.cpp.
QwtPainterCommand::ImageData * QwtPainterCommand::imageData | ( | ) |
Definition at line 228 of file qwt_painter_command.cpp.
|
inline |
Definition at line 162 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.
|
inline |
Definition at line 148 of file qwt_painter_command.h.
QwtPainterCommand::PixmapData * QwtPainterCommand::pixmapData | ( | ) |
Definition at line 222 of file qwt_painter_command.cpp.
|
inline |
Definition at line 155 of file qwt_painter_command.h.
QwtPainterCommand::StateData * QwtPainterCommand::stateData | ( | ) |
Definition at line 234 of file qwt_painter_command.cpp.
|
inline |
Definition at line 169 of file qwt_painter_command.h.
|
inline |
Definition at line 142 of file qwt_painter_command.h.
ImageData* QwtPainterCommand::m_imageData |
Definition at line 136 of file qwt_painter_command.h.
QPainterPath* QwtPainterCommand::m_path |
Definition at line 134 of file qwt_painter_command.h.
PixmapData* QwtPainterCommand::m_pixmapData |
Definition at line 135 of file qwt_painter_command.h.
StateData* QwtPainterCommand::m_stateData |
Definition at line 137 of file qwt_painter_command.h.