Go to the documentation of this file.
100 :
QwtPicker( rubberBand, trackerMode, canvas )
130 w = w->parentWidget();
132 return qobject_cast< QwtPlot* >( w );
138 const QWidget* w =
canvas();
140 w = w->parentWidget();
142 return qobject_cast< const QwtPlot* >( w );
160 rect = rect.normalized();
205 if (
plot() == NULL )
230 text = QString::number( pos.y(),
'f', 4 );
233 text = QString::number( pos.x(),
'f', 4 );
236 text = QString::number( pos.x(),
'f', 4 )
237 +
", " + QString::number( pos.y(),
'f', 4 );
291 if ( points.count() == 0 )
300 switch ( selectionType )
310 if ( points.count() >= 2 )
312 const QPoint p1 = points.first();
313 const QPoint p2 = points.last();
315 const QRect rect = QRect( p1, p2 ).normalized();
323 for (
int i = 0; i < points.count(); i++ )
394 #include "moc_qwt_plot_picker.cpp"
virtual ~QwtPlotPicker()
Destructor.
@ NoSelection
The state machine not usable for any type of selection.
@ RectSelection
The state machine is for selecting a rectangle (2 points).
double invTransform(double p) const
void appended(const QPointF &pos)
QRectF invTransform(const QRect &) const
void selected(const QPointF &pos)
virtual void move(const QPoint &) QWT_OVERRIDE
double lowerBound() const
@ VLineRubberBand
A vertical line ( only for QwtPickerMachine::PointSelection )
@ YLeft
Y axis left of the canvas.
@ PointSelection
The state machine is for selecting a single point.
QRect transform(const QRectF &) const
QwtAxisId xAxis() const
Return x axis.
A class representing a text.
void moved(const QPointF &pos)
virtual QwtText trackerText(const QPoint &) const QWT_OVERRIDE
virtual bool end(bool ok=true) QWT_OVERRIDE
@ PolygonSelection
The state machine is for selecting a polygon (many points).
virtual void append(const QPoint &) QWT_OVERRIDE
@ HLineRubberBand
A horizontal line ( only for QwtPickerMachine::PointSelection )
double transform(double s) const
const QwtScaleDiv & axisScaleDiv(QwtAxisId) const
Return the scale division of a specified axis.
int QwtAxisId
Axis identifier.
virtual void append(const QPoint &)
virtual void move(const QPoint &)
QwtAxisId yAxis() const
Return y axis.
QPolygon selection() const
virtual bool end(bool ok=true)
Close a selection setting the state to inactive.
SelectionType selectionType() const
Return the selection type.
QwtPicker provides selections on a widget.
@ XTop
X axis above the canvas.
virtual QwtText trackerTextF(const QPointF &) const
Translate a position into a position string.
QWidget * parentWidget()
Return the parent widget, where the selection happens.
A class representing a scale division.
QwtPlotPicker(QWidget *canvas)
Create a plot picker.
virtual QwtScaleMap canvasMap(QwtAxisId) const
bool isAxisVisible(QwtAxisId) const
@ YRight
Y axis right of the canvas.
const QwtPickerMachine * stateMachine() const
virtual void setAxes(QwtAxisId xAxisId, QwtAxisId yAxisId)
@ XBottom
X axis below the canvas.
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46