CSLActionClip Class Reference
#include <ActionClip.h>
Inheritance diagram for CSLActionClip:
List of all members.
Detailed Description
This class represents an XSI_ActionClip template.
An action clip is an instance of an action source (CSLAction) that can be used in an animation mixer (CSLMixer) track (CSLTrack) (see the XSI_ActionClip template reference). You can create an action clip with the CSLTrack::AddActionClip method.
- Note:
- CSLActionClip is not supported by SI3D.
- See also:
- CSLAction
CSLMixer
CSLTimeControl
CSLTrack
Constructor & Destructor Documentation
Constructor
- Parameters:
-
| [in] |
in_pScene |
Pointer to the scene containing the ActionClip |
| [in] |
in_pModel |
Pointer to the model containing the ActionClip |
| [in] |
in_pTemplate |
Pointer to the CdotXSITemplate defining the ActionClip |
Destructor
Member Function Documentation
Returns the type of this template
- Returns:
- CSLTemplate::XSI_ACTIONCLIP Template type
Implements CSLTemplate.
Reimplemented in CSLActionClipContainer.
Returns the active flag that determines whether the clip contributes to the animation or not.
- Return values:
-
|
|
true |
The clip contributes to the animation |
|
|
false |
The clip does not contribute to the animation |
| SI_Void SetActive |
( |
SI_Bool |
in_bNew |
) |
|
Sets whether the clip contributes to the animation or not
- Parameters:
-
| [in] |
in_bNew |
true to contribute, false otherwise |
Returns the length of the clip
- Returns:
- Duration
| SI_Void SetDuration |
( |
SI_Float |
in_fNew |
) |
|
Sets the the length of the clip
- Parameters:
-
| [in] |
in_fNew |
New Duration |
| SI_Bool GetFillAction |
( |
|
) |
|
Returns the fill action flag
- Return values:
-
|
|
true |
The clip is a fill action |
|
|
false |
The clip is not a fill action |
- Note:
- Fill actions determine parameter values only when there is no non-fill action driving particular parameters. They can be used to set parameters to reference values between action clips. Fill actions are not mixed with other clips.
| SI_Void SetFillAction |
( |
SI_Bool |
in_bNew |
) |
|
Sets the fill action flag
- Parameters:
-
| [in] |
in_bNew |
True to enable fill action, false otherwise |
- Note:
- Fill actions determine parameter values only when there is no non-fill action driving particular parameters. They can be used to set parameters to reference values between action clips. Fill actions are not mixed with other clips.
| SI_Int GetFillPriority |
( |
|
) |
|
Returns the priority of the fill action
- Note:
- If two fill actions drive the same parameter at a given frame, the one with the higher priority is used.
- Returns:
- Fill priority value
| SI_Void SetFillPriority |
( |
SI_Int |
in_nNew |
) |
|
Sets the priority of the fill action
- Note:
- If two fill actions drive the same parameter at a given frame, the one with the higher priority is used.
- Parameters:
-
| [in] |
in_nNew |
New fill priority value |
| SI_Float GetStartTime |
( |
|
) |
|
Returns the start time of the clip
- Returns:
- Start time
| SI_Void SetStartTime |
( |
SI_Float |
in_fNew |
) |
|
Sets the start time of the clip
- Parameters:
-
| [in] |
in_fNew |
New start time |
Returns the relative weight of the action clip when it is mixed with other clips that affect the same parameters or clusters at the same frames.
- Returns:
- Weight
| SI_Void SetWeight |
( |
SI_Float |
in_fNew |
) |
|
Sets the relative weight of the action clip when it is mixed with other clips that affect the same parameters or clusters at the same frames.
- Parameters:
-
Returns the action source
- Returns:
- Pointer to the action source
NULL No action source was set, this should never happen unless it was ovverriden by mistake by CSLActionClip::SetReference.
| SI_Void SetReference |
( |
CSLAction * |
in_pAction |
) |
|
Sets the action source
- Parameters:
-
| [in] |
in_pAction |
Pointer to the new Referred action |
- Note:
- The internal action source pointer will be replaced by the one provided. This is perfectly normal because there can/will be other CSLActionClips instanciating it.
Add a new time control
- Returns:
- Pointer to the newly allocated time control
Add a previously allocated time control
- Parameters:
-
| [in] |
in_pTimeControl |
Pointer to the time control to add |
- Returns:
- Pointer to added time control or null if already present
| SI_Error RemoveTimeControl |
( |
SI_Int |
in_nIndex |
) |
|
Removes a specific time control
- Parameters:
-
| [in] |
in_nIndex |
Index of the control to remove |
- Return values:
-
Removes a specific time control
- Parameters:
-
| [in] |
in_pTimeControl |
Pointer of the control to remove |
- Return values:
-
Returns the list of all time controls
- Returns:
- Pointer to the list of time control pointers
| SI_Int GetTimeControlCount |
( |
|
) |
|
Returns the time control count
- Returns:
- Number of time control in the list
Frees all time controls
- Return values:
-
Returns a proxy to the specified parameter.
- Parameters:
-
| [in] |
in_szName |
Name of the parameter |
- Returns:
- Pointer to a parameter proxy.
Reimplemented from CSLTemplate.
Returns a proxy to the specified parameter.
- Parameters:
-
| [in] |
in_Type |
Type of parameter |
| [in] |
in_szParameterName |
Name of the parameter if the type is SI_PARAMETER |
- Returns:
- Pointer to a parameter proxy.
Reimplemented from CSLTemplate.
The documentation for this class was generated from the following file: