CustusX  2021.04.21-dev+develop.337f9
An IGT application
cx::DoubleRange Struct Reference

Utility class for describing a bounded numeric range. More...

#include <cxDoubleRange.h>

Public Member Functions

 DoubleRange ()
 DoubleRange (double min, double max, double step)
double min () const
 minimum value More...
double max () const
 maximum value More...
double step () const
 smallest reasonable increment More...
double resolution () const
 number of steps in range (1 step means 1 resolution). More...
double range () const
 max - min More...
double constrainValue (double val)

Public Attributes

double mMin
double mMax
double mStep

Detailed Description

Utility class for describing a bounded numeric range.

Definition at line 32 of file cxDoubleRange.h.

Constructor & Destructor Documentation

cx::DoubleRange::DoubleRange ( )

Definition at line 34 of file cxDoubleRange.h.

cx::DoubleRange::DoubleRange ( double  min,
double  max,
double  step 

Definition at line 38 of file cxDoubleRange.h.

Member Function Documentation

double cx::DoubleRange::constrainValue ( double  val)

Constrain the input to the range |min,max|

Definition at line 68 of file cxDoubleRange.h.

double cx::DoubleRange::max ( ) const

maximum value

Definition at line 49 of file cxDoubleRange.h.

double cx::DoubleRange::min ( ) const

minimum value

Definition at line 45 of file cxDoubleRange.h.

double cx::DoubleRange::range ( ) const

max - min

Definition at line 61 of file cxDoubleRange.h.

double cx::DoubleRange::resolution ( ) const

number of steps in range (1 step means 1 resolution).

Definition at line 57 of file cxDoubleRange.h.

double cx::DoubleRange::step ( ) const

smallest reasonable increment

Definition at line 53 of file cxDoubleRange.h.

Member Data Documentation

double cx::DoubleRange::mMax

Definition at line 43 of file cxDoubleRange.h.

double cx::DoubleRange::mMin

Definition at line 42 of file cxDoubleRange.h.

double cx::DoubleRange::mStep

Definition at line 44 of file cxDoubleRange.h.

The documentation for this struct was generated from the following file: