Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
3rdparty
qwt
src
qwt_sampling_thread.h
Go to the documentation of this file.
1
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2
* Qwt Widget Library
3
* Copyright (C) 1997 Josef Wilgen
4
* Copyright (C) 2002 Uwe Rathmann
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the Qwt License, Version 1.0
8
*****************************************************************************/
9
10
#ifndef QWT_SAMPLING_THREAD_H
11
#define QWT_SAMPLING_THREAD_H
12
13
#include "
qwt_global.h
"
14
#include <qthread.h>
15
28
class
QWT_EXPORT
QwtSamplingThread
:
public
QThread
29
{
30
Q_OBJECT
31
32
public
:
33
virtual
~
QwtSamplingThread
();
34
35
double
interval()
const
;
36
double
elapsed
()
const
;
37
38
public
Q_SLOTS:
39
void
setInterval(
double
interval );
40
void
stop();
41
42
protected
:
43
explicit
QwtSamplingThread
( QObject *parent = NULL );
44
45
virtual
void
run
()
QWT_OVERRIDE
;
46
52
virtual
void
sample(
double
elapsed ) = 0;
53
54
private
:
55
class
PrivateData
;
56
PrivateData
*
d_data
;
57
};
58
59
#endif
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
elapsed
long elapsed(START_TIME_TYPE start_time)
Definition:
test1.c:233
qwt_global.h
QwtSamplingThread::PrivateData
Definition:
qwt_sampling_thread.cpp:13
mqttsas.run
def run()
Definition:
mqttsas.py:276
QwtSamplingThread::d_data
PrivateData * d_data
Definition:
qwt_sampling_thread.h:55
QWT_OVERRIDE
#define QWT_OVERRIDE
Definition:
qwt_global.h:53
QwtSamplingThread
A thread collecting samples at regular intervals.
Definition:
qwt_sampling_thread.h:28
plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:48:10