Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.directX   Previous This
Package
Next

 


Class Direct3dRMAnimation

public class Direct3dRMAnimation implements 
            IDirect3dRMAnimation
{
  // Methods
  public void addPositionKey(float time, float x, float y, float z);
  public void addRotateKey(float time, D3dRMQuaternion q);
  public void addScaleKey(float time, float x, float y, float z);
  public void deleteKey(float time);
  public int getOptions();
  public void setFrame(Direct3dRMFrame frame);
  public void setOptions(int flags);
  public void setTime(float time);
}

Applications use the methods of the Direct3dRMAnimation class to animate the position, orientation, and scaling of visuals, lights, and viewports.

The Direct3dRMAnimation class inherits the following methods from the Direct3dRMObject class:

addDestroyCallback
deleteDestroyCallback
duplicate
getAppData
getClassName
getName
setAppData
setName

Methods

addPositionKey

public void addPositionKey(float time, float x, float y, float z);

Adds a position key to the animation.

Return Value:

No return value.

ParameterDescription
time The time in the animation to store the position key. The time units are arbitrary and zero-based; a key whose time value is 49 occurs exactly in the middle of an animation, whose last key has an time value of 99.
x The x component of the position.
y The y component of the position.
z The z component of the position.

Remarks:

The transformation applied by this method is a translation.

See Also: deleteKey

addRotateKey

public void addRotateKey(float time, D3dRMQuaternion q);

Adds a rotate key to the animation.

Return Value:

No return value.

ParameterDescription
time The time in the animation to store the rotate key. The time units are arbitrary and zero-based; a key whose time value is 49 occurs exactly in the middle of an animation, whose last key has an time value of 99.
q D3dRMQuaternion representing the rotation.

Remarks:

This method applies a rotation transformation.

See Also: deleteKey

addScaleKey

public void addScaleKey(float time, float x, float y, float z);

Adds a scale key to the animation.

Return Value:

No return value.

ParameterDescription
time The time in the animation to store the scale key. The time units are arbitrary and zero-based; a key whose time value is 49 occurs exactly in the middle of an animation, whose last key has an time value of 99.
x The x component of the scale factor.
y The y component of the scale factor.
z The z component of the scale factor.

Remarks:

This method applies a scaling transformation.

See Also: deleteKey

deleteKey

public void deleteKey(float time);

Removes a key from an animation.

Return Value:

No return value.

ParameterDescription
time The time identifying the key that will be removed from the animation.

getOptions

public int getOptions();

Retrieves animation options.

Return Value:

Returns the value of an animation option type describing the animation options.

See Also: setOptions

setFrame

public void setFrame(Direct3dRMFrame frame);

Sets the frame for the animation.

Return Value:

No return value.

ParameterDescription
frame The Direct3dRMFrame object to set for the animation.

setOptions

public void setOptions(int flags);

Sets the animation options.

Return Value:

No return value.

ParameterDescription
flags The value of animation option type describing the animation options.

See Also: getOptions

setTime

public void setTime(float time);

Sets the current time for this animation.

Return Value:

No return value.

ParameterDescription
time The new current time for the animation. The time units are arbitrary and zero-based; a key, whose time value is 49, occurs exactly in the middle of an animation, whose last key has an time value of 99.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.