QwtSamplingThread(3) | Qwt User's Guide | QwtSamplingThread(3) |
QwtSamplingThread - A thread collecting samples at regular intervals.
#include <qwt_sampling_thread.h>
Inherits QThread.
void setInterval (double interval)
void stop ()
virtual ~QwtSamplingThread ()
Destructor. double interval () const
double elapsed () const
QwtSamplingThread (QObject *parent=NULL)
Constructor. virtual void run ()
virtual void sample (double elapsed)=0
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:
Returns:
See also:
Returns:
See also:
Loop collecting samples started from QThread::start()
See also:
Collect a sample
Parameters:
Change the interval (in ms), when sample() is called. The default interval is 1000.0 ( = 1s )
Parameters:
See also:
Terminate the collecting thread
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |