qt_demoe/third/qwtdemo/examples/oscilloscope/signaldata.h

34 lines
549 B
C
Raw Normal View History

2019-11-07 02:55:57 +00:00
#ifndef _SIGNAL_DATA_H_
#define _SIGNAL_DATA_H_ 1
#include <qrect.h>
class SignalData
{
public:
static SignalData &instance();
void append( const QPointF &pos );
void clearStaleValues( double min );
int size() const;
QPointF value( int index ) const;
QRectF boundingRect() const;
void lock();
void unlock();
private:
SignalData();
SignalData( const SignalData & );
SignalData &operator=( const SignalData & );
virtual ~SignalData();
class PrivateData;
PrivateData *d_data;
};
#endif