23 #ifndef PLOTTERDIAGRAMCOMPRESSOR_H
24 #define PLOTTERDIAGRAMCOMPRESSOR_H
26 #include <QtCore/QObject>
27 #include <QtCore/QAbstractItemModel>
28 #if QT_VERSION < 0x050000
29 #include <QtCore/QWeakPointer>
31 #include <QtCore/QPointer>
33 #include <QtCore/QVector>
34 #include <QtCore/QDateTime>
53 :
key( std::numeric_limits< qreal >::quiet_NaN() ),
54 value( std::numeric_limits< qreal >::quiet_NaN() ),
59 const qreal dx =
key - other.
key;
61 return std::sqrt( dx * dx + dy * dy );
71 return !( *
this == other );
100 void handleSlopeForward(
const DataPoint &dp );
101 #if QT_VERSION < 0x050000
102 QWeakPointer< PlotterDiagramCompressor > m_parent;
104 QPointer< PlotterDiagramCompressor > m_parent;
111 QDateTime m_timeOfCreation;
136 Iterator
begin(
int dataSet );
137 Iterator
end(
int dataSet );
141 QAbstractItemModel*
model()
const;
142 DataPoint
data(
const CachePosition& pos )
const;
162 #endif // PLOTTERDIAGRAMCOMPRESSOR_H