CSLAction Class Reference
#include <Action.h>
Inheritance diagram for CSLAction:
List of all members.
Detailed Description
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).
- Note:
- Actions are not supported by SI3D
- See also:
- CSLActionClip
CSLActionFCurve
CSLMixer
CSLShapeAnimation
CSLStaticValue
Member Enumeration Documentation
Enumeration of all possible action types.
- Enumerator:
-
| SI_AT_FCURVE |
Fcurve action source item |
| SI_AT_STATICVALUE |
Static value source |
| SI_AT_EXPRESSION |
Expression source |
| SI_AT_CLUSTERKEY |
Cluster key source |
| SI_AT_CONSTRAINT |
Constraint source |
| SI_AT_COMPOUND |
Compound Action item source. |
| SI_AT_SHAPECOMPOUND |
Shape compound Action item source. |
| SI_AT_NONE |
No flagged source |
Constructor & Destructor Documentation
Destructor
Member Function Documentation
| virtual SI_Error Synchronize |
( |
|
) |
[virtual] |
Synchronizes internal data to be coherent with the IO layer
- Returns:
- success or failure
Reimplemented from CSLTemplate.
Reimplemented in CSLCOLLADAAction.
Returns the type of this template
- Returns:
- CSLTemplate::XSI_ACTION
Implements CSLTemplate.
Gets the action type
- Returns:
- The action type
Sets the action type
- Parameters:
-
| virtual SI_Float GetEndTime |
( |
|
) |
[virtual] |
Gets the end time
- Returns:
- The end time
Reimplemented in CSLCOLLADAAction.
| virtual SI_Void SetEndTime |
( |
SI_Float |
in_fTime |
) |
[virtual] |
Sets the end time of the action
- Parameters:
-
Reimplemented in CSLCOLLADAAction.
| virtual SI_Float GetStartTime |
( |
|
) |
[virtual] |
Gets the start time of the action
- Returns:
- The start time
Reimplemented in CSLCOLLADAAction.
| virtual SI_Void SetStartTime |
( |
SI_Float |
in_fTime |
) |
[virtual] |
Sets the start time of the action
- Parameters:
-
|
|
in_fTime |
The new start time |
Reimplemented in CSLCOLLADAAction.
| SI_Error RemoveAnimation |
( |
SI_Int |
in_nIndex |
) |
|
Removes an animation
- Parameters:
-
|
|
in_nIndex |
Index of the animation to remove |
- Return values:
-
|
|
SI_SUCCESS |
The animation was removed |
|
|
SI_ERR_BAD_ARGUMENT |
Invalid index |
Removes an animation
- Parameters:
-
|
|
in_pToRemove |
Pointer to the animation to remove |
- Return values:
-
|
|
SI_SUCCESS |
The animation was removed |
|
|
SI_ERR_BAD_ARGUMENT |
Animation was not found |
Gets the list of all animations
- Returns:
- Pointer to the list of pointer of all animations
| SI_Int GetAnimationCount |
( |
|
) |
|
Get the total number of Animations
- Returns:
- The number of Animations
Adds a new animation with default interpolation ( constant interpolation )
- Returns:
- Pointer to the newly added Animation
Reimplemented in CSLCOLLADAAction.
Adds a new animation
- Parameters:
-
|
|
in_InterpolationType |
FCurve interpolation type |
- Returns:
- Pointer to the newly added Animation
Reimplemented in CSLCOLLADAAction.
Removes all animations
- Return values:
-
Adds a preallocated animation to the animation list
- Parameters:
-
- Returns:
- The newly added Animation or null if it was already added
| SI_Error RemoveStaticValue |
( |
SI_Int |
in_nIndex |
) |
|
Removes a static value
- Parameters:
-
|
|
in_nIndex |
Index of the static value to remove |
- Return values:
-
|
|
SI_SUCCESS |
The static value was removed |
|
|
SI_ERR_BAD_ARGUMENT |
Invalid index |
Removes a static value
- Parameters:
-
|
|
in_pToRemove |
Pointer to the static value to remove |
- Return values:
-
|
|
SI_SUCCESS |
The static value was removed |
|
|
SI_ERR_BAD_ARGUMENT |
static value was not found |
Gets the list of all static values
- Returns:
- Pointer to the list of pointer of all static values
| SI_Int GetStaticValueCount |
( |
|
) |
|
Get the total number of static values
- Returns:
- The number of static values
Adds a new static value
- Returns:
- Pointer to the newly added static value
Removes all static values
- Return values:
-
Adds a preallocated static value to the static value list
- Parameters:
-
- Returns:
- The newly added static value or null if it was already added
Adds a new shape reference
- Returns:
- Pointer to the shape
Gets the associated shape
- Returns:
- Pointer to the shape
Removes the associated shape
- Return values:
-
Connect a preallocated shape to the action shape parameter
- Parameters:
-
- Returns:
- The newly added shape or null if it was already added
The documentation for this class was generated from the following file: