10 #ifndef _QWT_DATE_SCALE_ENGINE_H_ 11 #define _QWT_DATE_SCALE_ENGINE_H_ 1 47 void setTimeSpec( Qt::TimeSpec );
48 Qt::TimeSpec timeSpec()
const;
50 void setUtcOffset(
int seconds );
51 int utcOffset()
const;
56 void setMaxWeeks(
int );
60 double &x1,
double &x2,
double &stepSize )
const;
64 int maxMajorSteps,
int maxMinorSteps,
65 double stepSize = 0.0 )
const;
68 const QDateTime &,
const QDateTime &,
int maxSteps )
const;
70 QDateTime toDateTime(
double )
const;
73 virtual QDateTime alignDate(
const QDateTime &,
double stepSize,
77 QwtScaleDiv buildScaleDiv(
const QDateTime &,
const QDateTime &,
78 int maxMajorSteps,
int maxMinorSteps,
A scale engine for date/time values.
A class representing a scale division.
std::chrono::duration< std::int_fast64_t > seconds
virtual void autoScale(int maxSteps, double &x1, double &x2, double &stepSize) const
virtual QwtScaleDiv divideScale(double x1, double x2, int numMajorSteps, int numMinorSteps, double stepSize=0.0) const
Calculate a scale division for an interval.
A scale engine for linear scales.