QWT API (中文) 7.3.0
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
27class QWT_EXPORT QwtPolarPicker : public QwtPicker
28{
29 Q_OBJECT
30
31public:
35 ~QwtPolarPicker() override;
36
38 explicit QwtPolarPicker(RubberBand rubberBand, DisplayMode trackerMode, QwtPolarCanvas*);
39
41 QwtPolarPlot* plot();
43 const QwtPolarPlot* plot() const;
44
46 QwtPolarCanvas* canvas();
48 const QwtPolarCanvas* canvas() const;
49
51 virtual QRect pickRect() const;
52
53Q_SIGNALS:
54
59 void selected(const QwtPointPolar& pos);
60
66
72 void appended(const QwtPointPolar& pos);
73
79 void moved(const QwtPointPolar& pos);
80
81protected:
83 QwtPointPolar invTransform(const QPoint&) const;
84
86 virtual QwtText trackerText(const QPoint&) const override;
88 virtual QwtText trackerTextPolar(const QwtPointPolar&) const;
89
91 virtual void move(const QPoint&) override;
93 virtual void append(const QPoint&) override;
95 virtual bool end(bool ok = true) override;
96
97private:
98 virtual QPainterPath pickArea() const override;
99
100 QWT_DECLARE_PRIVATE(QwtPolarPicker)
101};
102
103#endif
Definition qwt_clipper.h:41
QwtPicker provides selections on a widget
Definition qwt_picker.h:108
DisplayMode
Display mode
Definition qwt_picker.h:163
virtual void move(const QPoint &)
Move the last point of the selection The moved() signal is emitted.
Definition qwt_picker.cpp:1241
virtual void append(const QPoint &)
Append a point to the selection and update rubber band and tracker.
Definition qwt_picker.cpp:1224
virtual QPainterPath pickArea() const
Find the area of the observed widget, where selection might happen
Definition qwt_picker.cpp:1368
RubberBand
Rubber band style
Definition qwt_picker.h:130
virtual QwtText trackerText(const QPoint &pos) const
Return the label for a position
Definition qwt_picker.cpp:485
virtual bool end(bool ok=true)
Close a selection setting the state to inactive.
Definition qwt_picker.cpp:1178
A point in polar coordinates
Definition qwt_point_polar.h:45
Canvas of a QwtPolarPlot
Definition qwt_polar_canvas.h:26
QwtPolarPicker provides selections on a plot canvas
Definition qwt_polar_picker.h:28
void selected(const QwtPointPolar &pos)
A signal emitted in case of selectionFlags() & PointSelection
void moved(const QwtPointPolar &pos)
A signal emitted whenever the last appended point of the selection has been moved
~QwtPolarPicker() override
Destructor
void appended(const QwtPointPolar &pos)
A signal emitted when a point has been appended to the selection
QwtPolarPicker(RubberBand rubberBand, DisplayMode trackerMode, QwtPolarCanvas *)
Constructor with rubber band and tracker mode
void selected(const QVector< QwtPointPolar > &points)
A signal emitting the selected points, at the end of a selection
A plotting widget, displaying a polar coordinate system
Definition qwt_polar_plot.h:46
A class representing a text
Definition qwt_text.h:70