#include <CustomParamInfo.h>
Inheritance diagram for CSLXSICustomParamInfo:

Public Types |
|
| enum | ECapabilitiesFlag { SI_ANIMATABLE = 1, SI_READ_ONLY = 2, SI_PERSISTABLE = 4, SI_NOT_INSPECTABLE = 8, SI_SILENT = 16, SI_NOT_PSET_PERSISTABLE = 128, SI_TEXTURABLE = 256 } |
Public Member Functions |
|
| CSLXSICustomParamInfo (CSLScene *in_pScene, CSLModel *in_pModel, CdotXSITemplate *in_pTemplate, CSLVariantParameter *in_pParameter=0) | |
| SI_Error | Synchronize () |
| ETemplateType | Type () |
| SI_Error | GetMinValue (SI_TinyVariant &out_Value) |
| CSLVariantProxy & | GetMinValue () |
| SI_Error | SetMinValue (const CSLVariantProxy &in_Value) |
| SI_Error | SetMinValue (const SI_TinyVariant &in_Value) |
| SI_Error | GetMaxValue (SI_TinyVariant &out_Value) |
| CSLVariantProxy & | GetMaxValue () |
| SI_Error | SetMaxValue (const CSLVariantProxy &in_Value) |
| SI_Error | SetMaxValue (const SI_TinyVariant &in_Value) |
| SI_ULong | GetCapabilities () |
| SI_Void | SetCapabilities (SI_ULong in_ulValue) |
The CSLXSICustomParamInfo class enhances the usability of the CSLCustomPSet class by providing minimum and maximum range values of a parameter. It can also be used to define the capabilities of the parameter. You can create a custom parameter information with the CSLCustomPSet::CreateCustomParamInfo method.
| enum ECapabilitiesFlag |
Definition of all possible parameter capabilies flags.
You can use a combination of flags using the bitwise 'or' operator
Example:
| CSLXSICustomParamInfo | ( | CSLScene * | in_pScene, | |
| CSLModel * | in_pModel, | |||
| CdotXSITemplate * | in_pTemplate, | |||
| CSLVariantParameter * | in_pParameter = 0 |
|||
| ) |
Constructor
| in_pScene | Parent scene | |
| in_pModel | Parent model | |
| in_pTemplate | referred template | |
| in_pParameter | Parameter whose definition is enhanced |
| SI_Error Synchronize | ( | ) | [virtual] |
Synchronize will ensure that the animated parameter is up to date.
Reimplemented from CSLTemplate.
| ETemplateType Type | ( | ) | [inline, virtual] |
Returns the type of this template
Implements CSLTemplate.
| SI_Error GetMinValue | ( | SI_TinyVariant & | out_Value | ) |
Gets the minimum value
| out_Value | The minimum value |
| SI_SUCCESS | Got the minimum value | |
| SI_ERR_BAD_ARGUMENT | The variant type of out_Value does not match the type of the minimum value. |
| CSLVariantProxy& GetMinValue | ( | ) |
Gets the minimum value
| SI_Error SetMinValue | ( | const CSLVariantProxy & | in_Value | ) |
Sets the minimum value
| in_Value | The minimum value |
| SI_SUCCESS | The value was set | |
| SI_ERR_BAD_ARGUMENT | The variant type of in_Value does not match the type of the minimum value. |
| SI_Error SetMinValue | ( | const SI_TinyVariant & | in_Value | ) |
Sets the minimum value
| in_Value | The minimum value |
| SI_SUCCESS | The value was set | |
| SI_ERR_BAD_ARGUMENT | The variant type of in_Value does not match the type of the minimum value. |
| SI_Error GetMaxValue | ( | SI_TinyVariant & | out_Value | ) |
Gets the maximum value
| out_Value | The maximum value of the parameter |
| SI_SUCCESS | Got the maximum value | |
| SI_ERR_BAD_ARGUMENT | The variant type of out_Value does not match the type of the minimum value. |
| CSLVariantProxy& GetMaxValue | ( | ) |
Gets the maximum value
| SI_Error SetMaxValue | ( | const CSLVariantProxy & | in_Value | ) |
Sets the maximum value
| in_Value | The maximum value |
| SI_SUCCESS | The value was set | |
| SI_ERR_BAD_ARGUMENT | The variant type of in_Value does not match the type of the minimum value. |
| SI_Error SetMaxValue | ( | const SI_TinyVariant & | in_Value | ) |
Sets the maximum value
| in_Value | The maximum value |
| SI_SUCCESS | The value was set | |
| SI_ERR_BAD_ARGUMENT | The variant type of in_Value does not match the type of the minimum value. |
| SI_ULong GetCapabilities | ( | ) |
Gets the Capabilities flag value
Example:
SI_ULong l_uCapabilities = l_pCustomParamInfo->GetCapabilities(); // if the paramater is animatable, do something if ( CSLXSICustomParamInfo::SI_ANIMATABLE & l_uCapabilities ) { // Do something }
| SI_Void SetCapabilities | ( | SI_ULong | in_ulValue | ) |
Sets the Capabilities flag value.
| in_ulValue | New capabilities flags |
Example:
l_pCustomParamInfo->SetCapabilities
(
(SI_ULong)CSLXSICustomParamInfo::SI_ANIMATABLE |
(SI_ULong)CSLXSICustomParamInfo::SI_PERSISTABLE
);