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

QwtPolarMagnifier 通过逐步放大提供缩放功能 更多...

#include <qwt_polar_magnifier.h>

类 QwtPolarMagnifier 继承关系图:
QwtMagnifier

class  PrivateData
 

Public 槽

virtual void rescale (double factor) override
 Rescale the plot
 
void unzoom ()
 Unzoom the plot
 

Public 成员函数

 QwtPolarMagnifier (QwtPolarCanvas *)
 Constructor
 
virtual ~QwtPolarMagnifier ()
 Destructor
 
void setUnzoomKey (int key, int modifiers)
 Set the unzoom key
 
void getUnzoomKey (int &key, int &modifiers) const
 Get the unzoom key
 
QwtPolarPlotplot ()
 Get the plot
 
const QwtPolarPlotplot () const
 Get the plot (const version)
 
QwtPolarCanvascanvas ()
 Get the canvas
 
const QwtPolarCanvascanvas () const
 Get the canvas (const version)
 
- Public 成员函数 继承自 QwtMagnifier
 QwtMagnifier (QWidget *)
 构造函数
 
virtual ~QwtMagnifier ()
 析构函数
 
QWidget * parentWidget ()
 返回发生重新缩放的父控件
 
const QWidget * parentWidget () const
 返回发生重新缩放的父控件
 
void setEnabled (bool)
 启用/禁用放大器
 
bool isEnabled () const
 返回放大器是否启用
 
void setMouseFactor (double)
 更改鼠标因子
 
double mouseFactor () const
 返回鼠标因子
 
void setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier)
 设置用于放大/缩小的鼠标按钮
 
void getMouseButton (Qt::MouseButton &, Qt::KeyboardModifiers &) const
 获取用于放大/缩小的鼠标按钮和修饰键
 
void setWheelFactor (double)
 更改滚轮因子
 
double wheelFactor () const
 返回滚轮因子
 
void setWheelModifiers (Qt::KeyboardModifiers)
 设置使用滚轮放大/缩小时的键盘修饰键
 
Qt::KeyboardModifiers wheelModifiers () const
 返回滚轮修饰键
 
void setKeyFactor (double)
 更改按键因子
 
double keyFactor () const
 返回按键因子
 
void setZoomInKey (int key, Qt::KeyboardModifiers=Qt::NoModifier)
 设置用于放大的按键
 
void getZoomInKey (int &key, Qt::KeyboardModifiers &) const
 获取放大键的设置
 
void setZoomOutKey (int key, Qt::KeyboardModifiers=Qt::NoModifier)
 设置用于缩小的按键
 
void getZoomOutKey (int &key, Qt::KeyboardModifiers &) const
 获取缩小键的设置
 
virtual bool eventFilter (QObject *, QEvent *) override
 事件过滤器
 

Protected 成员函数

virtual void widgetKeyPressEvent (QKeyEvent *) override
 Handle key press events
 
- Protected 成员函数 继承自 QwtMagnifier
virtual void rescale (double factor)=0
 重新缩放父控件
 
virtual void widgetMousePressEvent (QMouseEvent *)
 Handle a mouse press event for the observed widget.
 
virtual void widgetMouseReleaseEvent (QMouseEvent *)
 Handle a mouse release event for the observed widget.
 
virtual void widgetMouseMoveEvent (QMouseEvent *)
 Handle a mouse move event for the observed widget.
 
virtual void widgetWheelEvent (QWheelEvent *)
 Handle a wheel event for the observed widget.
 
virtual void widgetKeyReleaseEvent (QKeyEvent *)
 Handle a key release event for the observed widget.
 

详细描述

QwtPolarMagnifier 通过逐步放大提供缩放功能

构造及析构函数说明

◆ QwtPolarMagnifier()

QwtPolarMagnifier::QwtPolarMagnifier ( QwtPolarCanvas canvas)
explicit

Constructor

构造函数

◆ ~QwtPolarMagnifier()

QwtPolarMagnifier::~QwtPolarMagnifier ( )
virtual

Destructor

析构函数

成员函数说明

◆ canvas() [1/2]

QwtPolarCanvas * QwtPolarMagnifier::canvas ( )

Get the canvas

获取观察的绘图画布

◆ canvas() [2/2]

const QwtPolarCanvas * QwtPolarMagnifier::canvas ( ) const

Get the canvas (const version)

获取观察的绘图画布(常量版本)

◆ getUnzoomKey()

void QwtPolarMagnifier::getUnzoomKey ( int &  key,
int &  modifiers 
) const

Get the unzoom key

获取用于取消缩放的按键和修饰键

◆ plot() [1/2]

QwtPolarPlot * QwtPolarMagnifier::plot ( )

Get the plot

获取观察的绘图

◆ plot() [2/2]

const QwtPolarPlot * QwtPolarMagnifier::plot ( ) const

Get the plot (const version)

获取观察的绘图(常量版本)

◆ rescale

void QwtPolarMagnifier::rescale ( double  factor)
overridevirtualslot

Rescale the plot

放大/缩小缩放区域

◆ setUnzoomKey()

void QwtPolarMagnifier::setUnzoomKey ( int  key,
int  modifiers 
)

Set the unzoom key

设置用于取消缩放的按键和修饰键

◆ unzoom

void QwtPolarMagnifier::unzoom ( )
slot

Unzoom the plot

取消绘图控件的缩放

◆ widgetKeyPressEvent()

void QwtPolarMagnifier::widgetKeyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

Handle key press events

Handle a key press event for the observed widget.

参数
eventKey event

重载 QwtMagnifier .


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