|
| | QwtPlotCanvasZoomer (QWidget *canvas, bool doReplot=true) |
| | 为绘图画布创建缩放器的构造函数
|
| |
| virtual void | setZoomBase (bool doReplot=true) |
| | 将缩放基础设置为当前坐标轴范围
|
| |
| void | setAutoReplot (bool on=true) |
| | 启用或禁用缩放操作后的自动重绘
|
| |
| bool | isAutoReplot () const |
| | 检查是否启用了自动重绘
|
| |
| QList< QwtPlotCanvasZoomState > | zoomBase () const |
| | 获取基础缩放状态(初始未缩放状态)
|
| |
| QList< QwtPlotCanvasZoomState > | zoomState () const |
| | 获取当前缩放状态
|
| |
| void | setMaxStackDepth (int) |
| | 设置缩放堆栈的最大深度
|
| |
| int | maxStackDepth () const |
| | 获取缩放堆栈的最大深度
|
| |
| const QStack< QList< QwtPlotCanvasZoomState > > & | zoomStack () const |
| | 获取包含所有缩放状态的缩放堆栈
|
| |
|
uint | zoomStateIndex () const |
| |
| | QwtCanvasPicker (QWidget *canvas) |
| | 构造函数,带画布控件
|
| |
| | ~QwtCanvasPicker () |
| | 析构函数
|
| |
| QwtPlot * | plot () |
| | 获取关联的绘图
|
| |
| const QwtPlot * | plot () const |
| | 获取关联的绘图(const 版本)
|
| |
| QWidget * | canvas () |
| | 获取画布控件
|
| |
| const QWidget * | canvas () const |
| | 获取画布控件(const 版本)
|
| |
| | QwtPicker (QWidget *parent) |
| | 构造函数
|
| |
|
| QwtPicker (RubberBand rubberBand, DisplayMode trackerMode, QWidget *) |
| |
| void | setStateMachine (QwtPickerMachine *) |
| | 设置状态机并删除前一个
|
| |
| const QwtPickerMachine * | stateMachine () const |
| | 返回分配的状态机(const)
|
| |
| QwtPickerMachine * | stateMachine () |
| | 返回分配的状态机
|
| |
| void | setRubberBand (RubberBand) |
| | 设置橡皮筋样式
|
| |
| RubberBand | rubberBand () const |
| | 返回橡皮筋样式
|
| |
| void | setTrackerMode (DisplayMode) |
| | 设置追踪器的显示模式
|
| |
| DisplayMode | trackerMode () const |
| | 返回追踪器显示模式
|
| |
| void | setResizeMode (ResizeMode) |
| | 设置调整大小模式
|
| |
| ResizeMode | resizeMode () const |
| | 返回调整大小模式
|
| |
| void | setRubberBandPen (const QPen &) |
| | 设置橡皮筋的画笔
|
| |
| QPen | rubberBandPen () const |
| | 返回橡皮筋画笔
|
| |
| void | setTrackerPen (const QPen &) |
| | 设置追踪器的画笔
|
| |
| QPen | trackerPen () const |
| | 返回追踪器画笔
|
| |
| void | setTrackerFont (const QFont &) |
| | 设置追踪器的字体
|
| |
| QFont | trackerFont () const |
| | 返回追踪器字体
|
| |
| bool | isEnabled () const |
| | 启用时返回 true,否则返回 false
|
| |
| bool | isActive () const |
| | 选择器在 begin() 和 end() 之间处于活动状态
|
| |
| virtual bool | eventFilter (QObject *, QEvent *) override |
| | 处理事件的事件过滤器
|
| |
| QWidget * | parentWidget () |
| | 返回发生选择的父控件
|
| |
| const QWidget * | parentWidget () const |
| | 返回发生选择的父控件(const)
|
| |
| virtual QPainterPath | pickArea () const |
| | 找到观察部件上可能发生选择的区域
|
| |
| virtual void | drawRubberBand (QPainter *) const |
| | 根据橡皮筋样式绘制橡皮筋
|
| |
| virtual void | drawTracker (QPainter *) const |
| | 绘制追踪器
|
| |
| virtual QRegion | trackerMask () const |
| | 计算追踪器覆盖层的掩码
|
| |
| virtual QRegion | rubberBandMask () const |
| | 计算橡皮筋覆盖层的掩码
|
| |
| virtual QwtText | trackerText (const QPoint &pos) const |
| | 返回位置的标签
|
| |
| virtual QRect | trackerRect (const QFont &) const |
| | 从追踪器当前位置计算追踪器文本的边界矩形
|
| |
| virtual void | setTrackerPosition (const QPoint &pos) |
| | 手动设置追踪器位置
|
| |
| QPoint | trackerPosition () const |
| | 返回追踪器的当前位置
|
| |
| QPolygon | selection () const |
| | 返回选定的点
|
| |
|
void | update () |
| |
|
void | setActive (bool on) |
| |
| | QwtEventPattern () |
| | 构造函数
|
| |
| virtual | ~QwtEventPattern () |
| | 析构函数
|
| |
| void | initMousePattern (int numButtons) |
| | 根据鼠标按钮数量设置默认鼠标模式
|
| |
| void | initKeyPattern () |
| | 设置默认按键模式
|
| |
| void | setMousePattern (MousePatternCode, Qt::MouseButton button, Qt::KeyboardModifiers=Qt::NoModifier) |
| | 更改一个鼠标模式
|
| |
| void | setKeyPattern (KeyPatternCode, int key, Qt::KeyboardModifiers modifiers=Qt::NoModifier) |
| | 更改一个按键模式
|
| |
| void | setMousePattern (const QVector< MousePattern > &) |
| | 更改鼠标事件模式
|
| |
| void | setKeyPattern (const QVector< KeyPattern > &) |
| | 更改按键事件模式
|
| |
| const QVector< MousePattern > & | mousePattern () const |
| | 返回鼠标模式向量
|
| |
| const QVector< KeyPattern > & | keyPattern () const |
| | 返回按键模式向量
|
| |
| QVector< MousePattern > & | mousePattern () |
| | 返回鼠标模式向量
|
| |
| QVector< KeyPattern > & | keyPattern () |
| | 返回按键模式向量
|
| |
| bool | mouseMatch (MousePatternCode, const QMouseEvent *) const |
| | 将鼠标事件与事件模式进行比较
|
| |
| bool | keyMatch (KeyPatternCode, const QKeyEvent *) const |
| | 将按键事件与事件模式进行比较
|
| |
|
|
virtual void | rescale () |
| |
| virtual void | widgetMouseReleaseEvent (QMouseEvent *) override |
| | Handle a mouse release event for the observed widget.
|
| |
| virtual void | widgetKeyPressEvent (QKeyEvent *) override |
| | Handle a key press event for the observed widget.
|
| |
| virtual void | begin () override |
| | Open a selection setting the state to active
|
| |
| virtual bool | end (bool ok=true) override |
| | Close a selection setting the state to inactive.
|
| |
| virtual bool | accept (QPolygon &) const override |
| | Validate and fix up the selection
|
| |
| virtual QPolygon | adjustedPoints (const QPolygon &) const |
| | 将 pickedPoints() 映射为 selection()
|
| |
| virtual void | transition (const QEvent *) |
| | Passes an event to the state machine and executes the resulting commands.
|
| |
| virtual void | append (const QPoint &) |
| | Append a point to the selection and update rubber band and tracker.
|
| |
| virtual void | move (const QPoint &) |
| | Move the last point of the selection The moved() signal is emitted.
|
| |
| virtual void | remove () |
| | Remove the last point of the selection The removed() signal is emitted.
|
| |
|
virtual void | reset () |
| | Reset the state machine and terminate ( end(false) ) the selection
|
| |
| virtual void | widgetMousePressEvent (QMouseEvent *) |
| | Handle a mouse press event for the observed widget.
|
| |
| virtual void | widgetMouseDoubleClickEvent (QMouseEvent *) |
| | Handle mouse double click 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.
|
| |
| virtual void | widgetEnterEvent (QEvent *) |
| | Handle a enter event for the observed widget.
|
| |
| virtual void | widgetLeaveEvent (QEvent *) |
| | Handle a leave event for the observed widget.
|
| |
| virtual void | stretchSelection (const QSize &oldSize, const QSize &newSize) |
| | Scale the selection by the ratios of oldSize and newSize The changed() signal is emitted.
|
| |
|
virtual void | updateDisplay () |
| | Update the state of rubber band and tracker label
|
| |
| const QwtWidgetOverlay * | rubberBandOverlay () const |
| | 返回显示橡皮筋的覆盖层
|
| |
| const QwtWidgetOverlay * | trackerOverlay () const |
| | 返回显示追踪器文本的覆盖层
|
| |
| const QPolygon & | pickedPoints () const |
| | 返回到目前为止收集的点
|
| |
| virtual bool | mouseMatch (const MousePattern &, const QMouseEvent *) const |
| | Compare a mouse event with an event pattern.
|
| |
| virtual bool | keyMatch (const KeyPattern &, const QKeyEvent *) const |
| | Compare a key event with an event pattern.
|
| |
|
| enum | RubberBand {
NoRubberBand = 0
, HLineRubberBand
, VLineRubberBand
, CrossRubberBand
,
RectRubberBand
, EllipseRubberBand
, PolygonRubberBand
, UserRubberBand = 100
} |
| | 橡皮筋样式 更多...
|
| |
| enum | DisplayMode { AlwaysOff
, AlwaysOn
, ActiveOnly
} |
| | 显示模式 更多...
|
| |
| enum | ResizeMode { Stretch
, KeepSize
} |
| | 控制当观察部件调整大小时对选定点的处理方式 更多...
|
| |
| enum | MousePatternCode {
MouseSelect1
, MouseSelect2
, MouseSelect3
, MouseSelect4
,
MouseSelect5
, MouseSelect6
, MousePatternCount
} |
| | Symbolic mouse input codes 更多...
|
| |
| enum | KeyPatternCode {
KeySelect1
, KeySelect2
, KeyAbort
, KeyLeft
,
KeyRight
, KeyUp
, KeyDown
, KeyRedo
,
KeyUndo
, KeyHome
, KeyPatternCount
} |
| | Symbolic keyboard input codes 更多...
|
| |
|
bool | isEnabled |
| |
|
ResizeMode | resizeMode |
| |
|
DisplayMode | trackerMode |
| |
|
QPen | trackerPen |
| |
|
QFont | trackerFont |
| |
|
RubberBand | rubberBand |
| |
|
QPen | rubberBandPen |
| |