#include <SL_Float.h>
Inheritance diagram for CSLFloatProxy:

Public Member Functions |
|
| CSLFloatProxy (CdotXSITemplate *in_pTemplate, SI_Int in_nIndex, SI_Float in_fThreshold=SI_EPSILON) | |
| CSLFloatProxy & | operator= (const CSLFloatProxy &in_Value) |
| CSLFloatProxy & | operator= (const SI_Float &in_Value) |
| SI_Bool | operator== (const CSLFloatProxy &in_ToCompare) |
| SI_Bool | operator== (const SI_Float &in_ToCompare) |
| operator SI_Float () | |
| Conversion operator. |
|
| SI_Float | Threshold () |
| void | SetThreshold (SI_Float in_fThreshold) |
| virtual EElementType | Type () |
| virtual SI_Float | GetFloatValue () |
| virtual SI_Void | SetFloatValue (SI_Float in_fValue) |
| virtual SI_Error | Connect (CdotXSITemplate *in_pTemplate, SI_Int in_nIndex) |
| CSLFloatProxy | ( | CdotXSITemplate * | in_pTemplate, | |
| SI_Int | in_nIndex, | |||
| SI_Float | in_fThreshold = SI_EPSILON |
|||
| ) |
Constructor. Connects to a parameter in the parent template
| [in] | in_pTemplate | Pointer to the parent template |
| [in] | in_nIndex | Index of the parameter in the template |
| [in] | in_fThreshold | Tolerance value used to determine equality between two floats. |
| CSLFloatProxy& operator= | ( | const CSLFloatProxy & | in_Value | ) |
Assignment operator. Assigns in_Value to the parameter referred by this proxy.
| [in] | in_Value | The new value |
| CSLFloatProxy& operator= | ( | const SI_Float & | in_Value | ) |
Assignment operator. Assigns in_Value to the parameter referred by this proxy.
| [in] | in_Value | The new value |
| SI_Bool operator== | ( | const CSLFloatProxy & | in_ToCompare | ) |
Comparison operator. Compares in_ToCompare with the value of the parameter referred by this proxy.
| [in] | in_ToCompare | The instance to compare values with |
in_ToCompare are equal | SI_Bool operator== | ( | const SI_Float & | in_ToCompare | ) |
Comparison operator. Compares in_ToCompare with the value of the parameter referred by this proxy.
| [in] | in_ToCompare | The instance to compare values with |
in_ToCompare are equal | SI_Float Threshold | ( | ) |
Returns the threshold value
| void SetThreshold | ( | SI_Float | in_fThreshold | ) |
Sets the thresold value
| [in] | in_fThreshold | Tolerance value used to determine equality between two floats. |
// no threshold, the values must be absolutely equal CSLFloatProxy l_fProxy( in_pTemplate, in_paramIdx, 0.0 ); l_fProxy = 0.00501; if ( l_fProxy == 0.005F ) { // We get here because abs(0.00501 - 0.005) > 0 } // use a tolerance of 0.0001 l_fProxy.SetThreshold( 0.0001F ); if ( l_fProxy == 0.005F ) { // We get here because abs(0.00501 - 0.005) <= 0.0001 }
| virtual EElementType Type | ( | ) | [virtual] |
Returns the animatable type of this class
| CSLAnimatableType::SI_FLOAT_TYPE | Animatable type |
Implements CSLAnimatableType.
| virtual SI_Float GetFloatValue | ( | ) | [virtual] |
Converts the value of the referred parameter to float
Implements CSLAnimatableType.
| virtual SI_Void SetFloatValue | ( | SI_Float | in_fValue | ) | [virtual] |
Sets the value of the referred parameter from a float
| [in] | in_fValue | The float value used to set the parameter |
Implements CSLAnimatableType.
| virtual SI_Error Connect | ( | CdotXSITemplate * | in_pTemplate, | |
| SI_Int | in_nIndex | |||
| ) | [virtual] |
Connects the proxy to a parameter of a template
| [in] | in_pTemplate | Parent template |
| [in] | in_nIndex | Index of the parameter in the parent template |
| SI_Error::SI_SUCCESS |
Reimplemented from CSLAnimatableType.