C# Класс Axiom.Animating.NodeAnimationTrack

Наследование: AnimationTrack
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
isSplineRebuildNeeded bool
positionSpline PositionalSpline
rotationSpline RotationalSpline
scaleSpline PositionalSpline
target Node
useShortestPath bool

Открытые методы

Метод Описание
Apply ( float time, float weight, bool accumulate, float scale ) : void

Applies an animation track at a certain position to the target node.

When a track has bee associated with a target node, you can eaisly apply the animation to the target by calling this method.

ApplyToNode ( Node node, float time, float weight, bool accumulate, float scale ) : void

Same as the Apply method, but applies to a specified Node instead of it's associated node.

CreateKeyFrameImpl ( float time ) : KeyFrame

Specialised keyframe creation

CreateNodeKeyFrame ( float time ) : TransformKeyFrame

Creates a new 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);

GetInterpolatedKeyFrame ( float time, KeyFrame kf ) : KeyFrame

Gets a KeyFrame object which contains the interpolated transforms at the time index specified.

The KeyFrame objects held by this class are transformation snapshots at discrete points in time. Normally however, you want to interpolate between these keyframes to produce smooth movement, and this method allows you to do this easily. In animation terminology this is called 'tweening'.

GetNodeKeyFrame ( ushort index ) : TransformKeyFrame

Returns the 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.

NodeAnimationTrack ( Animation parent ) : System
NodeAnimationTrack ( Animation parent, Node target ) : System

Internal constructor, to prevent direction instantiation. Should be created via a call to the CreateTrack method of an Animation.

NodeAnimationTrack ( Animation parent, ushort handle ) : System
OnKeyFrameDataChanged ( ) : void

Called internally when keyframes belonging to this track are changed, in order to trigger a rebuild of the animation splines.

Optimise ( ) : void

Optimise the current track by removing any duplicate keyframes.

Защищенные методы

Метод Описание
BuildInterpolationSplines ( ) : void

Used to rebuild the internal interpolation splines for translations, rotations, and scaling.

Описание методов

Apply() публичный метод

Applies an animation track at a certain position to the target node.
When a track has bee associated with a target node, you can eaisly apply the animation to the target by calling this method.
public Apply ( float time, float weight, bool accumulate, float scale ) : void
time float The time position in the animation to apply.
weight float The influence to give to this track, 1.0 for full influence, less to blend with /// other animations.
accumulate bool
scale float
Результат void

ApplyToNode() публичный метод

Same as the Apply method, but applies to a specified Node instead of it's associated node.
public ApplyToNode ( Node node, float time, float weight, bool accumulate, float scale ) : void
node Axiom.Core.Node
time float
weight float
accumulate bool
scale float
Результат void

BuildInterpolationSplines() защищенный метод

Used to rebuild the internal interpolation splines for translations, rotations, and scaling.
protected BuildInterpolationSplines ( ) : void
Результат void

CreateKeyFrameImpl() публичный метод

Specialised keyframe creation
public CreateKeyFrameImpl ( float time ) : KeyFrame
time float
Результат KeyFrame

CreateNodeKeyFrame() публичный метод

Creates a new 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 CreateNodeKeyFrame ( float time ) : TransformKeyFrame
time float
Результат TransformKeyFrame

GetInterpolatedKeyFrame() публичный метод

Gets a KeyFrame object which contains the interpolated transforms at the time index specified.
The KeyFrame objects held by this class are transformation snapshots at discrete points in time. Normally however, you want to interpolate between these keyframes to produce smooth movement, and this method allows you to do this easily. In animation terminology this is called 'tweening'.
public GetInterpolatedKeyFrame ( float time, KeyFrame kf ) : KeyFrame
time float The time (in relation to the whole animation sequence).
kf KeyFrame
Результат KeyFrame

GetNodeKeyFrame() публичный метод

Returns the KeyFrame at the specified index.
public GetNodeKeyFrame ( ushort index ) : TransformKeyFrame
index ushort
Результат TransformKeyFrame

HasNonZeroKeyFrames() публичный метод

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
Результат bool

NodeAnimationTrack() публичный метод

public NodeAnimationTrack ( Animation parent ) : System
parent Animation
Результат System

NodeAnimationTrack() публичный метод

Internal constructor, to prevent direction instantiation. Should be created via a call to the CreateTrack method of an Animation.
public NodeAnimationTrack ( Animation parent, Node target ) : System
parent Animation
target Axiom.Core.Node
Результат System

NodeAnimationTrack() публичный метод

public NodeAnimationTrack ( Animation parent, ushort handle ) : System
parent Animation
handle ushort
Результат System

OnKeyFrameDataChanged() публичный метод

Called internally when keyframes belonging to this track are changed, in order to trigger a rebuild of the animation splines.
public OnKeyFrameDataChanged ( ) : void
Результат void

Optimise() публичный метод

Optimise the current track by removing any duplicate keyframes.
public Optimise ( ) : void
Результат void

Описание свойств

isSplineRebuildNeeded защищенное свойство

Flag indicating we need to rebuild the splines next time.
protected bool isSplineRebuildNeeded
Результат bool

positionSpline защищенное свойство

Spline for position interpolation.
protected PositionalSpline positionSpline
Результат PositionalSpline

rotationSpline защищенное свойство

Spline for rotation interpolation.
protected RotationalSpline rotationSpline
Результат RotationalSpline

scaleSpline защищенное свойство

Spline for scale interpolation.
protected PositionalSpline scaleSpline
Результат PositionalSpline

target защищенное свойство

Target node to be animated.
protected Node target
Результат Node

useShortestPath защищенное свойство

Defines if rotation is done using shortest path
protected bool useShortestPath
Результат bool