Fraxinus  16.5.0-fx-rc8
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 53 of file cxDoubleRange.h.

Constructor & Destructor Documentation

cx::DoubleRange::DoubleRange ( )
inline

Definition at line 55 of file cxDoubleRange.h.

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

Definition at line 59 of file cxDoubleRange.h.

Member Function Documentation

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

Constrain the input to the range |min,max|

Definition at line 89 of file cxDoubleRange.h.

double cx::DoubleRange::max ( ) const
inline

maximum value

Definition at line 70 of file cxDoubleRange.h.

double cx::DoubleRange::min ( ) const
inline

minimum value

Definition at line 66 of file cxDoubleRange.h.

double cx::DoubleRange::range ( ) const
inline

max - min

Definition at line 82 of file cxDoubleRange.h.

double cx::DoubleRange::resolution ( ) const
inline

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

Definition at line 78 of file cxDoubleRange.h.

double cx::DoubleRange::step ( ) const
inline

smallest reasonable increment

Definition at line 74 of file cxDoubleRange.h.

Member Data Documentation

double cx::DoubleRange::mMax

Definition at line 64 of file cxDoubleRange.h.

double cx::DoubleRange::mMin

Definition at line 63 of file cxDoubleRange.h.

double cx::DoubleRange::mStep

Definition at line 65 of file cxDoubleRange.h.


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