2022-01-18 12:56:05 +03:00
|
|
|
#ifndef AXISDATA_H
|
|
|
|
#define AXISDATA_H
|
|
|
|
|
|
|
|
#include <QtGlobal>
|
|
|
|
|
|
|
|
namespace LimeReport {
|
|
|
|
class AxisData
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AxisData();
|
|
|
|
AxisData(qreal minValue, qreal maxValue);
|
|
|
|
|
|
|
|
int segmentCount() const;
|
|
|
|
|
|
|
|
qreal rangeMin() const;
|
|
|
|
qreal rangeMax() const;
|
|
|
|
|
|
|
|
qreal minValue() const;
|
|
|
|
qreal maxValue() const;
|
|
|
|
qreal step() const;
|
|
|
|
|
|
|
|
qreal delta() const;
|
2022-01-25 21:28:32 +03:00
|
|
|
|
2022-01-18 12:56:05 +03:00
|
|
|
private:
|
|
|
|
void calculateValuesAboveMax(qreal minValue, qreal maxValue, int segments);
|
|
|
|
|
|
|
|
qreal m_rangeMin;
|
|
|
|
qreal m_rangeMax;
|
|
|
|
qreal m_minValue;
|
|
|
|
qreal m_maxValue;
|
|
|
|
qreal m_step;
|
|
|
|
qreal m_delta;
|
|
|
|
int m_segmentCount;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // AXISDATA_H
|