Add files from zip
This commit is contained in:
157
doc/man/man3/QwtSamplingThread.3
Normal file
157
doc/man/man3/QwtSamplingThread.3
Normal file
@@ -0,0 +1,157 @@
|
||||
.TH "QwtSamplingThread" 3 "Sun Jul 18 2021" "Version 6.2.0" "Qwt User's Guide" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
QwtSamplingThread \- A thread collecting samples at regular intervals\&.
|
||||
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.PP
|
||||
\fC#include <qwt_sampling_thread\&.h>\fP
|
||||
.PP
|
||||
Inherits QThread\&.
|
||||
.SS "Public Slots"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "void \fBsetInterval\fP (double \fBinterval\fP)"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "void \fBstop\fP ()"
|
||||
.br
|
||||
.in -1c
|
||||
.SS "Public Member Functions"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "virtual \fB~QwtSamplingThread\fP ()"
|
||||
.br
|
||||
.RI "Destructor\&. "
|
||||
.ti -1c
|
||||
.RI "double \fBinterval\fP () const"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "double \fBelapsed\fP () const"
|
||||
.br
|
||||
.in -1c
|
||||
.SS "Protected Member Functions"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "\fBQwtSamplingThread\fP (QObject *parent=NULL)"
|
||||
.br
|
||||
.RI "Constructor\&. "
|
||||
.ti -1c
|
||||
.RI "virtual void \fBrun\fP () override"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "virtual void \fBsample\fP (double \fBelapsed\fP)=0"
|
||||
.br
|
||||
.in -1c
|
||||
.SH "Detailed Description"
|
||||
.PP
|
||||
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 \fBQwtPlotSeriesItem\fP on a \fBQwtPlot\fP widget\&.
|
||||
.PP
|
||||
\fBQwtSamplingThread\fP starts a thread calling periodically \fBsample()\fP, to collect and store ( or emit ) a single sample\&.
|
||||
.PP
|
||||
\fBSee also\fP
|
||||
.RS 4
|
||||
\fBQwtPlotCurve\fP, \fBQwtPlotSeriesItem\fP
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 28 of file qwt_sampling_thread\&.h\&.
|
||||
.SH "Member Function Documentation"
|
||||
.PP
|
||||
.SS "double QwtSamplingThread::elapsed () const"
|
||||
|
||||
.PP
|
||||
\fBReturns\fP
|
||||
.RS 4
|
||||
Time (in ms) since the thread was started
|
||||
.RE
|
||||
.PP
|
||||
\fBSee also\fP
|
||||
.RS 4
|
||||
QThread::start(), \fBrun()\fP
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 62 of file qwt_sampling_thread\&.cpp\&.
|
||||
.SS "double QwtSamplingThread::interval () const"
|
||||
|
||||
.PP
|
||||
\fBReturns\fP
|
||||
.RS 4
|
||||
Interval (in ms), between 2 calls of \fBsample()\fP
|
||||
.RE
|
||||
.PP
|
||||
\fBSee also\fP
|
||||
.RS 4
|
||||
\fBsetInterval()\fP
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 53 of file qwt_sampling_thread\&.cpp\&.
|
||||
.SS "void QwtSamplingThread::run ()\fC [override]\fP, \fC [protected]\fP, \fC [virtual]\fP"
|
||||
Loop collecting samples started from QThread::start()
|
||||
.PP
|
||||
\fBSee also\fP
|
||||
.RS 4
|
||||
\fBstop()\fP
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 83 of file qwt_sampling_thread\&.cpp\&.
|
||||
.SS "virtual void QwtSamplingThread::sample (double elapsed)\fC [protected]\fP, \fC [pure virtual]\fP"
|
||||
Collect a sample
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fIelapsed\fP Time since the thread was started in seconds
|
||||
.RE
|
||||
.PP
|
||||
\fBNote\fP
|
||||
.RS 4
|
||||
Due to a bug in previous version elapsed was passed as seconds instead of miliseconds\&. To avoid breaking existing code we stay with seconds for now\&.
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "void QwtSamplingThread::setInterval (double msecs)\fC [slot]\fP"
|
||||
Change the interval (in ms), when \fBsample()\fP is called\&. The default interval is 1000\&.0 ( = 1s )
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fImsecs\fP Interval
|
||||
.RE
|
||||
.PP
|
||||
\fBSee also\fP
|
||||
.RS 4
|
||||
\fBinterval()\fP
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 41 of file qwt_sampling_thread\&.cpp\&.
|
||||
.SS "void QwtSamplingThread::stop ()\fC [slot]\fP"
|
||||
Terminate the collecting thread
|
||||
.PP
|
||||
\fBSee also\fP
|
||||
.RS 4
|
||||
QThread::start(), \fBrun()\fP
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 74 of file qwt_sampling_thread\&.cpp\&.
|
||||
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Qwt User's Guide from the source code\&.
|
||||
Reference in New Issue
Block a user