C# Class Axiom.Animating.VertexAnimationTrack

Inheritance: AnimationTrack
Afficher le fichier Open project: WolfgangSt/axiom Class Usage Examples

Protected Properties

Свойство Type Description
animationType VertexAnimationType
targetMode VertexAnimationTargetMode
targetVertexData Axiom.Graphics.VertexData

Méthodes publiques

Méthode 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 méthode

public Apply ( float time, float weight, bool accumulate, float scale ) : void
time float
weight float
accumulate bool
scale float
Résultat void

ApplyPoseToVertexData() public méthode

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

ApplyToVertexData() public méthode

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
Résultat void

CreateKeyFrameImpl() public méthode

public CreateKeyFrameImpl ( float time ) : KeyFrame
time float
Résultat KeyFrame

CreateVertexMorphKeyFrame() public méthode

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.
Résultat VertexMorphKeyFrame

CreateVertexPoseKeyFrame() public méthode

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

GetInterpolatedKeyFrame() public méthode

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
Résultat KeyFrame

GetVertexMorphKeyFrame() public méthode

Returns the morph KeyFrame at the specified index.
public GetVertexMorphKeyFrame ( ushort index ) : VertexMorphKeyFrame
index ushort
Résultat VertexMorphKeyFrame

GetVertexPoseKeyFrame() public méthode

Returns the pose KeyFrame at the specified index.
public GetVertexPoseKeyFrame ( ushort index ) : VertexPoseKeyFrame
index ushort
Résultat VertexPoseKeyFrame

HasNonZeroKeyFrames() public méthode

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
Résultat bool

Optimise() public méthode

Optimise the current track by removing any duplicate keyframes.
public Optimise ( ) : void
Résultat void

VertexAnimationTrack() public méthode

public VertexAnimationTrack ( Animation parent, VertexAnimationType animationType ) : System
parent Animation
animationType VertexAnimationType
Résultat System

VertexAnimationTrack() public méthode

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

VertexAnimationTrack() public méthode

public VertexAnimationTrack ( Animation parent, ushort handle ) : System
parent Animation
handle ushort
Résultat System

VertexAnimationTrack() public méthode

public VertexAnimationTrack ( Animation parent, ushort handle, VertexAnimationType animationType ) : System
parent Animation
handle ushort
animationType VertexAnimationType
Résultat System

Property Details

animationType protected_oe property

protected VertexAnimationType animationType
Résultat VertexAnimationType

targetMode protected_oe property

protected VertexAnimationTargetMode targetMode
Résultat VertexAnimationTargetMode

targetVertexData protected_oe property

protected VertexData,Axiom.Graphics targetVertexData
Résultat Axiom.Graphics.VertexData