You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
549 B
34 lines
549 B
|
3 years ago
|
#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
|