Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

qwtsamplingthread(3) [debian man page]

QwtSamplingThread(3)						 Qwt User's Guide					      QwtSamplingThread(3)

NAME
QwtSamplingThread - A thread collecting samples at regular intervals. SYNOPSIS
#include <qwt_sampling_thread.h> Public Slots void setInterval (double interval) void stop () Public Member Functions virtual ~QwtSamplingThread () double interval () const double elapsed () const Protected Member Functions QwtSamplingThread (QObject *parent=NULL) virtual void run () virtual void sample (double elapsed)=0 Detailed Description 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 Constructor &; Destructor Documentation QwtSamplingThread::~QwtSamplingThread () [virtual] Destructor. QwtSamplingThread::QwtSamplingThread (QObject *parent = NULL) [explicit, protected] Constructor. Member Function Documentation double QwtSamplingThread::elapsed () const Returns: Time (in ms) since the thread was started See also: QThread::start(), run() double QwtSamplingThread::interval () const Returns: Interval (in ms), between 2 calls of sample() See also: setInterval() void QwtSamplingThread::run () [protected, virtual] Loop collecting samples started from QThread::start() See also: stop() virtual void QwtSamplingThread::sample (doubleelapsed) [protected, pure virtual] Collect a sample Parameters: elapsed Time since the thread was started in miliseconds void QwtSamplingThread::setInterval (doubleinterval) [slot] Change the interval (in ms), when sample() is called. The default interval is 1000.0 ( = 1s ) Parameters: interval Interval See also: interval() void QwtSamplingThread::stop () [slot] Terminate the collecting thread See also: QThread::start(), run() Author Generated automatically by Doxygen for Qwt User's Guide from the source code. Version 6.0.0 Fri Apr 15 2011 QwtSamplingThread(3)

Check Out this Related Man Page

QwtPlotSeriesItem(3)						 Qwt User's Guide					      QwtPlotSeriesItem(3)

NAME
QwtPlotSeriesItem - Class template for plot items representing a series of samples. SYNOPSIS
#include <qwt_plot_seriesitem.h> Inherits QwtPlotAbstractSeriesItem. Public Member Functions QwtPlotSeriesItem (const QString &title=QString::null) QwtPlotSeriesItem (const QwtText &title) virtual ~QwtPlotSeriesItem () void setData (QwtSeriesData< T > *) QwtSeriesData< T > * data () const QwtSeriesData< T > * data () const size_t dataSize () const T sample (int index) const virtual QRectF boundingRect () const virtual void updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &) Protected Attributes QwtSeriesData< T > * d_series Detailed Description template<typename T> class QwtPlotSeriesItem< T > Class template for plot items representing a series of samples. Constructor &; Destructor Documentation template<typename T > QwtPlotSeriesItem< T >::QwtPlotSeriesItem (const QString &title = QString::null) [explicit] Constructor Parameters: title Title of the series item template<typename T > QwtPlotSeriesItem< T >::QwtPlotSeriesItem (const QwtText &title) [explicit] Constructor Parameters: title Title of the series item template<typename T > QwtPlotSeriesItem< T >::~QwtPlotSeriesItem () [virtual] Destructor. Member Function Documentation template<typename T > QRectF QwtPlotSeriesItem< T >::boundingRect () const [virtual] Returns: Bounding rectangle of the data. If there is no bounding rect, like for empty data the rectangle is invalid. See also: QwtSeriesData<T>::boundingRect(), QRectF::isValid() Reimplemented from QwtPlotItem. Reimplemented in QwtPlotHistogram, and QwtPlotIntervalCurve. template<typename T > QwtSeriesData< T > * QwtPlotSeriesItem< T >::data () [inline] Returns: the the curve data template<typename T > const QwtSeriesData< T > * QwtPlotSeriesItem< T >::data () const [inline] Returns: the the curve data template<typename T > size_t QwtPlotSeriesItem< T >::dataSize () const Return the size of the data arrays See also: setData() template<typename T > T QwtPlotSeriesItem< T >::sample (intindex) const [inline] Parameters: index Index Returns: Sample at position index template<typename T> void QwtPlotSeriesItem< T >::setData (QwtSeriesData< T > *data) Assign a series of samples Parameters: data Data Warning: The item takes ownership of the data object, deleting it when its not used anymore. template<typename T > void QwtPlotSeriesItem< T >::updateScaleDiv (const QwtScaleDiv &xScaleDiv, const QwtScaleDiv &yScaleDiv) [virtual] Update the rect of interest according to the current scale ranges Parameters: xScaleDiv Scale division of the x-axis yScaleDiv Scale division of the y-axis See also: QwtSeriesData<T>::setRectOfInterest() Reimplemented from QwtPlotItem. Member Data Documentation template<typename T> QwtSeriesData<T>* QwtPlotSeriesItem< T >::d_series [protected] Series. Author Generated automatically by Doxygen for Qwt User's Guide from the source code. Version 6.0.0 Fri Apr 15 2011 QwtPlotSeriesItem(3)
Man Page