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

QwtPolarCachePanner provides panning of a polar plot canvas 更多...

#include <qwt_polar_cache_panner.h>

类 QwtPolarCachePanner 继承关系图:
QwtCachePanner

Public 槽

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

Public 成员函数

 QwtPolarCachePanner (QwtPolarCanvas *)
 Constructor
 
 ~QwtPolarCachePanner () override
 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)
 Creates a panner that is enabled for the left mouse button
 
void setEnabled (bool)
 En/disable the panner
 
bool isEnabled () const
 Return whether the panner is enabled
 
void setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier)
 Change the mouse button and modifiers used for panning
 
void getMouseButton (Qt::MouseButton &button, Qt::KeyboardModifiers &) const
 Get mouse button and modifiers used for panning
 
void setAbortKey (int key, Qt::KeyboardModifiers=Qt::NoModifier)
 Change the abort key
 
void getAbortKey (int &key, Qt::KeyboardModifiers &) const
 Get the abort key and modifiers
 
void setCursor (const QCursor &)
 Change the cursor that is active while panning
 
const QCursor cursor () const
 Return the cursor that is active while panning
 
void setOrientations (Qt::Orientations)
 Set the orientations where panning is enabled
 
Qt::Orientations orientations () const
 Return the orientation where panning is enabled
 
bool isOrientationEnabled (Qt::Orientation) const
 Check if an orientation is enabled
 
virtual bool eventFilter (QObject *, QEvent *) override
 Event filter
 

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
 Paint event
 
virtual QBitmap contentsMask () const
 Calculate a mask for the contents of the panned widget
 
virtual QPixmap grab () const
 Grab the widget into a pixmap
 

额外继承的成员函数

- 信号 继承自 QwtCachePanner
void panned (int dx, int dy)
 Signal emitted when panning is done
 
void moved (int dx, int dy)
 Signal emitted while the widget moved, but panning is not finished
 

详细描述

QwtPolarCachePanner provides panning of a polar plot canvas

QwtPolarPanner is a panner for a QwtPolarCanvas, that adjusts the visible area after dropping the canvas on its new position.

Together with QwtPolarMagnifier individual ways of navigating on a QwtPolarPlot widget can be implemented easily.

参见
QwtPolarMagnifier

构造及析构函数说明

◆ QwtPolarCachePanner()

QwtPolarCachePanner::QwtPolarCachePanner ( QwtPolarCanvas canvas)
explicit

Constructor

Create a plot panner for a polar plot canvas

参数
canvasPlot canvas to be panned

成员函数说明

◆ canvas() [1/2]

QwtPolarCanvas * QwtPolarCachePanner::canvas ( )

Get the canvas

Get the observed plot canvas

返回
Observed plot canvas

◆ canvas() [2/2]

const QwtPolarCanvas * QwtPolarCachePanner::canvas ( ) const

Get the canvas (const version)

Get the observed plot canvas (const version)

返回
Observed plot canvas

◆ movePlot

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

Move the plot

Adjust the zoomed area according to dx/dy

参数
dxPixel offset in x direction
dyPixel offset in y direction
参见
QwtPanner::panned(), QwtPolarPlot::zoom()

◆ plot() [1/2]

QwtPolarPlot * QwtPolarCachePanner::plot ( )

Get the plot

Get the observed plot

返回
Observed plot

◆ plot() [2/2]

const QwtPolarPlot * QwtPolarCachePanner::plot ( ) const

Get the plot (const version)

Get the observed plot (const version)

返回
Observed plot

◆ widgetMousePressEvent()

void QwtPolarCachePanner::widgetMousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Handle mouse press events

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

参数
eventMouse event

重载 QwtCachePanner .


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