Go to the documentation of this file.
45 :
QwtPicker( rubberBand, trackerMode, canvas )
58 return qobject_cast< QwtPolarCanvas* >(
parentWidget() );
64 return qobject_cast< const QwtPolarCanvas* >(
parentWidget() );
113 const QString text = QString::number( pos.
radius(),
'f', 4 )
114 +
", " + QString::number( pos.
azimuth(),
'f', 4 );
168 if ( points.count() == 0 )
177 switch ( selectionType )
189 for (
int i = 0; i < points.count(); i++ )
223 const QRect cr =
canvas()->contentsRect();
231 const QRect cr =
canvas()->contentsRect();
234 crPath.addRect( cr );
237 prPath.addEllipse(
plot()->plotRect( cr ) );
239 return crPath.intersected( prPath );
243 #include "moc_qwt_polar_picker.cpp"
virtual void move(const QPoint &) QWT_OVERRIDE
A plotting widget, displaying a polar coordinate system.
@ NoSelection
The state machine not usable for any type of selection.
@ RectSelection
The state machine is for selecting a rectangle (2 points).
virtual bool end(bool ok=true) QWT_OVERRIDE
virtual ~QwtPolarPicker()
Destructor.
Canvas of a QwtPolarPlot.
QwtPolarPicker(QwtPolarCanvas *)
Create a polar plot picker.
QwtPointPolar invTransform(const QPoint &) const
virtual QwtText trackerTextPolar(const QwtPointPolar &) const
Translate a position into a position string.
virtual QPainterPath pickArea() const QWT_OVERRIDE
void selected(const QwtPointPolar &pos)
QwtPointPolar invTransform(const QPoint &) const
A point in polar coordinates.
virtual QRect pickRect() const
@ PointSelection
The state machine is for selecting a single point.
void moved(const QwtPointPolar &pos)
A class representing a text.
double azimuth() const
Returns the azimuth.
@ PolygonSelection
The state machine is for selecting a polygon (many points).
virtual void append(const QPoint &)
virtual void append(const QPoint &) QWT_OVERRIDE
virtual void move(const QPoint &)
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.
double radius() const
Returns the radius.
QwtPolarCanvas * canvas()
QWidget * parentWidget()
Return the parent widget, where the selection happens.
virtual QwtText trackerText(const QPoint &) const QWT_OVERRIDE
void appended(const QwtPointPolar &pos)
const QwtPickerMachine * stateMachine() const
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46