QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
qwt_polar_picker.h
1/******************************************************************************
2 * QwtPolar Widget Library
3 * Copyright (C) 2008 Uwe Rathmann
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the Qwt License, Version 1.0
7 *****************************************************************************/
8
9#ifndef QWT_POLAR_PICKER_H
10#define QWT_POLAR_PICKER_H
11
12#include "qwt_global.h"
13#include "qwt_picker.h"
14
15#include <qvector.h>
16#include <qpainterpath.h>
17
18class QwtPolarPlot;
19class QwtPolarCanvas;
20class QwtPointPolar;
21
34class QWT_EXPORT QwtPolarPicker : public QwtPicker
35{
36 Q_OBJECT
37
38 public:
40 explicit QwtPolarPicker( QwtPolarCanvas* );
42 virtual ~QwtPolarPicker();
43
45 explicit QwtPolarPicker(
46 RubberBand rubberBand, DisplayMode trackerMode,
48
50 QwtPolarPlot* plot();
52 const QwtPolarPlot* plot() const;
53
55 QwtPolarCanvas* canvas();
57 const QwtPolarCanvas* canvas() const;
58
60 virtual QRect pickRect() const;
61
62 Q_SIGNALS:
63
69 void selected( const QwtPointPolar& pos );
70
76 void selected( const QVector< QwtPointPolar >& points );
77
84 void appended( const QwtPointPolar& pos );
85
92 void moved( const QwtPointPolar& pos );
93
94 protected:
96 QwtPointPolar invTransform( const QPoint& ) const;
97
99 virtual QwtText trackerText( const QPoint& ) const override;
101 virtual QwtText trackerTextPolar( const QwtPointPolar& ) const;
102
104 virtual void move( const QPoint& ) override;
106 virtual void append( const QPoint& ) override;
108 virtual bool end( bool ok = true ) override;
109
110 private:
111 virtual QPainterPath pickArea() const override;
112
113 class PrivateData;
114 PrivateData* m_data;
115};
116
117#endif
Definition qwt_clipper.h:40
QwtPicker 在一个部件上提供选择功能
Definition qwt_picker.h:157
DisplayMode
显示模式
Definition qwt_picker.h:230
virtual void move(const QPoint &)
Move the last point of the selection The moved() signal is emitted.
Definition qwt_picker.cpp:1499
virtual void append(const QPoint &)
Append a point to the selection and update rubber band and tracker.
Definition qwt_picker.cpp:1482
virtual QPainterPath pickArea() const
找到观察部件上可能发生选择的区域
Definition qwt_picker.cpp:1645
RubberBand
橡皮筋样式
Definition qwt_picker.h:186
virtual QwtText trackerText(const QPoint &pos) const
返回位置的标签
Definition qwt_picker.cpp:660
virtual bool end(bool ok=true)
Close a selection setting the state to inactive.
Definition qwt_picker.cpp:1436
极坐标点
Definition qwt_point_polar.h:52
QwtPolarPlot 的画布
Definition qwt_polar_canvas.h:36
QwtPolarPicker 提供在绘图画布上的选择功能
Definition qwt_polar_picker.h:35
void selected(const QwtPointPolar &pos)
A signal emitted in case of selectionFlags() & PointSelection 当 selectionFlags() & PointSelection 时发出...
void moved(const QwtPointPolar &pos)
A signal emitted whenever the last appended point of the selection has been moved 当选择的最后一个追加点被移动时发出的信...
void appended(const QwtPointPolar &pos)
A signal emitted when a point has been appended to the selection 当点被追加到选择时发出的信号
void selected(const QVector< QwtPointPolar > &points)
A signal emitting the selected points, at the end of a selection 在选择结束时发出选中点的信号
显示极坐标系的绘图控件
Definition qwt_polar_plot.h:61
表示文本的类
Definition qwt_text.h:93