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

Canvas of a QwtPolarPlot 更多...

#include <qwt_polar_canvas.h>

类 QwtPolarCanvas 继承关系图:

class  PrivateData
 

Public 类型

enum  PaintAttribute { BackingStore = 0x01 }
 Paint attributes 更多...
 

Public 成员函数

 QwtPolarCanvas (QwtPolarPlot *)
 Constructor
 
 ~QwtPolarCanvas () override
 Destructor
 
QwtPolarPlotplot ()
 Get the plot
 
const QwtPolarPlotplot () const
 Get the plot (const version)
 
void setPaintAttribute (PaintAttribute, bool on=true)
 Set a paint attribute
 
bool testPaintAttribute (PaintAttribute) const
 Test a paint attribute
 
const QPixmap * backingStore () const
 Get the backing store
 
void invalidateBackingStore ()
 Invalidate the backing store
 
QwtPointPolar invTransform (const QPoint &) const
 Inverse transform from widget coordinates to polar coordinates
 
QPoint transform (const QwtPointPolar &) const
 Transform from polar coordinates to widget coordinates
 

Protected 成员函数

virtual void paintEvent (QPaintEvent *) override
 Handle paint events
 
virtual void resizeEvent (QResizeEvent *) override
 Handle resize events
 

详细描述

Canvas of a QwtPolarPlot

The canvas is the widget, where all polar items are painted to.

注解
In opposite to QwtPlot all axes are painted on the canvas.
参见
QwtPolarPlot

成员枚举类型说明

◆ PaintAttribute

Paint attributes

The default setting enables BackingStore

参见
setPaintAttribute(), testPaintAttribute(), backingStore()
枚举值
BackingStore 

Paint double buffered and reuse the content of the pixmap buffer for some spontaneous repaints that happen when a plot gets unhidden, deiconified or changes the focus.

构造及析构函数说明

◆ QwtPolarCanvas()

QwtPolarCanvas::QwtPolarCanvas ( QwtPolarPlot plot)
explicit

Constructor

参数
plotParent polar plot widget

Destructor

成员函数说明

◆ backingStore()

const QPixmap * QwtPolarCanvas::backingStore ( ) const

Get the backing store

Get the backing store pixmap

返回
Backing store pixmap, might be null if not enabled
参见
setPaintAttribute(), invalidateBackingStore()

◆ invalidateBackingStore()

void QwtPolarCanvas::invalidateBackingStore ( )

Invalidate the backing store

Invalidate the internal backing store

Clears the backing store pixmap, forcing a full repaint on the next paint event.

参见
backingStore()

◆ invTransform()

QwtPointPolar QwtPolarCanvas::invTransform ( const QPoint &  pos) const

Inverse transform from widget coordinates to polar coordinates

Translate a point from widget coordinates to polar coordinates

参数
posPoint in widget coordinates of the plot canvas
返回
Point in polar coordinates
参见
transform()

◆ paintEvent()

void QwtPolarCanvas::paintEvent ( QPaintEvent *  event)
overrideprotectedvirtual

Handle paint events

Paint event

参数
eventPaint event

◆ plot() [1/2]

QwtPolarPlot * QwtPolarCanvas::plot ( )

Get the plot

Get the parent plot widget

返回
Parent polar plot widget

◆ plot() [2/2]

const QwtPolarPlot * QwtPolarCanvas::plot ( ) const

Get the plot (const version)

Get the parent plot widget (const version)

返回
Parent polar plot widget

◆ resizeEvent()

void QwtPolarCanvas::resizeEvent ( QResizeEvent *  event)
overrideprotectedvirtual

Handle resize events

Resize event

参数
eventResize event

◆ setPaintAttribute()

void QwtPolarCanvas::setPaintAttribute ( PaintAttribute  attribute,
bool  on = true 
)

Set a paint attribute

Change the paint attributes

参数
attributePaint attribute to modify
onTrue to enable, false to disable

The default setting enables BackingStore.

参见
testPaintAttribute(), backingStore()

◆ testPaintAttribute()

bool QwtPolarCanvas::testPaintAttribute ( PaintAttribute  attribute) const

Test a paint attribute

Test whether a paint attribute is enabled

参数
attributePaint attribute to test
返回
True if the attribute is enabled
参见
setPaintAttribute()

◆ transform()

QPoint QwtPolarCanvas::transform ( const QwtPointPolar polarPos) const

Transform from polar coordinates to widget coordinates

Translate a point from polar coordinates to widget coordinates

参数
polarPosPoint in polar coordinates
返回
Point in widget coordinates
参见
invTransform()

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