~ubuntu-branches/ubuntu/saucy/goldencheetah/saucy

« back to all changes in this revision

Viewing changes to qwt/examples/data_plot/data_plot.h

  • Committer: Package Import Robot
  • Author(s): KURASHIKI Satoru
  • Date: 2013-08-18 07:02:45 UTC
  • mfrom: (4.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130818070245-zgdvb47e1k3mtgil
Tags: 3.0-3
debian/control: remove needless dependency. (Closes: #719571)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _DATA_PLOT_H
2
 
#define _DATA_PLOT_H 1
3
 
 
4
 
#include <qwt_plot.h>
5
 
 
6
 
const int PLOT_SIZE = 201;      // 0 to 200
7
 
 
8
 
class DataPlot : public QwtPlot
9
 
{
10
 
    Q_OBJECT
11
 
 
12
 
public:
13
 
    DataPlot(QWidget* = NULL);
14
 
 
15
 
public slots:
16
 
    void setTimerInterval(double interval);
17
 
 
18
 
protected:
19
 
    virtual void timerEvent(QTimerEvent *e);
20
 
 
21
 
private:
22
 
    void alignScales();
23
 
 
24
 
    double d_x[PLOT_SIZE]; 
25
 
    double d_y[PLOT_SIZE]; 
26
 
    double d_z[PLOT_SIZE];
27
 
 
28
 
    int d_interval; // timer in ms
29
 
    int d_timerId;
30
 
};
31
 
 
32
 
#endif