Qwt User's Guide: qwt_sampling_thread.h Source File

Qwt User's Guide 6.1.2

- Main Page
- Related Pages
- Classes

All Classes Functions Variables Typedefs Enumerations Enumerator Pages
qwt_sampling_thread.h
1 #ifndef _QWT_SAMPLING_THREAD_H_
2 #define _QWT_SAMPLING_THREAD_H_
3
4 #include "qwt_global.h"
5 #include <qthread.h>
6
19 class QWT_EXPORT QwtSamplingThread: public QThread
20 {
21 Q_OBJECT
22
23 public:
24 virtual ~QwtSamplingThread();
25
26 double interval() const;
27 double elapsed() const;
28
29 public Q_SLOTS:
30 void setInterval( double interval );
31 void stop();
32
33 protected:
34 explicit QwtSamplingThread( QObject *parent = NULL );
35
36 virtual void run();
37
43 virtual void sample( double elapsed ) = 0;
44
45 private:
46 class PrivateData;
47 PrivateData *d_data;
48 };
49
50 #endif
QwtSamplingThread
A thread collecting samples at regular intervals.
Definition: qwt_sampling_thread.h:19