Loading...
Searching...
No Matches
qwt_polar_picker.h
/******************************************************************************
* QwtPolar Widget Library
* Copyright (C) 2008 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
*****************************************************************************/
#ifndef QWT_POLAR_PICKER_H
#define QWT_POLAR_PICKER_H
#include "qwt_global.h"
#include "qwt_picker.h"
#include <qvector.h>
#include <qpainterpath.h>
class QwtPolarPlot;
class QwtPolarCanvas;
class QwtPointPolar;
class QWT_EXPORT QwtPolarPicker : public QwtPicker
{
Q_OBJECT
public:
explicit QwtPolarPicker( QwtPolarCanvas* );
virtual ~QwtPolarPicker();
explicit QwtPolarPicker(
RubberBand rubberBand, DisplayMode trackerMode,
QwtPolarCanvas* );
QwtPolarPlot* plot();
const QwtPolarPlot* plot() const;
QwtPolarCanvas* canvas();
const QwtPolarCanvas* canvas() const;
virtual QRect pickRect() const;
Q_SIGNALS:
void selected( const QwtPointPolar& pos );
void selected( const QVector< QwtPointPolar >& points );
void appended( const QwtPointPolar& pos );
void moved( const QwtPointPolar& pos );
protected:
QwtPointPolar invTransform( const QPoint& ) const;
virtual QwtText trackerText( const QPoint& ) const QWT_OVERRIDE;
virtual QwtText trackerTextPolar( const QwtPointPolar& ) const;
virtual void move( const QPoint& ) QWT_OVERRIDE;
virtual void append( const QPoint& ) QWT_OVERRIDE;
virtual bool end( bool ok = true ) QWT_OVERRIDE;
private:
virtual QPainterPath pickArea() const QWT_OVERRIDE;
class PrivateData;
PrivateData* m_data;
};
#endif
QVector
Definition qwt_clipper.h:23
QwtPicker
QwtPicker provides selections on a widget.
Definition qwt_picker.h:104
QwtPicker::DisplayMode
DisplayMode
Display mode.
Definition qwt_picker.h:162
QwtPicker::move
virtual void move(const QPoint &)
Definition qwt_picker.cpp:1357
QwtPicker::append
virtual void append(const QPoint &)
Definition qwt_picker.cpp:1339
QwtPicker::RubberBand
RubberBand
Definition qwt_picker.h:128
QwtPicker::trackerText
virtual QwtText trackerText(const QPoint &pos) const
Return the label for a position.
Definition qwt_picker.cpp:491
QwtPicker::end
virtual bool end(bool ok=true)
Close a selection setting the state to inactive.
Definition qwt_picker.cpp:1291
QwtPointPolar
A point in polar coordinates.
Definition qwt_point_polar.h:29
QwtPolarCanvas
Canvas of a QwtPolarPlot.
Definition qwt_polar_canvas.h:28
QwtPolarPicker
QwtPolarPicker provides selections on a plot canvas.
Definition qwt_polar_picker.h:29
QwtPolarPicker::selected
void selected(const QwtPointPolar &pos)
QwtPolarPicker::moved
void moved(const QwtPointPolar &pos)
QwtPolarPicker::appended
void appended(const QwtPointPolar &pos)
QwtPolarPicker::selected
void selected(const QVector< QwtPointPolar > &points)
QwtPolarPlot
A plotting widget, displaying a polar coordinate system.
Definition qwt_polar_plot.h:47
QwtText
A class representing a text.
Definition qwt_text.h:52