A thread collecting samples at regular intervals.
More...
#include <qwt_sampling_thread.h>
A thread collecting samples at regular intervals.
Continuous 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 periodically sample(), to collect and store ( or emit ) a single sample.
- See also
- QwtPlotCurve, QwtPlotSeriesItem
Definition at line 19 of file qwt_sampling_thread.h.
QwtSamplingThread::~QwtSamplingThread |
( |
| ) |
|
|
virtual |
QwtSamplingThread::QwtSamplingThread |
( |
QObject * |
parent = NULL | ) |
|
|
explicitprotected |
double QwtSamplingThread::elapsed |
( |
| ) |
const |
double QwtSamplingThread::interval |
( |
| ) |
const |
void QwtSamplingThread::run |
( |
| ) |
|
|
protectedvirtual |
virtual void QwtSamplingThread::sample |
( |
double |
elapsed | ) |
|
|
protectedpure virtual |
Collect a sample
- Parameters
-
elapsed | Time since the thread was started in milliseconds |
void QwtSamplingThread::setInterval |
( |
double |
interval | ) |
|
|
slot |
void QwtSamplingThread::stop |
( |
| ) |
|
|
slot |
The documentation for this class was generated from the following files: