A thread collecting samples at regular intervals.
#include <qwt_sampling_thread.h>
void setInterval (double interval)
void stop ()
virtual ~QwtSamplingThread ()
double interval () const
double elapsed () const
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.
See also:
QwtPlotCurve, QwtPlotSeriesItem
Destructor.
Constructor.
Time (in ms) since the thread was started
See also:
QThread::start(), run()
Interval (in ms), between 2 calls of sample()
See also:
setInterval()
See also:
stop()
Parameters:
elapsed Time since the thread was started in miliseconds
Parameters:
interval Interval
See also:
interval()
See also:
QThread::start(), run()
Generated automatically by Doxygen for Qwt User's Guide from the source code.