QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
| Public 类型 | Public 成员函数 | 所有成员列表
QwtPainterCommand类 参考

Represents the attributes of a paint operation between QPainter and QPaintDevice 更多...

#include <qwt_painter_command.h>

struct  ImageData
 Attributes how to paint a QImage 更多...
 
struct  PixmapData
 Attributes how to paint a QPixmap 更多...
 
struct  StateData
 Attributes of a state change 更多...
 

Public 类型

enum  Type {
  Invalid = -1 , Path , Pixmap , Image ,
  State
}
 Type of the paint command 更多...
 

Public 成员函数

 QwtPainterCommand ()
 Construct an invalid command
 
 QwtPainterCommand (const QwtPainterCommand &)
 Copy constructor
 
 QwtPainterCommand (QwtPainterCommand &&) noexcept
 Move constructor
 
 QwtPainterCommand (const QPainterPath &)
 Construct a path command
 
 QwtPainterCommand (const QRectF &rect, const QPixmap &, const QRectF &subRect)
 Constructor for Pixmap paint operation
 
 QwtPainterCommand (const QRectF &rect, const QImage &, const QRectF &subRect, Qt::ImageConversionFlags)
 Constructor for Image paint operation
 
 QwtPainterCommand (const QPaintEngineState &)
 Constructor for State paint operation
 
 ~QwtPainterCommand ()
 Destructor
 
QwtPainterCommandoperator= (const QwtPainterCommand &)
 Assignment operator
 
QwtPainterCommandoperator= (QwtPainterCommand &&) noexcept
 Move assignment operator
 
Type type () const
 
QPainterPath * path ()
 
const QPainterPath * path () const
 
PixmapDatapixmapData ()
 
const PixmapDatapixmapData () const
 
ImageDataimageData ()
 
const ImageDataimageData () const
 
StateDatastateData ()
 
const StateDatastateData () const
 

详细描述

Represents the attributes of a paint operation between QPainter and QPaintDevice

QwtPainterCommand encapsulates different types of paint operations including drawing paths, pixmaps, images, and state changes. It is used by QwtGraphic to record and replay paint operations.

参见
QwtGraphic::commands()

成员枚举类型说明

◆ Type

Type of the paint command

枚举值
Invalid 

Invalid command

Path 

Draw a QPainterPath

Pixmap 

Draw a QPixmap

Image 

Draw a QImage

State 

QPainter state change

构造及析构函数说明

◆ QwtPainterCommand() [1/6]

QwtPainterCommand::QwtPainterCommand ( const QwtPainterCommand other)

Copy constructor

参数
[in]otherCommand to be copied

◆ QwtPainterCommand() [2/6]

QwtPainterCommand::QwtPainterCommand ( QwtPainterCommand &&  other)
noexcept

Move constructor

参数
[in]otherCommand to be moved from

◆ QwtPainterCommand() [3/6]

QwtPainterCommand::QwtPainterCommand ( const QPainterPath &  path)
explicit

Construct a path command

参数
[in]pathQPainterPath to be painted

◆ QwtPainterCommand() [4/6]

QwtPainterCommand::QwtPainterCommand ( const QRectF &  rect,
const QPixmap &  pixmap,
const QRectF &  subRect 
)

Constructor for Pixmap paint operation

参数
[in]rectTarget rectangle
[in]pixmapPixmap to draw
[in]subRectRectangle inside the pixmap
参见
QPainter::drawPixmap()

◆ QwtPainterCommand() [5/6]

QwtPainterCommand::QwtPainterCommand ( const QRectF &  rect,
const QImage &  image,
const QRectF &  subRect,
Qt::ImageConversionFlags  flags 
)

Constructor for Image paint operation

参数
[in]rectTarget rectangle
[in]imageImage to draw
[in]subRectRectangle inside the image
[in]flagsConversion flags
参见
QPainter::drawImage()

◆ QwtPainterCommand() [6/6]

QwtPainterCommand::QwtPainterCommand ( const QPaintEngineState &  state)
explicit

Constructor for State paint operation

参数
[in]statePaint engine state

成员函数说明

◆ imageData() [1/2]

QwtPainterCommand::ImageData * QwtPainterCommand::imageData ( )
返回
Attributes how to paint a QImage

◆ imageData() [2/2]

const QwtPainterCommand::ImageData * QwtPainterCommand::imageData ( ) const
inline
返回
Attributes how to paint a QImage

◆ operator=() [1/2]

QwtPainterCommand & QwtPainterCommand::operator= ( const QwtPainterCommand other)

Assignment operator

参数
[in]otherCommand to be copied
返回
Modified command

◆ operator=() [2/2]

QwtPainterCommand & QwtPainterCommand::operator= ( QwtPainterCommand &&  other)
noexcept

Move assignment operator

参数
[in]otherCommand to be moved from
返回
Reference to this command

◆ path() [1/2]

QPainterPath * QwtPainterCommand::path ( )
返回
Painter path to be painted

◆ path() [2/2]

const QPainterPath * QwtPainterCommand::path ( ) const
inline
返回
Painter path to be painted

◆ pixmapData() [1/2]

QwtPainterCommand::PixmapData * QwtPainterCommand::pixmapData ( )
返回
Attributes how to paint a QPixmap

◆ pixmapData() [2/2]

const QwtPainterCommand::PixmapData * QwtPainterCommand::pixmapData ( ) const
inline
返回
Attributes how to paint a QPixmap

◆ stateData() [1/2]

QwtPainterCommand::StateData * QwtPainterCommand::stateData ( )
返回
Attributes of a state change

◆ stateData() [2/2]

const QwtPainterCommand::StateData * QwtPainterCommand::stateData ( ) const
inline
返回
Attributes of a state change

◆ type()

QwtPainterCommand::Type QwtPainterCommand::type ( ) const
inline
返回
Type of the command

该类的文档由以下文件生成: