#include <Action.h>
Inheritance diagram for CSLAction:

Actions, also known as action sources, are reusable animation segments (see the XSI_Action template reference). They can be created with the CSLMixer::AddAction method and instantiated in the mixer's tracks (CSLTrack) as action clips (CSLActionClip).
| enum EActionType |
Enumeration of all possible action types.
| CSLAction | ( | CSLScene * | in_pScene, | |
| CSLModel * | in_pModel, | |||
| CdotXSITemplate * | in_pTemplate | |||
| ) |
Constructor
| [in] | in_pScene | Pointer to the scene containing the CSLAction |
| [in] | in_pModel | Pointer to the model containing the CSLAction |
| [in] | in_pTemplate | Pointer to the CdotXSITemplate defining the CSLAction data |
| virtual ~CSLAction | ( | ) | [virtual] |
Destructor
| virtual SI_Error Synchronize | ( | ) | [virtual] |
Synchronizes internal data to be coherent with the IO layer
Reimplemented from CSLTemplate.
Reimplemented in CSLCOLLADAAction.
| CSLTemplate::ETemplateType Type | ( | ) | [inline, virtual] |
Returns the type of this template
Implements CSLTemplate.
| EActionType GetActionType | ( | ) |
Returns the action type
| SI_Void SetActionType | ( | EActionType | in_Type | ) |
Sets the action type
| [in] | in_Type | The action type |
| virtual SI_Float GetEndTime | ( | ) | [virtual] |
Returns the end time
Reimplemented in CSLCOLLADAAction.
| virtual SI_Void SetEndTime | ( | SI_Float | in_fTime | ) | [virtual] |
Sets the end time of the action
| [in] | in_fTime | The end time |
Reimplemented in CSLCOLLADAAction.
| virtual SI_Float GetStartTime | ( | ) | [virtual] |
Returns the start time of the action
Reimplemented in CSLCOLLADAAction.
| virtual SI_Void SetStartTime | ( | SI_Float | in_fTime | ) | [virtual] |
Sets the start time of the action
| [in] | in_fTime | The new start time |
Reimplemented in CSLCOLLADAAction.
| SI_Error RemoveAnimation | ( | SI_Int | in_nIndex | ) |
Removes an animation
| [in] | in_nIndex | Index of the animation to remove |
| SI_Error::SI_SUCCESS | The animation was removed | |
| SI_Error::SI_ERR_BAD_ARGUMENT | Invalid index |
| SI_Error RemoveAnimation | ( | CSLActionFCurve * | io_pToRemove | ) |
Removes an animation
| [in,out] | io_pToRemove | Pointer to the animation to remove |
| SI_Error::SI_SUCCESS | The animation was removed | |
| SI_Error::SI_ERR_BAD_ARGUMENT | Animation was not found |
| CSLActionFCurve** GetAnimationList | ( | ) |
Returns the list of all animations
| SI_Int GetAnimationCount | ( | ) |
Get the total number of Animations
| virtual CSLActionFCurve* AddAnimation | ( | ) | [virtual] |
Adds a new animation with default interpolation ( constant interpolation )
Reimplemented in CSLCOLLADAAction.
| virtual CSLActionFCurve* AddAnimation | ( | EFCurveInterpolationType | in_InterpolationType | ) | [virtual] |
Adds a new animation
| [in] | in_InterpolationType | FCurve interpolation type |
Reimplemented in CSLCOLLADAAction.
| SI_Error ClearAnimations | ( | ) |
Removes all animations
| CSLActionFCurve* ConnectAnimation | ( | CSLActionFCurve * | in_pNewAnimation | ) |
Adds a preallocated animation to the animation list
| [in] | in_pNewAnimation | Pointer to the animation to add |
| SI_Error RemoveStaticValue | ( | SI_Int | in_nIndex | ) |
Removes a static value
| [in] | in_nIndex | Index of the static value to remove |
| SI_Error::SI_SUCCESS | The static value was removed | |
| SI_Error::SI_ERR_BAD_ARGUMENT | Invalid index |
| SI_Error RemoveStaticValue | ( | CSLStaticValue * | io_pToRemove | ) |
Removes a static value
| [in,out] | io_pToRemove | Pointer to the static value to remove |
| SI_Error::SI_SUCCESS | The static value was removed | |
| SI_Error::SI_ERR_BAD_ARGUMENT | static value was not found |
| CSLStaticValue** GetStaticValueList | ( | ) |
Returns the list of all static values
| SI_Int GetStaticValueCount | ( | ) |
Returns the total number of static values
| CSLStaticValue* AddStaticValue | ( | ) |
Adds a new static value
| SI_Error ClearStaticValues | ( | ) |
Removes all static values
| CSLStaticValue* ConnectStaticValue | ( | CSLStaticValue * | in_pNewStaticValue | ) |
Adds a preallocated static value to the static value list
| [in] | in_pNewStaticValue | Pointer to the static value to add |
| CSLXSIShapeReference* AddXSIShapeReference | ( | ) |
Adds a new shape reference
| CSLXSIShapeReference* GetXSIShapeReference | ( | ) |
Returns the associated shape
| SI_Error ClearXSIShapeReference | ( | ) |
Removes the associated shape
| CSLXSIShapeReference* ConnectXSIShapeReference | ( | CSLXSIShapeReference * | in_pNewXSIShape | ) |
ConnectS a preallocated shape to the action shape parameter
| [in] | in_pNewXSIShape | Pointer to the shape to connect |