Go to the documentation of this file.
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,
83 void setBase( uint base );
86 void setAttribute( Attribute,
bool on =
true );
87 bool testAttribute( Attribute )
const;
92 void setReference(
double );
95 void setMargins(
double lower,
double upper );
96 double lowerMargin()
const;
97 double upperMargin()
const;
107 virtual void autoScale(
int maxNumSteps,
108 double& x1,
double& x2,
double& stepSize )
const = 0;
122 virtual QwtScaleDiv divideScale(
double x1,
double x2,
123 int maxMajorSteps,
int maxMinorSteps,
124 double stepSize = 0.0 )
const = 0;
130 bool contains(
const QwtInterval&,
double value )
const;
133 double divideInterval(
double intervalSize,
int numSteps )
const;
157 virtual void autoScale(
int maxNumSteps,
158 double& x1,
double& x2,
double& stepSize )
const QWT_OVERRIDE;
160 virtual QwtScaleDiv divideScale(
double x1,
double x2,
161 int maxMajorSteps,
int maxMinorSteps,
169 const QwtInterval&,
double stepSize,
int maxMinorSteps,
173 const QwtInterval& interval,
double stepSize )
const;
176 int maxMinorSteps,
double stepSize,
198 double& x1,
double& x2,
double& stepSize )
const QWT_OVERRIDE;
201 int maxMajorSteps,
int maxMinorSteps,
208 const QwtInterval&,
double stepSize,
int maxMinorSteps,
212 const QwtInterval& interval,
double stepSize )
const;
215 int maxMinorSteps,
double stepSize,
basic_reference< false > reference
A scale engine for logarithmic scales.
A scale engine for linear scales.
A class representing an interval.
@ NTickTypes
Number of valid tick types.
virtual QwtScaleDiv divideScale(double x1, double x2, int maxMajorSteps, int maxMinorSteps, double stepSize=0.0) const =0
Calculate a scale division.
virtual void autoScale(int maxNumSteps, double &x1, double &x2, double &stepSize) const =0
Base class for scale engines.
constexpr std::uintptr_t align(std::size_t alignment, std::uintptr_t ptr, std::size_t &space)
std::unordered_map< PlotAttribute, QVariant > Attributes
Arithmetic including a tolerance.
A class representing a scale division.
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46