QwtPainterCommand
Contents
Constructor & Destructor Documentation
QwtPainterCommand::QwtPainterCommand(constQwtPainterCommand&other)
Copy constructor
Parameters:other Command to be copied
QwtPainterCommand::QwtPainterCommand(constQRectF&rect,constQPixmap&pixmap,constQRectF&subRect)
Constructor for Pixmap paint operation
Parameters:rect Target rectangle
pixmap Pixmap
subRect Rectangle inside the pixmap
Seealso:
QPainter::drawPixmap()
QwtPainterCommand::QwtPainterCommand(constQRectF&rect,constQImage&image,constQRectF&subRect,Qt::ImageConversionFlagsflags)
Constructor for Image paint operation
Parameters:rect Target rectangle
image Image
subRect Rectangle inside the image
flags Conversion flags
Seealso:
QPainter::drawImage()
QwtPainterCommand::QwtPainterCommand(constQPaintEngineState&state)
Constructor for State paint operation
Parameters:state Paint engine state
Detailed Description
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
Seealso:QwtGraphic::commands()Member Enumeration Documentation
enumQwtPainterCommand::Type
Type of the paint command.
EnumeratorInvalid
Invalid command.
Path Draw a QPainterPath.
Pixmap Draw a QPixmap.
Image Draw a QImage.
State QPainter state change.
Member Function Documentation
QwtPainterCommand::ImageData*QwtPainterCommand::imageData()Returns:
Attributes how to paint a QImage
constQwtPainterCommand::ImageData*QwtPainterCommand::imageData()const[inline]Returns:
Attributes how to paint a QImage
QwtPainterCommand&QwtPainterCommand::operator=(constQwtPainterCommand&other)
Assignment operator
Parameters:other Command to be copied
Returns:
Modified command
QPainterPath*QwtPainterCommand::path()Returns:
Painter path to be painted
constQPainterPath*QwtPainterCommand::path()const[inline]Returns:
Painter path to be painted
QwtPainterCommand::PixmapData*QwtPainterCommand::pixmapData()Returns:
Attributes how to paint a QPixmap
constQwtPainterCommand::PixmapData*QwtPainterCommand::pixmapData()const[inline]Returns:
Attributes how to paint a QPixmap
QwtPainterCommand::StateData*QwtPainterCommand::stateData()Returns:
Attributes of a state change
constQwtPainterCommand::StateData*QwtPainterCommand::stateData()const[inline]Returns:
Attributes of a state change
QwtPainterCommand::TypeQwtPainterCommand::type()const[inline]Returns:
Type of the command
Name
QwtPainterCommand
Synopsis
#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.
PublicTypes
enum Type { Invalid = -1, Path, Pixmap, Image, State }
Type of the paint command.
PublicMemberFunctionsQwtPainterCommand ()
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 &)
Typetype () 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
