Inheritance diagram for QwtPlotPicker:
QwtPlotPicker is a QwtPicker tailored for selections on a plot canvas. It is set to a x-Axis and y-Axis and translates all pixel coordinates into this coodinate system.
Public Member Functions | |
QwtPlotPicker (QwtPlotCanvas *, const char *name=0) | |
QwtPlotPicker (int xAxis, int yAxis, QwtPlotCanvas *, const char *name=0) | |
QwtPlotPicker (int xAxis, int yAxis, int selectionFlags, RubberBand rubberBand, DisplayMode cursorLabelMode, QwtPlotCanvas *, const char *name=0) | |
virtual void | setAxis (int xAxis, int yAxis) |
int | xAxis () const |
int | yAxis () const |
QwtPlot * | plot () |
const QwtPlot * | plot () const |
QwtPlotCanvas * | canvas () |
const QwtPlotCanvas * | canvas () const |
Protected Member Functions | |
void | selected (const QwtDoublePoint &pos) |
void | selected (const QwtDoubleRect &rect) |
void | selected (const QwtArray< QwtDoublePoint > &pa) |
void | appended (const QwtDoublePoint &pos) |
void | moved (const QwtDoublePoint &pos) |
QwtDoubleRect | scaleRect () const |
QwtDoubleRect | invTransform (const QRect &) const |
QRect | transform (const QwtDoubleRect &) const |
QwtDoublePoint | invTransform (const QPoint &) const |
QPoint | transform (const QwtDoublePoint &) const |
virtual QString | cursorLabel (const QPoint &) const |
virtual QString | cursorLabel (const QwtDoublePoint &) const |
virtual void | move (const QPoint &) |
virtual void | append (const QPoint &) |
virtual bool | end (bool ok=TRUE) |
|
Create a plot picker. The picker is set to those x- and y-axis of the plot that are enabled. If both or no x-axis are enabled, the picker is set to QwtPlot::xBottom. If both or no y-axis are enabled, it is set to QwtPlot::yLeft.
|
|
Create a plot picker
|
|
Create a plot picker
|
|
Append a point to the selection and update rubberband and cursor label.
Reimplemented from QwtPicker. |
|
A signal emitted when a point has been appended to the selection
|
|
Return Observed plot canvas.
|
|
Return observed plot canvas.
|
|
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".
|
|
Translate a pixel position into a position string
Reimplemented from QwtPicker. |
|
Close a selection setting the state to inactive.
Reimplemented from QwtPicker. Reimplemented in QwtPlotZoomer. |
|
Translate a point from pixel into plot coordinates
|
|
Translate a rectangle from pixel into plot coordinates
|
|
Move the last point of the selection
Reimplemented from QwtPicker. |
|
A signal emitted whenever the last appended point of the selection has been moved.
|
|
Return plot widget, containing the observed plot canvas.
|
|
Return plot widget, containing the observed plot canvas.
|
|
Return normalized bounding rect of the axes.
|
|
A signal emitting the selected points, at the end of a selection.
|
|
A signal emitted in case of selectionFlags() & RectSelection.
|
|
A signal emitted in case of selectionFlags() & PointSelection.
|
|
Set the x and y axes of the picker
Reimplemented in QwtPlotZoomer. |
|
Translate a point from plot into pixel coordinates
|
|
Translate a rectangle from plot into pixel coordinates
|
|
Return x axis.
|
|
Return y axis.
|