18 #ifndef _INCREMENTAL_PLOT_HH_ 19 #define _INCREMENTAL_PLOT_HH_ 24 #include <qwt/qwt_plot_magnifier.h> 25 #include <qwt/qwt_plot.h> 33 class QwtPlotDirectPainter;
53 public:
virtual QSize sizeHint()
const;
59 public slots:
void Add(
const QString &_label,
const QPointF &_pt);
65 public slots:
void Add(
const QString &_label,
66 const std::list<QPointF> &_pts);
70 public:
void Clear(
const QString &_label);
78 public:
bool HasCurve(
const QString &_label);
81 public:
void Update();
85 protected:
void dragEnterEvent(QDragEnterEvent *_evt);
89 protected:
void dropEvent(QDropEvent *_evt);
93 private:
void AdjustCurve(QwtPlotCurve *_curve);
98 private: QwtPlotCurve *AddCurve(
const QString &_label);
102 private:
typedef std::map<QString, QwtPlotCurve *> CurveMap;
105 private: CurveMap curves;
108 private: QwtPlotDirectPainter *directPainter;
111 private: QwtPlotMagnifier *magnifier;
Forward declarations for the common classes.
Definition: Animation.hh:33
#define NULL
Definition: CommonTypes.hh:31
A plotting widget that handles incremental addition of data.
Definition: IncrementalPlot.hh:40