mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 00:33:02 +03:00
42 lines
751 B
C++
42 lines
751 B
C++
#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;
|
|
|
|
bool reverseDirection() const;
|
|
void setReverseDirection(bool reverseDirection);
|
|
|
|
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;
|
|
bool m_reverseDirection;
|
|
};
|
|
};
|
|
|
|
#endif // AXISDATA_H
|