| Qwt User's Guide
    6.0.2
    | 
#include <qwt_sampling_thread.h>
| Public Slots | |
| void | setInterval (double interval) | 
| void | stop () | 
| Public Member Functions | |
| virtual | ~QwtSamplingThread () | 
| double | elapsed () const | 
| double | interval () const | 
| Protected Member Functions | |
| QwtSamplingThread (QObject *parent=NULL) | |
| virtual void | run () | 
| virtual void | sample (double elapsed)=0 | 
A thread collecting samples at regular intervals.
Contiounous signals are converted into a discrete signal by collecting samples at regular intervals. A discrete signal can be displayed by a QwtPlotSeriesItem on a QwtPlot widget.
QwtSamplingThread starts a thread calling perodically sample(), to collect and store ( or emit ) a single sample.
| double QwtSamplingThread::elapsed | ( | ) | const | 
| double QwtSamplingThread::interval | ( | ) | const | 
| 
 | protectedvirtual | 
Loop collecting samples started from QThread::start()
| 
 | protectedpure virtual | 
Collect a sample
| elapsed | Time since the thread was started in miliseconds | 
| 
 | slot | 
Change the interval (in ms), when sample() is called. The default interval is 1000.0 ( = 1s )
| interval | Interval | 
| 
 | slot | 
Terminate the collecting thread
 1.8.1
 1.8.1