Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_sampling_thread.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_sampling_thread.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_sampling_thread.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 8 8 *****************************************************************************/ 9 9 10 #ifndef _QWT_SAMPLING_THREAD_H_11 #define _QWT_SAMPLING_THREAD_H_10 #ifndef QWT_SAMPLING_THREAD_H 11 #define QWT_SAMPLING_THREAD_H 12 12 13 13 #include "qwt_global.h" … … 15 15 16 16 /*! 17 \brief A thread collecting samples at regular intervals. 17 \brief A thread collecting samples at regular intervals. 18 18 19 Continuous signals are converted into a discrete signal by 20 collecting samples at regular intervals. A discrete signal 21 can be displayed by a QwtPlotSeriesItem on a QwtPlot widget. 19 Continuous signals are converted into a discrete signal by 20 collecting samples at regular intervals. A discrete signal 21 can be displayed by a QwtPlotSeriesItem on a QwtPlot widget. 22 22 23 QwtSamplingThread starts a thread calling periodically sample(), 24 to collect and store ( or emit ) a single sample. 23 QwtSamplingThread starts a thread calling periodically sample(), 24 to collect and store ( or emit ) a single sample. 25 25 26 \sa QwtPlotCurve, QwtPlotSeriesItem 27 */ 28 class QWT_EXPORT QwtSamplingThread: public QThread 26 \sa QwtPlotCurve, QwtPlotSeriesItem 27 */ 28 class QWT_EXPORT QwtSamplingThread : public QThread 29 29 { 30 30 Q_OBJECT 31 31 32 public: 32 public: 33 33 virtual ~QwtSamplingThread(); 34 34 … … 36 36 double elapsed() const; 37 37 38 public Q_SLOTS: 38 public Q_SLOTS: 39 39 void setInterval( double interval ); 40 40 void stop(); 41 41 42 protected: 43 explicit QwtSamplingThread( QObject *parent = NULL );42 protected: 43 explicit QwtSamplingThread( QObject* parent = NULL ); 44 44 45 virtual void run(); 45 virtual void run() QWT_OVERRIDE; 46 46 47 47 /*! 48 48 Collect a sample 49 49 50 \param elapsed Time since the thread was started in milliseconds 50 \param elapsed Time since the thread was started in seconds 51 \note Due to a bug in previous version elapsed was passed as 52 seconds instead of miliseconds. To avoid breaking existing 53 code we stay with seconds for now. 51 54 */ 52 55 virtual void sample( double elapsed ) = 0; 53 56 54 private: 57 private: 55 58 class PrivateData; 56 PrivateData *d_data;59 PrivateData* m_data; 57 60 }; 58 61
Note:
See TracChangeset
for help on using the changeset viewer.
