File: randomplot.h

package info (click to toggle)
qwt5 5.2.2-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 13,340 kB
  • sloc: cpp: 32,645; makefile: 23; sh: 4
file content (35 lines) | stat: -rw-r--r-- 499 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef _RANDOMPLOT_H_
#define _RANDOMPLOT_H_ 1

#include "incrementalplot.h"

class QTimer;

class RandomPlot: public IncrementalPlot
{
    Q_OBJECT

public:
    RandomPlot(QWidget *parent);

    virtual QSize sizeHint() const;

signals:
    void running(bool);

public slots:
    void clear();
    void stop();
    void append(int timeout, int count);

private slots:
    void appendPoint();

private:
    void initCurve();

    QTimer *d_timer;
    int d_timerCount;
};

#endif // _RANDOMPLOT_H_