19 #ifndef INCLUDE_SCALEENGINE_H 20 #define INCLUDE_SCALEENGINE_H 63 QString formatTick(
double value,
int decimalPlaces);
65 void calcScaleFactor();
66 double calcMajorTickUnits(
double distance,
int* retDecimalPlaces);
67 int calcTickTextSize(
double distance);
71 double majorTickValue(
int tick);
72 double minorTickValue(
int tick);
77 void setOrientation(Qt::Orientation orientation);
78 void setFont(
const QFont& font);
79 void setSize(
float size);
81 void setRange(
Unit::Physical physicalUnit,
float rangeMin,
float rangeMax);
85 float getPosFromValue(
double value);
86 float getValueFromPos(
double pos);
87 const TickList& getTickList();
89 QString getRangeMinStr();
90 QString getRangeMaxStr();
92 float getScaleWidth();
95 #endif // INCLUDE_SCALEENGINE_H
Qt::Orientation m_orientation
double m_majorTickValueDistance
void setFixedDecimalPlaces(int decimalPlaces)
double m_firstMajorTickValue
Unit::Physical m_physicalUnit
void setMakeOpposite(bool makeOpposite)