table of contents
- bookworm 6.1.4-2
- testing 6.1.4-2
- unstable 6.1.4-2
- experimental 6.2.0-1
QwtSamplingThread(3) | Qwt User's Guide | QwtSamplingThread(3) |
NAME¶
QwtSamplingThread - A thread collecting samples at regular intervals.
SYNOPSIS¶
#include <qwt_sampling_thread.h>
Inherits QThread.
Public Slots¶
void setInterval (double interval)
void stop ()
Public Member Functions¶
virtual ~QwtSamplingThread ()
Destructor. double interval () const
double elapsed () const
Protected Member Functions¶
QwtSamplingThread (QObject *parent=NULL)
Constructor. virtual void run ()
virtual void sample (double elapsed)=0
Detailed Description¶
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:
Member Function Documentation¶
double QwtSamplingThread::elapsed () const¶
Returns:
See also:
double QwtSamplingThread::interval () const¶
Returns:
See also:
void QwtSamplingThread::run () [protected], [virtual]¶
Loop collecting samples started from QThread::start()
See also:
virtual void QwtSamplingThread::sample (double elapsed) [protected], [pure virtual]¶
Collect a sample
Parameters:
void QwtSamplingThread::setInterval (double interval) [slot]¶
Change the interval (in ms), when sample() is called. The default interval is 1000.0 ( = 1s )
Parameters:
See also:
void QwtSamplingThread::stop () [slot]¶
Terminate the collecting thread
See also:
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |