A thread collecting samples at regular intervals.
More...
#include <qwt_sampling_thread.h>
A thread collecting samples at regular intervals.
◆ ~QwtSamplingThread()
| QwtSamplingThread::~QwtSamplingThread |
( |
| ) |
|
|
virtual |
◆ QwtSamplingThread()
| QwtSamplingThread::QwtSamplingThread |
( |
QObject * |
parent = nullptr | ) |
|
|
explicitprotected |
◆ elapsed()
| double QwtSamplingThread::elapsed |
( |
| ) |
const |
Get the time (in ms) since the thread was started.
◆ interval()
| double QwtSamplingThread::interval |
( |
| ) |
const |
Get the interval (in ms), between 2 calls of sample()
◆ run()
| void QwtSamplingThread::run |
( |
| ) |
|
|
overrideprotectedvirtual |
Run the thread.
Loop collecting samples started from QThread::start()
◆ sample()
| virtual void QwtSamplingThread::sample |
( |
double |
elapsed | ) |
|
|
protectedpure virtual |
◆ setInterval
| void QwtSamplingThread::setInterval |
( |
double |
msecs | ) |
|
|
slot |
Change the interval (in ms), when sample() is called.
◆ stop
| void QwtSamplingThread::stop |
( |
| ) |
|
|
slot |
Terminate the collecting thread.
The documentation for this class was generated from the following files:
- /home/runner/work/QWT/QWT/src/plot/qwt_sampling_thread.h
- /home/runner/work/QWT/QWT/src/plot/qwt_sampling_thread.cpp