10 #ifndef QWT_SCALE_ENGINE_H 11 #define QWT_SCALE_ENGINE_H 25 static double ceilEps(
double value,
double intervalSize );
26 static double floorEps(
double value,
double intervalSize );
28 static double divideEps(
double intervalSize,
double numSteps );
30 static double divideInterval(
double intervalSize,
31 int numSteps, uint base );
60 IncludeReference = 0x01,
84 void setBase( uint base );
87 void setAttribute(
Attribute,
bool on =
true );
90 void setAttributes( Attributes );
91 Attributes attributes()
const;
93 void setReference(
double );
97 double lowerMargin()
const;
98 double upperMargin()
const;
108 virtual void autoScale(
int maxNumSteps,
109 double &x1,
double &x2,
double &stepSize )
const = 0;
123 virtual QwtScaleDiv divideScale(
double x1,
double x2,
124 int maxMajorSteps,
int maxMinorSteps,
125 double stepSize = 0.0 )
const = 0;
134 double divideInterval(
double intervalSize,
int numSteps )
const;
158 virtual void autoScale(
int maxNumSteps,
159 double &x1,
double &x2,
double &stepSize )
const QWT_OVERRIDE;
161 virtual QwtScaleDiv divideScale(
double x1,
double x2,
162 int maxMajorSteps,
int maxMinorSteps,
170 const QwtInterval &,
double stepSize,
int maxMinorSteps,
174 const QwtInterval &interval,
double stepSize )
const;
177 int maxMinorSteps,
double stepSize,
199 double &x1,
double &x2,
double &stepSize )
const QWT_OVERRIDE;
202 int maxMajorSteps,
int maxMinorSteps,
209 const QwtInterval &,
double stepSize,
int maxMinorSteps,
213 const QwtInterval &interval,
double stepSize )
const;
216 int maxMinorSteps,
double stepSize,
A scale engine for logarithmic scales.
enum MQTTPropertyCodes value
A class representing an interval.
Arithmetic including a tolerance.
A class representing a scale division.
void * align(std::size_t alignment, std::size_t size, void *&ptr, std::size_t &space, std::size_t &required_space)
basic_reference< false > reference
Number of valid tick types.
QFlags< Attribute > Attributes
Layout attributes.
virtual void autoScale(int maxNumSteps, double &x1, double &x2, double &stepSize) const =0
A scale engine for linear scales.
virtual QwtScaleDiv divideScale(double x1, double x2, int maxMajorSteps, int maxMinorSteps, double stepSize=0.0) const =0
Calculate a scale division.
Base class for scale engines.