QwtPolarPicker provides selections on a plot canvas.
More...
#include <qwt_polar_picker.h>
List of all members.
Detailed Description
QwtPolarPicker provides selections on a plot canvas.
QwtPolarPicker is a QwtPicker tailored for selections on a polar plot canvas.
Constructor & Destructor Documentation
Create a polar plot picker.
- Parameters:
-
canvas | Plot canvas to observe, also the parent object |
QwtPolarPicker::~QwtPolarPicker |
( |
| ) |
[virtual] |
QwtPolarPicker::QwtPolarPicker |
( |
RubberBand |
rubberBand, |
|
|
DisplayMode |
trackerMode, |
|
|
QwtPolarCanvas * |
canvas |
|
) |
| [explicit] |
Create a plot picker
- Parameters:
-
rubberBand | Rubberband style |
trackerMode | Tracker mode |
canvas | Plot canvas to observe, also the parent object |
- See also:
- QwtPicker, QwtPicker::setSelectionFlags(), QwtPicker::setRubberBand(), QwtPicker::setTrackerMode
-
QwtPolarPlot::autoReplot(), QwtPolarPlot::replot(), scaleRect()
Member Function Documentation
void QwtPolarPicker::append |
( |
const QPoint & |
pos | ) |
[protected, virtual] |
Append a point to the selection and update rubberband and tracker.
- Parameters:
-
- See also:
- isActive, begin(), end(), move(), appended()
- Note:
- The appended(const QPoint &), appended(const QDoublePoint &) signals are emitted.
void QwtPolarPicker::appended |
( |
const QwtPointPolar & |
pos | ) |
[signal] |
A signal emitted when a point has been appended to the selection
- Parameters:
-
pos | Position of the appended point. |
- See also:
- append(). moved()
- Returns:
- Observed plot canvas
- Returns:
- Observed plot canvas
bool QwtPolarPicker::end |
( |
bool |
ok = true | ) |
[protected, virtual] |
Close a selection setting the state to inactive.
- Parameters:
-
ok | If true, complete the selection and emit selected signals otherwise discard the selection. |
- Returns:
- true if the selection is accepted, false otherwise
QwtPointPolar QwtPolarPicker::invTransform |
( |
const QPoint & |
pos | ) |
const [protected] |
Translate a point from widget into plot coordinates
- Parameters:
-
pos | Point in widget coordinates of the plot canvas |
- Returns:
- Point in plot coordinates
- See also:
- transform(), canvas()
void QwtPolarPicker::move |
( |
const QPoint & |
pos | ) |
[protected, virtual] |
Move the last point of the selection
- Parameters:
-
- See also:
- isActive, begin(), end(), append()
- Note:
- The moved(const QPoint &), moved(const QDoublePoint &) signals are emitted.
void QwtPolarPicker::moved |
( |
const QwtPointPolar & |
pos | ) |
[signal] |
A signal emitted whenever the last appended point of the selection has been moved.
- Parameters:
-
pos | Position of the moved last point of the selection. |
- See also:
- move(), appended()
QRect QwtPolarPicker::pickRect |
( |
| ) |
const [virtual] |
- Returns:
- Bounding rectangle of the region, where picking is supported.
- Returns:
- Plot widget, containing the observed plot canvas
- Returns:
- Plot widget, containing the observed plot canvas
void QwtPolarPicker::selected |
( |
const QVector< QwtPointPolar > & |
points | ) |
[signal] |
A signal emitting the selected points, at the end of a selection.
- Parameters:
-
void QwtPolarPicker::selected |
( |
const QwtPointPolar & |
pos | ) |
[signal] |
A signal emitted in case of selectionFlags() & PointSelection.
- Parameters:
-
QwtText QwtPolarPicker::trackerText |
( |
const QPoint & |
pos | ) |
const [protected, virtual] |
Translate a pixel position into a position string
- Parameters:
-
pos | Position in pixel coordinates |
- Returns:
- Position string
QwtText QwtPolarPicker::trackerTextPolar |
( |
const QwtPointPolar & |
pos | ) |
const [protected, virtual] |
Translate a position into a position string.
In case of HLineRubberBand the label is the value of the y position, in case of VLineRubberBand the value of the x position. Otherwise the label contains x and y position separated by a ',' .
The format for the double to string conversion is "%.4f".
- Parameters:
-
- Returns:
- Position string