KD Chart 2
[rev.2.7]
|
#include <KDChartPlotterDiagramCompressor.h>
Classes | |
class | CachePosition |
class | DataPoint |
class | Iterator |
Public Types | |
enum | CompressionMode { SLOPE = 0, DISTANCE, BOTH } |
typedef QVector< DataPoint > | DataPointVector |
Signals | |
void | boundariesChanged () |
void | rowCountChanged () |
Public Member Functions | |
Iterator | begin (int dataSet) |
void | cleanCache () |
DataPoint | data (const CachePosition &pos) const |
QPair< QPointF, QPointF > | dataBoundaries () const |
int | datasetCount () const |
Iterator | end (int dataSet) |
qreal | maxSlopeChange () const |
QAbstractItemModel * | model () const |
PlotterDiagramCompressor (QObject *parent=0) | |
int | rowCount () const |
void | setCompressionModel (CompressionMode value) |
void | setForcedDataBoundaries (const QPair< qreal, qreal > &bounds, Qt::Orientation direction) |
void | setMaxSlopeChange (qreal value) |
void | setMergeRadius (qreal radius) |
void | setMergeRadiusPercentage (qreal radius) |
void | setModel (QAbstractItemModel *model) |
~PlotterDiagramCompressor () override | |
Definition at line 43 of file KDChartPlotterDiagramCompressor.h.
Definition at line 114 of file KDChartPlotterDiagramCompressor.h.
Enumerator | |
---|---|
SLOPE | |
DISTANCE | |
BOTH |
Definition at line 49 of file KDChartPlotterDiagramCompressor.h.
|
explicit |
Definition at line 789 of file KDChartPlotterDiagramCompressor.cpp.
Referenced by KDChart::PlotterDiagramCompressor::CachePosition::operator==().
|
override |
Definition at line 795 of file KDChartPlotterDiagramCompressor.cpp.
References d.
Referenced by KDChart::PlotterDiagramCompressor::CachePosition::operator==().
PlotterDiagramCompressor::Iterator PlotterDiagramCompressor::begin | ( | int | dataSet | ) |
Definition at line 926 of file KDChartPlotterDiagramCompressor.cpp.
References d.
Referenced by KDChart::PlotterDiagramCompressor::CachePosition::operator==().
|
signal |
void PlotterDiagramCompressor::cleanCache | ( | ) |
Definition at line 898 of file KDChartPlotterDiagramCompressor.cpp.
References d.
Referenced by KDChart::PlotterDiagramCompressor::CachePosition::operator==().
PlotterDiagramCompressor::DataPoint PlotterDiagramCompressor::data | ( | const CachePosition & | pos | ) | const |
Definition at line 841 of file KDChartPlotterDiagramCompressor.cpp.
References d, KDChart::PlotterDiagramCompressor::DataPoint::index, KDChart::PlotterDiagramCompressor::DataPoint::key, and KDChart::PlotterDiagramCompressor::DataPoint::value.
Referenced by KDChart::PlotterDiagramCompressor::Iterator::isValid(), KDChart::PlotterDiagramCompressor::Iterator::Iterator(), KDChart::PlotterDiagramCompressor::Iterator::operator++(), and KDChart::PlotterDiagramCompressor::CachePosition::operator==().
QPair< QPointF, QPointF > PlotterDiagramCompressor::dataBoundaries | ( | ) | const |
Definition at line 910 of file KDChartPlotterDiagramCompressor.cpp.
References d.
Referenced by KDChart::PlotterDiagramCompressor::CachePosition::operator==(), and setMergeRadiusPercentage().
int PlotterDiagramCompressor::datasetCount | ( | ) | const |
Definition at line 903 of file KDChartPlotterDiagramCompressor.cpp.
References d.
Referenced by KDChart::PlotterDiagramCompressor::Iterator::Iterator(), KDChart::PlotterDiagramCompressor::CachePosition::operator==(), and setModel().
PlotterDiagramCompressor::Iterator PlotterDiagramCompressor::end | ( | int | dataSet | ) |
Definition at line 932 of file KDChartPlotterDiagramCompressor.cpp.
Referenced by inBoundary(), and KDChart::PlotterDiagramCompressor::CachePosition::operator==().
qreal PlotterDiagramCompressor::maxSlopeChange | ( | ) | const |
Definition at line 879 of file KDChartPlotterDiagramCompressor.cpp.
References d.
Referenced by KDChart::PlotterDiagramCompressor::CachePosition::operator==().
QAbstractItemModel * PlotterDiagramCompressor::model | ( | ) | const |
Definition at line 815 of file KDChartPlotterDiagramCompressor.cpp.
References d.
Referenced by KDChart::PlotterDiagramCompressor::CachePosition::operator==(), and setModel().
int PlotterDiagramCompressor::rowCount | ( | ) | const |
Definition at line 893 of file KDChartPlotterDiagramCompressor.cpp.
References d.
Referenced by KDChart::PlotterDiagramCompressor::Iterator::isValid(), KDChart::PlotterDiagramCompressor::Iterator::Iterator(), KDChart::PlotterDiagramCompressor::Iterator::operator++(), and KDChart::PlotterDiagramCompressor::CachePosition::operator==().
|
signal |
void PlotterDiagramCompressor::setCompressionModel | ( | CompressionMode | value | ) |
Definition at line 699 of file KDChartPlotterDiagramCompressor.cpp.
References d, KDChart::PlotterDiagramCompressor::CachePosition::first, KDChart::PlotterDiagramCompressor::DataPoint::key, rowCountChanged(), KDChart::PlotterDiagramCompressor::CachePosition::second, and KDChart::PlotterDiagramCompressor::DataPoint::value.
Referenced by KDChart::PlotterDiagramCompressor::CachePosition::operator==().
void PlotterDiagramCompressor::setForcedDataBoundaries | ( | const QPair< qreal, qreal > & | bounds, |
Qt::Orientation | direction | ||
) |
Definition at line 801 of file KDChartPlotterDiagramCompressor.cpp.
References boundariesChanged(), and d.
Referenced by KDChart::PlotterDiagramCompressor::CachePosition::operator==().
void PlotterDiagramCompressor::setMaxSlopeChange | ( | qreal | value | ) |
Definition at line 870 of file KDChartPlotterDiagramCompressor.cpp.
References boundariesChanged(), and d.
Referenced by KDChart::PlotterDiagramCompressor::CachePosition::operator==().
void PlotterDiagramCompressor::setMergeRadius | ( | qreal | radius | ) |
Definition at line 860 of file KDChartPlotterDiagramCompressor.cpp.
References d, rowCountChanged(), and SLOPE.
Referenced by KDChart::PlotterDiagramCompressor::CachePosition::operator==(), and setMergeRadiusPercentage().
void PlotterDiagramCompressor::setMergeRadiusPercentage | ( | qreal | radius | ) |
Definition at line 884 of file KDChartPlotterDiagramCompressor.cpp.
References dataBoundaries(), and setMergeRadius().
Referenced by KDChart::PlotterDiagramCompressor::CachePosition::operator==().
void PlotterDiagramCompressor::setModel | ( | QAbstractItemModel * | model | ) |
Definition at line 821 of file KDChartPlotterDiagramCompressor.cpp.
References d, datasetCount(), and model().
Referenced by KDChart::PlotterDiagramCompressor::CachePosition::operator==().