Inheritance diagram for Exponent::MathTools::CParameter:
1.0.1 Added new static functions
Definition at line 38 of file CParameter.hpp.
Exponent::MathTools::CParameter::CParameter | ( | ) |
Constructor
Exponent::MathTools::CParameter::CParameter | ( | const double | min, | |
const double | max, | |||
const double | value | |||
) |
Construction
min | The min value | |
max | The max value | |
value | The value to convert |
virtual Exponent::MathTools::CParameter::~CParameter | ( | ) | [virtual] |
Destructor
static double Exponent::MathTools::CParameter::doubleToDouble | ( | const double | min, | |
const double | max, | |||
const double | value | |||
) | [static] |
Convert a double to a differently mapped double range
min | The minimum value (negatives are acceptable) | |
max | The maximum value (negatives are acceptable) | |
value | The value to convert to the remapped value. must be in range 0 - 1 |
double | The remapped value |
static long Exponent::MathTools::CParameter::doubleToLong | ( | const long | min, | |
const long | max, | |||
const double | value | |||
) | [static] |
Covert a value to an integer
min | The minimum value (negatives are acceptable) | |
max | The maximum value (negatives are acceptable) | |
value | The value to convert to the index |
long | The converted index in range of min - max |
virtual double Exponent::MathTools::CParameter::getValue | ( | ) | const [virtual] |
virtual void Exponent::MathTools::CParameter::getValue | ( | CString & | text | ) | const [virtual] |
static double Exponent::MathTools::CParameter::longToDouble | ( | const long | min, | |
const long | max, | |||
const long | index | |||
) | [static] |
Convert an integer to a value
min | The minimum value (negatives are acceptable) | |
max | The maximum value (negatives are acceptable) | |
index | The index to convert to the value |
virtual double Exponent::MathTools::CParameter::setAndGetValue | ( | const double | value | ) | [virtual] |
Set a new value and return the computed value
value | The value as a normalised 0 - 1 double |
double | The value computed |
virtual void Exponent::MathTools::CParameter::setRange | ( | const double | min, | |
const double | max | |||
) | [virtual] |
Set the range to map to
min | The min value that can be reached by the parameter | |
max | The max value that can be reached by the parameter |
Reimplemented in Exponent::MathTools::CExponentParameter.
virtual void Exponent::MathTools::CParameter::setValue | ( | const double | value | ) | [virtual] |
Set the value
value | The value as a normalised 0 - 1 double |
Reimplemented in Exponent::MathTools::CExponentParameter.
double Exponent::MathTools::CParameter::m_difference [protected] |
The difference
Definition at line 144 of file CParameter.hpp.
double Exponent::MathTools::CParameter::m_max [protected] |
The max value
Definition at line 143 of file CParameter.hpp.
double Exponent::MathTools::CParameter::m_min [protected] |
The min value
Definition at line 142 of file CParameter.hpp.
double Exponent::MathTools::CParameter::m_out [protected] |
The output value
Definition at line 141 of file CParameter.hpp.