#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_pTemplate | Pointer to the parent template | |
| in_Index | Index of the parameter in the template | |
| 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_Value | The new value |
| CSLFloatProxy& operator= | ( | const SI_Float & | in_Value | ) |
Assignment operator. Assigns in_Value to the parameter referred by this proxy.
| in_Value | The new value |
Comparison operator. Compares in_ToCompare with the value of the parameter referred by this proxy.
| 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_ToCompare | The instance to compare values with |
in_ToCompare are equal Returns the threshold value
Sets the thresold value
| in_fThreshold | Tolerance value used to determine equality between two floats. Example // 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 } |
Returns the animatable type of this class
Implements CSLAnimatableType.
Converts the value of the referred parameter to float
Implements CSLAnimatableType.
Sets the value of the referred parameter from a float
| in_fValue | The float value used to set the parameter |
Implements CSLAnimatableType.
Connects the proxy to a parameter of a template
| in_pTemplate | Parent template | |
| in_nIndex | Index of the parameter in the parent template |
| SI_SUCCESS |
Reimplemented from CSLAnimatableType.