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

QwtPolarCachePanner 提供极坐标绘图画布的平移功能 更多...

#include <qwt_polar_cache_panner.h>

类 QwtPolarCachePanner 继承关系图:
QwtCachePanner

Public 槽

virtual void movePlot (int dx, int dy)
 Move the plot
 

Public 成员函数

 QwtPolarCachePanner (QwtPolarCanvas *)
 Constructor
 
virtual ~QwtPolarCachePanner ()
 Destructor
 
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 成员函数 继承自 QwtCachePanner
 QwtCachePanner (QWidget *parent)
 创建一个启用左键鼠标按钮的平移器
 
virtual ~QwtCachePanner ()
 析构函数
 
void setEnabled (bool)
 启用/禁用平移器
 
bool isEnabled () const
 返回平移器是否启用
 
void setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier)
 更改用于平移的鼠标按钮和修饰键
 
void getMouseButton (Qt::MouseButton &button, Qt::KeyboardModifiers &) const
 获取用于平移的鼠标按钮和修饰键
 
void setAbortKey (int key, Qt::KeyboardModifiers=Qt::NoModifier)
 更改中止键
 
void getAbortKey (int &key, Qt::KeyboardModifiers &) const
 获取中止键和修饰键
 
void setCursor (const QCursor &)
 更改平移时激活的光标
 
const QCursor cursor () const
 返回平移时激活的光标
 
void setOrientations (Qt::Orientations)
 设置启用平移的方向
 
Qt::Orientations orientations () const
 返回启用平移的方向
 
bool isOrientationEnabled (Qt::Orientation) const
 检查某个方向是否启用
 
virtual bool eventFilter (QObject *, QEvent *) override
 事件过滤器
 

Protected 成员函数

virtual void widgetMousePressEvent (QMouseEvent *) override
 Handle mouse press events
 
- Protected 成员函数 继承自 QwtCachePanner
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 widgetKeyPressEvent (QKeyEvent *)
 Handle a key press event for the observed widget.
 
virtual void widgetKeyReleaseEvent (QKeyEvent *)
 Handle a key release event for the observed widget.
 
virtual void paintEvent (QPaintEvent *) override
 绘制事件
 
virtual QBitmap contentsMask () const
 计算平移控件内容的遮罩
 
virtual QPixmap grab () const
 将控件捕获到 pixmap 中
 

额外继承的成员函数

- 信号 继承自 QwtCachePanner
void panned (int dx, int dy)
 平移完成时发出的信号
 
void moved (int dx, int dy)
 控件移动但平移未完成时发出的信号
 

详细描述

QwtPolarCachePanner 提供极坐标绘图画布的平移功能

构造及析构函数说明

◆ QwtPolarCachePanner()

QwtPolarCachePanner::QwtPolarCachePanner ( QwtPolarCanvas canvas)
explicit

Constructor

为极坐标绘图画布创建绘图平移器

◆ ~QwtPolarCachePanner()

QwtPolarCachePanner::~QwtPolarCachePanner ( )
virtual

Destructor

析构函数

成员函数说明

◆ canvas() [1/2]

QwtPolarCanvas * QwtPolarCachePanner::canvas ( )

Get the canvas

获取观察的绘图画布

◆ canvas() [2/2]

const QwtPolarCanvas * QwtPolarCachePanner::canvas ( ) const

Get the canvas (const version)

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

◆ movePlot

void QwtPolarCachePanner::movePlot ( int  dx,
int  dy 
)
virtualslot

Move the plot

根据 dx/dy 调整缩放区域

◆ plot() [1/2]

QwtPolarPlot * QwtPolarCachePanner::plot ( )

Get the plot

获取观察的绘图

◆ plot() [2/2]

const QwtPolarPlot * QwtPolarCachePanner::plot ( ) const

Get the plot (const version)

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

◆ widgetMousePressEvent()

void QwtPolarCachePanner::widgetMousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Handle mouse press events

Block panning when the plot zoom factor is >= 1.0.

参数
eventMouse event

重载 QwtCachePanner .


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