qwt_sampling_thread.h
Go to the documentation of this file.
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;
48 };
49 
50 #endif
#define QWT_EXPORT
Definition: qwt_global.h:38
A thread collecting samples at regular intervals.


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17