QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
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 provides selections on a widget.
Definition qwt_picker.h:157
DisplayMode
Display mode.
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
Find the area of the observed widget, where selection might happen.
Definition qwt_picker.cpp:1645
RubberBand
Rubber band style.
Definition qwt_picker.h:186
virtual QwtText trackerText(const QPoint &pos) const
Return the label for a position.
Definition qwt_picker.cpp:660
virtual bool end(bool ok=true)
Close a selection setting the state to inactive.
Definition qwt_picker.cpp:1436
A point in polar coordinates.
Definition qwt_point_polar.h:52
Canvas of a QwtPolarPlot.
Definition qwt_polar_canvas.h:36
QwtPolarPicker provides selections on a plot canvas.
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 在选择结束时发出选中点的信号
A plotting widget, displaying a polar coordinate system.
Definition qwt_polar_plot.h:61
A class representing a text.
Definition qwt_text.h:93