19 #ifndef CXDOUBLERANGE_H_ 20 #define CXDOUBLERANGE_H_ 22 #include "cxResourceExport.h" 35 mMin(0), mMax(1), mStep(0.1)
39 mMin(min), mMax(max), mStep(step)
59 return (mMax - mMin) / mStep;
double max() const
maximum value
Utility class for describing a bounded numeric range.
double resolution() const
number of steps in range (1 step means 1 resolution).
double min() const
minimum value
double constrainValue(double val)
double step() const
smallest reasonable increment
DoubleRange(double min, double max, double step)
double range() const
max - min
Namespace for all CustusX production code.