Section: Qwt User's Guide (3)Updated: 16 Nov 2004Local indexUp
NAME
QwtPlotPicker -
SYNOPSIS
Inherits QwtPicker.
Inherited by QwtPlotZoomer.
Detailed Description
QwtPlotPicker provides selections on a plot canvas.
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.
Warning:
Calling QwtPlot::setAxisScale() while QwtPlot::autoReplot() is FALSE leaves the axis in an 'intermediate' state. In this case, to prevent buggy behaviour, your must call QwtPlot::replot() before calling QwtPlotPicker::scaleRect(), QwtPlotZoomer::scaleRect(), QwtPlotPicker::QwtPlotPicker() or QwtPlotZoomer::QwtPlotZoomer(). This quirk will be removed in a future release.
QwtPlotPicker::QwtPlotPicker (QwtPlotCanvas * canvas, const char * name = 0)
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.
Parameters:
canvas Plot canvas to observe, also the parent object
name Object name
Warning:
Calling QwtPlot::setAxisScale() while QwtPlot::autoReplot() is FALSE leaves the axis in an 'intermediate' state. In this case, to prevent buggy behaviour, you must call QwtPlot::replot() before calling QwtPlotPicker(). This quirk will be removed in a future release.
Definition at line 38 of file qwt_plot_picker.cpp.
References QwtPlot::axisEnabled(), plot(), setAxis(), xAxis(), and yAxis().
QwtPlotPicker::QwtPlotPicker (int xAxis, int yAxis, QwtPlotCanvas * canvas, const char * name = 0)
Create a plot picker
Parameters:
xAxis Set the x axis of the picker
yAxis Set the y axis of the picker
canvas Plot canvas to observe, also the parent object
name Object name
Warning:
Calling QwtPlot::setAxisScale() while QwtPlot::autoReplot() is FALSE leaves the axis in an 'intermediate' state. In this case, to prevent buggy behaviour, you must call QwtPlot::replot() before calling QwtPlotPicker(). This quirk will be removed in a future release.
Definition at line 83 of file qwt_plot_picker.cpp.
QwtPlotPicker::QwtPlotPicker (int xAxis, int yAxis, int selectionFlags, RubberBand rubberBand, DisplayMode cursorLabelMode, QwtPlotCanvas * canvas, const char * name = 0)
Create a plot picker
Parameters:
xAxis X axis of the picker
yAxis Y axis of the picker
selectionFlags Or´d value of SelectionType, RectSelectionType and SelectionMode
rubberBand Rubberband style
cursorLabelMode Cursor label mode
canvas Plot canvas to observe, also the parent object
name Object name
Calling QwtPlot::setAxisScale() while QwtPlot::autoReplot() is FALSE leaves the axis in an 'intermediate' state. In this case, to prevent buggy behaviour, you must call QwtPlot::replot() before calling QwtPlotPicker(). This quirk will be removed in a future release.
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:
pos Position
Returns:
Position string
Definition at line 238 of file qwt_plot_picker.cpp.
References QwtPicker::rubberBand(), QwtDoublePoint::x(), and QwtDoublePoint::y().
Calling QwtPlot::setAxisScale() while QwtPlot::autoReplot() is FALSE leaves the axis in an 'intermediate' state. In this case, to prevent buggy behaviour, you must call QwtPlot::replot() before calling QwtPlotPicker::scaleRect(). This quirk will be removed in a future release.
See also:
QwtPlot::autoReplot(), QwtPlot::replot().
Definition at line 170 of file qwt_plot_picker.cpp.
References QwtPlot::axisScale(), QwtScaleDiv::hBound(), QwtScaleDiv::lBound(), plot(), xAxis(), and yAxis().
Referenced by QwtPlotZoomer::rescale(), QwtPlotZoomer::setAxis(), and QwtPlotZoomer::setZoomBase().