50 QwtPicker( rubberBand, trackerMode, canvas )
119 const QString text = QString::number( pos.
radius(),
'f', 4 )
120 +
", " + QString::number( pos.
azimuth(),
'f', 4 );
174 if ( points.count() == 0 )
183 switch ( selectionType )
195 for (
int i = 0; i < points.count(); i++ )
229 const QRect cr =
canvas()->contentsRect();
237 const QRect cr =
canvas()->contentsRect();
240 crPath.addRect( cr );
243 prPath.addEllipse(
plot()->plotRect( cr ) );
245 return crPath.intersected( prPath );
249 #include "moc_qwt_polar_picker.cpp"
virtual bool end(bool ok=true)
Close a selection setting the state to inactive.
A plotting widget, displaying a polar coordinate system.
DisplayMode trackerMode() const
A point in polar coordinates.
The state machine not usable for any type of selection.
virtual QRect pickRect() const
QWidget * parentWidget()
Return the parent widget, where the selection happens.
double radius() const
Returns the radius.
QwtPointPolar invTransform(const QPoint &) const
virtual bool end(bool ok=true) QWT_OVERRIDE
QwtPolarPicker(QwtPolarCanvas *)
Create a polar plot picker.
QwtPointPolar invTransform(const QPoint &) const
double azimuth() const
Returns the azimuth.
QPolygon selection() const
The state machine is for selecting a polygon (many points).
virtual void append(const QPoint &) QWT_OVERRIDE
void moved(const QwtPointPolar &pos)
const QwtPickerMachine * stateMachine() const
The state machine is for selecting a single point.
void selected(const QwtPointPolar &pos)
void appended(const QwtPointPolar &pos)
RubberBand rubberBand() const
A class representing a text.
virtual void move(const QPoint &)
Canvas of a QwtPolarPlot.
virtual QwtText trackerTextPolar(const QwtPointPolar &) const
Translate a position into a position string.
virtual QPainterPath pickArea() const QWT_OVERRIDE
SelectionType selectionType() const
Return the selection type.
virtual ~QwtPolarPicker()
Destructor.
virtual void move(const QPoint &) QWT_OVERRIDE
virtual QwtText trackerText(const QPoint &) const QWT_OVERRIDE
QwtPicker provides selections on a widget.
The state machine is for selecting a rectangle (2 points).
virtual void append(const QPoint &)
QwtPolarCanvas * canvas()