IFXMotionResource |
The IFXMotionResource interface is used to access animation data stored in separate tracks, with each track corresponding to the animation of one bone.
|
Interface Methods |
Description |
|
Gets the number of tracks |
|
|
Finds the track index with a specific name |
|
|
Adds a new track by name |
|
|
Gets the name of a track |
|
|
Removes all keyframes from a track |
|
|
Removes redundant data |
|
|
Adds keyframes to a track |
|
|
Gets a specified number of keyframes from a track |
|
|
Gets key frames from track |
|
|
Gets a frame from track |
|
|
Gets the overall duration of all the tracks in the motion |
|
|
Gets the duration of a single indexed track |
|
|
Gets a pointer to the scenegraph |
|
|
Accesses the IFXMotion directly |
This method gets the number of tracks.
Parameters:
|
*puTrackCount |
Pointer to the variable set counting the number of tracks |
This method finds the track index with a specific name.
Parameters:
|
*pTrackName |
Pointer to the name of the track |
|
*puTrackID |
Pointer to the track ID number |
This methods adds a new track by name. The track index is returned.
Parameters:
|
*pTrackName |
Pointer to the name of the new track |
|
*puTrackID |
Pointer to the new track ID number |
This method gets the name of a track.
Parameters:
|
uTrackID |
Track ID number |
|
*pTrackName |
Pointer to the track name |
This method removes all keyframes from a track.
Parameters:
|
uTrackID |
Track ID number |
This method removes redundant data.
Parameters:
|
deltatime=0.01f |
Time data. Defaults to 0.01 if not specified. |
|
deltalocation=0.01f |
Location data. Defaults to 0.01 if not specified. |
|
deltarotation=0.001f |
Rotation data. Defaults to 0.01 if not specified. |
This method adds keyframes to a track.
Parameters:
|
uTrackID |
Track ID number |
|
uKeyFrameCount |
Number of keyframes |
|
*pKeyFrameArray |
Pointer to the keyframe array |
This method gets key frames from a track.
Parameters:
|
uTrackID |
Track ID number |
|
*puKeyFrameCount |
Pointer to the variable set for the total number of keyframes |
This method gets a specified number of keyframes from a track starting with a specified index. The pre-allocated size of the array should equal the requested number of keyframes.
Parameters:
|
uTrackID |
Track ID number |
|
uKeyFrameStart |
Keyframe number of the first keyframe |
|
uKeyFrameCount |
The total number of keyframes |
|
*pKeyFrameArray |
Pointer to the array of keyframes |
This method gets a frame from track (not necessarily a keyframe). The frame which is returned will have an interpolated rotation and displacement if there is no keyframe for the input time.
Parameters:
|
uTrackID |
Track ID number |
|
fTime |
Amount of time the track runs |
|
*pKeyFrame |
Pointer to the IFXKeyFrame |
This method gets the overall duration of all the tracks in the motion.
Parameters:
|
pOutDuration |
Pointer to the amount of time all the tracks run |
This method gets the duration of a single indexed track.
Parameters:
|
uTrackID |
Track ID number |
|
pOutDuration |
Pointer to the amount of time the track runs |
This method gets a pointer to the scenegraph.
Parameters:
|
ppOutSceneGraph |
Pointer to the scenegraph |
Internal use: This method accesses the IFXMotion directly.
Parameters:
None
Return Values:
IFXMotion*
§See asterisked (*) statement at Legal Information © 2001 Intel Corporation.