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;
130 return first == rhs.
first &&
141 QAbstractItemModel*
model()
const;
162 #endif // PLOTTERDIAGRAMCOMPRESSOR_H qreal distance(const DataPoint &other)
bool operator==(const CachePosition &rhs) const
void setModel(QAbstractItemModel *model)
void setMergeRadiusPercentage(qreal radius)
bool operator!=(const DataPoint &other)
DataPoint data(const CachePosition &pos) const
CachePosition(int first, int second)
Iterator end(int dataSet)
PlotterDiagramCompressor(QObject *parent=0)
void setMaxSlopeChange(qreal value)
QAbstractItemModel * model() const
void setMergeRadius(qreal radius)
void setCompressionModel(CompressionMode value)
bool operator==(const DataPoint &other)
QVector< DataPoint > DataPointVector
~PlotterDiagramCompressor() override
QPair< QPointF, QPointF > dataBoundaries() const
Class only listed here to document inheritance of some KDChart classes.
void setForcedDataBoundaries(const QPair< qreal, qreal > &bounds, Qt::Orientation direction)
Iterator begin(int dataSet)
qreal maxSlopeChange() const