#include <SL_Double.h>
Inheritance diagram for CSLDoubleProxy:

Public Member Functions |
|
| CSLDoubleProxy (CdotXSITemplate *in_pTemplate, SI_Int in_nIndex, SI_Double in_dThreshold=SI_EPSILON) | |
| CSLDoubleProxy & | operator= (const CSLDoubleProxy &in_Value) |
| CSLDoubleProxy & | operator= (const SI_Double &in_Value) |
| SI_Bool | operator== (const CSLDoubleProxy &in_ToCompare) |
| SI_Bool | operator== (const SI_Double &in_ToCompare) |
| operator SI_Double () | |
| Conversion operator. |
|
| SI_Double | Threshold () |
| void | SetThreshold (SI_Double in_dThreshold) |
| 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) |
| CSLDoubleProxy | ( | CdotXSITemplate * | in_pTemplate, | |
| SI_Int | in_nIndex, | |||
| SI_Double | in_dThreshold = SI_EPSILON |
|||
| ) |
Constructor. Connects to a double parameter in the template
| in_pTemplate | Pointer to the template | |
| in_Index | Index of the parameter in the template | |
| in_dThreshold | Tolerance value used to determine equality between two doubles. |
| CSLDoubleProxy& operator= | ( | const CSLDoubleProxy & | in_Value | ) |
Assignment operator. Assigns in_Value to the parameter referred by this proxy.
| in_Value | The new value |
| CSLDoubleProxy& operator= | ( | const SI_Double & | in_Value | ) |
Assignment operator. Assigns in_Value to the parameter referred by this proxy.
| in_Value | The new value |
| SI_Bool operator== | ( | const CSLDoubleProxy & | 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 | SI_Bool operator== | ( | const SI_Double & | 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 | SI_Double Threshold | ( | ) |
Returns the threshold value
| void SetThreshold | ( | SI_Double | in_dThreshold | ) |
Sets the thresold value
| in_dThreshold | Tolerance value used to determine equality between two doubles. Example// no threshold, the values must be absolutely equal CSLDoubleProxy l_dProxy( in_pTemplate, in_paramIdx, 0.0 ); l_dProxy = 0.00501; if ( l_dProxy == 0.005 ) { // We get here because abs(0.00501 - 0.005) > 0 } // use a tolerance of 0.0001 l_dProxy.SetThreshold( 0.0001 ); if ( l_dProxy == 0.005 ) { // We get here because abs(0.00501 - 0.005) <= 0.0001 } |
| virtual EElementType Type | ( | ) | [virtual] |
Returns the animatable type of this class
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_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_pTemplate | Parent template | |
| in_nIndex | Index of the parameter in the parent template |
| SI_SUCCESS |
Reimplemented from CSLAnimatableType.