OpenWareLaboratory
|
Linearly scaled value. More...
Public Member Functions | |
const float | DEFAULT_DELTA |
const int | DEFAULT_DELTA |
const float | DEFAULT_DELTA |
const int | DEFAULT_DELTA |
const float | DEFAULT_EXP_C |
const int | DEFAULT_EXP_C |
const float | DEFAULT_EXP_C |
const int | DEFAULT_EXP_C |
const float | DEFAULT_EXP_K |
const int | DEFAULT_EXP_K |
const float | DEFAULT_EXP_K |
const int | DEFAULT_EXP_K |
const float | DEFAULT_LAMBDA |
const int | DEFAULT_LAMBDA |
const float | DEFAULT_LAMBDA |
const int | DEFAULT_LAMBDA |
const float | DEFAULT_LOG_C |
const int | DEFAULT_LOG_C |
const float | DEFAULT_LOG_C |
const int | DEFAULT_LOG_C |
const float | DEFAULT_LOG_K |
const int | DEFAULT_LOG_K |
const float | DEFAULT_LOG_K |
const int | DEFAULT_LOG_K |
T | get () |
T | getControl () |
Get the input value. More... | |
LinearValue (const LinearValue< T, Value > &other) | |
LinearValue (T minimum, T maximum, T init) | |
LinearValue (T value=0) | |
operator T () | |
LinearValue< T, Value > & | operator*= (const T &other) |
LinearValue< T, Value > & | operator+= (const T &other) |
LinearValue< T, Value > & | operator-= (const T &other) |
LinearValue< T, Value > & | operator/= (const T &other) |
LinearValue< T, Value > & | operator= (const T &x) |
void | reset (T x) |
void | setRange (T from_lo, T from_hi, T to_lo, T to_hi) |
void | setRange (T minimum, T maximum) |
void | update (T x) |
Static Public Attributes | |
static const T | DEFAULT_DELTA |
static const T | DEFAULT_EXP_C |
static const T | DEFAULT_EXP_K |
static const T | DEFAULT_LAMBDA |
static const T | DEFAULT_LOG_C |
static const T | DEFAULT_LOG_K |
Protected Attributes | |
T | adjust |
T | offset |
T | scale |
T | value |
Linearly scaled value.
Scales an input on the range [0, 1] linearly to the range [min, max]. Minimum may be less than maximum for inverted scale.
Definition at line 113 of file SmoothValue.h.
|
inline |
Definition at line 119 of file SmoothValue.h.
|
inline |
Definition at line 120 of file SmoothValue.h.
|
inline |
Definition at line 122 of file SmoothValue.h.
References LinearValue< T, Value >::setRange().
|
inherited |
Definition at line 11 of file SimpleValue.cpp.
|
inherited |
Definition at line 17 of file SimpleValue.cpp.
|
inherited |
Definition at line 61 of file SimpleValue.h.
|
inherited |
Definition at line 67 of file SimpleValue.h.
|
inherited |
Definition at line 12 of file SimpleValue.cpp.
|
inherited |
Definition at line 18 of file SimpleValue.cpp.
|
inherited |
Definition at line 62 of file SimpleValue.h.
|
inherited |
Definition at line 68 of file SimpleValue.h.
|
inherited |
Definition at line 13 of file SimpleValue.cpp.
|
inherited |
Definition at line 19 of file SimpleValue.cpp.
|
inherited |
Definition at line 63 of file SimpleValue.h.
|
inherited |
Definition at line 69 of file SimpleValue.h.
|
inherited |
Definition at line 10 of file SimpleValue.cpp.
|
inherited |
Definition at line 16 of file SimpleValue.cpp.
|
inherited |
Definition at line 60 of file SimpleValue.h.
|
inherited |
Definition at line 66 of file SimpleValue.h.
|
inherited |
Definition at line 14 of file SimpleValue.cpp.
|
inherited |
Definition at line 20 of file SimpleValue.cpp.
|
inherited |
Definition at line 64 of file SimpleValue.h.
|
inherited |
Definition at line 70 of file SimpleValue.h.
|
inherited |
Definition at line 15 of file SimpleValue.cpp.
|
inherited |
Definition at line 21 of file SimpleValue.cpp.
|
inherited |
Definition at line 65 of file SimpleValue.h.
|
inherited |
Definition at line 71 of file SimpleValue.h.
|
inlineinherited |
Definition at line 19 of file SimpleValue.h.
References SimpleValue< T >::value.
Referenced by SimpleValue< T >::operator T().
|
inline |
Get the input value.
Definition at line 141 of file SmoothValue.h.
References LinearValue< T, Value >::adjust, LinearValue< T, Value >::offset, and LinearValue< T, Value >::scale.
|
inline |
Definition at line 167 of file SmoothValue.h.
|
inline |
Definition at line 159 of file SmoothValue.h.
References LinearValue< T, Value >::update().
|
inline |
Definition at line 151 of file SmoothValue.h.
References LinearValue< T, Value >::update().
|
inline |
Definition at line 155 of file SmoothValue.h.
References LinearValue< T, Value >::update().
|
inline |
Definition at line 163 of file SmoothValue.h.
References LinearValue< T, Value >::update().
|
inline |
Definition at line 147 of file SmoothValue.h.
References LinearValue< T, Value >::update().
|
inlineinherited |
Definition at line 22 of file SimpleValue.h.
References SimpleValue< T >::value.
|
inline |
Definition at line 130 of file SmoothValue.h.
References LinearValue< T, Value >::adjust, LinearValue< T, Value >::offset, and LinearValue< T, Value >::scale.
|
inline |
Definition at line 125 of file SmoothValue.h.
References LinearValue< T, Value >::adjust, LinearValue< T, Value >::offset, and LinearValue< T, Value >::scale.
Referenced by LinearValue< T, Value >::LinearValue().
|
inline |
Definition at line 144 of file SmoothValue.h.
References LinearValue< T, Value >::adjust, LinearValue< T, Value >::offset, and LinearValue< T, Value >::scale.
Referenced by LinearValue< T, Value >::operator*=(), LinearValue< T, Value >::operator+=(), LinearValue< T, Value >::operator-=(), LinearValue< T, Value >::operator/=(), and LinearValue< T, Value >::operator=().
|
protected |
Definition at line 116 of file SmoothValue.h.
Referenced by LinearValue< T, Value >::getControl(), LinearValue< T, Value >::setRange(), and LinearValue< T, Value >::update().
|
staticinherited |
Definition at line 52 of file SimpleValue.h.
|
staticinherited |
Definition at line 53 of file SimpleValue.h.
|
staticinherited |
Definition at line 54 of file SimpleValue.h.
|
staticinherited |
Definition at line 51 of file SimpleValue.h.
|
staticinherited |
Definition at line 55 of file SimpleValue.h.
|
staticinherited |
Definition at line 56 of file SimpleValue.h.
|
protected |
Definition at line 117 of file SmoothValue.h.
Referenced by LinearValue< T, Value >::getControl(), LinearValue< T, Value >::setRange(), and LinearValue< T, Value >::update().
|
protected |
Definition at line 115 of file SmoothValue.h.
Referenced by LinearValue< T, Value >::getControl(), LinearValue< T, Value >::setRange(), and LinearValue< T, Value >::update().
|
protectedinherited |
Definition at line 14 of file SimpleValue.h.
Referenced by SimpleValue< T >::get(), SimpleValue< T >::operator*=(), SimpleValue< T >::operator+=(), SimpleValue< T >::operator-=(), SimpleValue< T >::operator/=(), SimpleValue< T >::reset(), TakeoverValue< T, Value >::setLocked(), and SimpleValue< T >::update().