RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
scatterplot.h
Go to the documentation of this file.
1 /*
2  ScatterPlot, derived from IncrementalPlot. Includes a plot zoomer.
3  */
4 
5 #ifndef _SCATTERPLOT_H_
6 #define _SCATTERPLOT_H_ 1
7 
8 #include "incrementalplot.h"
9 #include <qwt_scale_draw.h>
10 #include <qwt_scale_widget.h>
11 #include <qwt_symbol.h>
12 
13 class QTimer;
14 
16 {
17  Q_OBJECT
18 
19 public:
20  ScatterPlot(QWidget* parent);
21  virtual ~ScatterPlot(){}; // virtual QSize sizeHint() const;
22  Zoomer* zoomer;
23 
24 signals:
25  void setNewBase(QwtScaleDiv* xscalediv, QwtScaleDiv* yscalediv);
26 
27 public slots:
28  void clear();
29 
30 private slots:
31  void appendPoint(double x, double y);
32  void appendPoint(double x, double y, QwtSymbol::Style s);
33 };
34 
35 #endif // _SCATTERPLOT_H_
Zoomer * zoomer
Definition: scatterplot.h:21
void appendPoint(double x, double y)
Definition: scatterplot.cpp:10
void setNewBase(QwtScaleDiv *xscalediv, QwtScaleDiv *yscalediv)
virtual ~ScatterPlot()
Definition: scatterplot.h:21
void clear()
Definition: scatterplot.cpp:22
ScatterPlot(QWidget *parent)
Definition: scatterplot.cpp:3