C# Class Axiom.Animating.VertexAnimationTrack

Inheritance: AnimationTrack
Datei anzeigen Open project: WolfgangSt/axiom Class Usage Examples

Protected Properties

Property Type Description
animationType VertexAnimationType
targetMode VertexAnimationTargetMode
targetVertexData Axiom.Graphics.VertexData

Public Methods

Method Description
Apply ( float time, float weight, bool accumulate, float scale ) : void
ApplyPoseToVertexData ( Pose pose, VertexData data, float influence ) : void

Utility method for applying pose animation

ApplyToVertexData ( VertexData data, float time, float weight, List poseList ) : void

As the 'apply' method but applies to specified VertexData instead of associated data.

CreateKeyFrameImpl ( float time ) : KeyFrame
CreateVertexMorphKeyFrame ( float time ) : VertexMorphKeyFrame

Creates a new morph KeyFrame and adds it to this animation at the given time index.

It is better to create KeyFrames in time order. Creating them out of order can result in expensive reordering processing. Note that a KeyFrame at time index 0.0 is always created for you, so you don't need to create this one, just access it using getKeyFrame(0);

CreateVertexPoseKeyFrame ( float time ) : VertexPoseKeyFrame

Creates the single pose KeyFrame and adds it to this animation.

GetInterpolatedKeyFrame ( float time, KeyFrame kf ) : KeyFrame

This method in fact does nothing, since interpolation is not performed inside the keyframes for this type of track.

GetVertexMorphKeyFrame ( ushort index ) : VertexMorphKeyFrame

Returns the morph KeyFrame at the specified index.

GetVertexPoseKeyFrame ( ushort index ) : VertexPoseKeyFrame

Returns the pose KeyFrame at the specified index.

HasNonZeroKeyFrames ( ) : bool

Method to determine if this track has any KeyFrames which are doing anything useful - can be used to determine if this track can be optimised out.

Optimise ( ) : void

Optimise the current track by removing any duplicate keyframes.

VertexAnimationTrack ( Animation parent, VertexAnimationType animationType ) : System
VertexAnimationTrack ( Animation parent, VertexAnimationType animationType, VertexData targetVertexData, VertexAnimationTargetMode targetMode ) : System
VertexAnimationTrack ( Animation parent, ushort handle ) : System
VertexAnimationTrack ( Animation parent, ushort handle, VertexAnimationType animationType ) : System

Method Details

Apply() public method

public Apply ( float time, float weight, bool accumulate, float scale ) : void
time float
weight float
accumulate bool
scale float
return void

ApplyPoseToVertexData() public method

Utility method for applying pose animation
public ApplyPoseToVertexData ( Pose pose, VertexData data, float influence ) : void
pose Pose
data Axiom.Graphics.VertexData
influence float
return void

ApplyToVertexData() public method

As the 'apply' method but applies to specified VertexData instead of associated data.
public ApplyToVertexData ( VertexData data, float time, float weight, List poseList ) : void
data Axiom.Graphics.VertexData
time float
weight float
poseList List
return void

CreateKeyFrameImpl() public method

public CreateKeyFrameImpl ( float time ) : KeyFrame
time float
return KeyFrame

CreateVertexMorphKeyFrame() public method

Creates a new morph KeyFrame and adds it to this animation at the given time index.
It is better to create KeyFrames in time order. Creating them out of order can result in expensive reordering processing. Note that a KeyFrame at time index 0.0 is always created for you, so you don't need to create this one, just access it using getKeyFrame(0);
public CreateVertexMorphKeyFrame ( float time ) : VertexMorphKeyFrame
time float The time from which this KeyFrame will apply.
return VertexMorphKeyFrame

CreateVertexPoseKeyFrame() public method

Creates the single pose KeyFrame and adds it to this animation.
public CreateVertexPoseKeyFrame ( float time ) : VertexPoseKeyFrame
time float
return VertexPoseKeyFrame

GetInterpolatedKeyFrame() public method

This method in fact does nothing, since interpolation is not performed inside the keyframes for this type of track.
public GetInterpolatedKeyFrame ( float time, KeyFrame kf ) : KeyFrame
time float
kf KeyFrame
return KeyFrame

GetVertexMorphKeyFrame() public method

Returns the morph KeyFrame at the specified index.
public GetVertexMorphKeyFrame ( ushort index ) : VertexMorphKeyFrame
index ushort
return VertexMorphKeyFrame

GetVertexPoseKeyFrame() public method

Returns the pose KeyFrame at the specified index.
public GetVertexPoseKeyFrame ( ushort index ) : VertexPoseKeyFrame
index ushort
return VertexPoseKeyFrame

HasNonZeroKeyFrames() public method

Method to determine if this track has any KeyFrames which are doing anything useful - can be used to determine if this track can be optimised out.
public HasNonZeroKeyFrames ( ) : bool
return bool

Optimise() public method

Optimise the current track by removing any duplicate keyframes.
public Optimise ( ) : void
return void

VertexAnimationTrack() public method

public VertexAnimationTrack ( Animation parent, VertexAnimationType animationType ) : System
parent Animation
animationType VertexAnimationType
return System

VertexAnimationTrack() public method

public VertexAnimationTrack ( Animation parent, VertexAnimationType animationType, VertexData targetVertexData, VertexAnimationTargetMode targetMode ) : System
parent Animation
animationType VertexAnimationType
targetVertexData Axiom.Graphics.VertexData
targetMode VertexAnimationTargetMode
return System

VertexAnimationTrack() public method

public VertexAnimationTrack ( Animation parent, ushort handle ) : System
parent Animation
handle ushort
return System

VertexAnimationTrack() public method

public VertexAnimationTrack ( Animation parent, ushort handle, VertexAnimationType animationType ) : System
parent Animation
handle ushort
animationType VertexAnimationType
return System

Property Details

animationType protected_oe property

protected VertexAnimationType animationType
return VertexAnimationType

targetMode protected_oe property

protected VertexAnimationTargetMode targetMode
return VertexAnimationTargetMode

targetVertexData protected_oe property

protected VertexData,Axiom.Graphics targetVertexData
return Axiom.Graphics.VertexData