C# 클래스 Axiom.Animating.Animation

An animation sequence.
This class defines the interface for a sequence of animation, whether that be animation of a mesh, a path along a spline, or possibly more than one type of animation in one. An animation is made up of many 'tracks', which are the more specific types of animation.

You should not create these animations directly. They will be created via a parent object which owns the animation, e.g. Skeleton, SceneManager, etc.

파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
defaultInterpolationMode InterpolationMode
defaultRotationInterpolationMode RotationInterpolationMode
interpolationMode InterpolationMode
length float
name string
nodeTrackList NodeAnimationTrack>.Dictionary
numericTrackList NumericAnimationTrack>.Dictionary
rotationInterpolationMode RotationInterpolationMode
vertexTrackList VertexAnimationTrack>.Dictionary

공개 메소드들

메소드 설명
Apply ( Entity entity, float time, float weight, bool software, bool hardware ) : void
Apply ( Skeleton skeleton, float time, float weight, bool accumulate, float scale ) : void
Apply ( float time, float weight, bool accumulate, float scale ) : void

Applies an animation given a specific time point and weight.

Where you have associated animation tracks with Node objects, you can eaily apply an animation to those nodes by calling this method.

CreateNodeTrack ( ushort handle ) : NodeAnimationTrack

Creates an NodeAnimationTrack.

CreateNodeTrack ( ushort handle, Node targetNode ) : NodeAnimationTrack

Creates a new NodeAnimationTrack automatically associated with a Node.

CreateNumericTrack ( ushort handle ) : NumericAnimationTrack

Creates an NumericAnimationTrack.

CreateNumericTrack ( ushort handle, Axiom.Animating.AnimableValue animable ) : NumericAnimationTrack

Creates a new NumericAnimationTrack automatically associated with a Numeric.

CreateVertexTrack ( ushort handle, VertexAnimationType animType ) : VertexAnimationTrack

Creates an VertexAnimationTrack.

CreateVertexTrack ( ushort handle, VertexData targetVertexData, VertexAnimationType type ) : VertexAnimationTrack

Creates a new VertexAnimationTrack automatically associated with a Vertex.

비공개 메소드들

메소드 설명
Animation ( ) : System

Static constructor.

Animation ( string name, float length ) : System

Internal constructor, to prevent from using new outside of the engine.

Animations should be created within objects that can own them (skeletons, scene managers, etc).

TrackAdded ( object source, System e ) : void
TracksCleared ( object source, System e ) : void

메소드 상세

Apply() 공개 메소드

public Apply ( Entity entity, float time, float weight, bool software, bool hardware ) : void
entity Entity
time float
weight float
software bool
hardware bool
리턴 void

Apply() 공개 메소드

public Apply ( Skeleton skeleton, float time, float weight, bool accumulate, float scale ) : void
skeleton Skeleton
time float
weight float
accumulate bool
scale float
리턴 void

Apply() 공개 메소드

Applies an animation given a specific time point and weight.
Where you have associated animation tracks with Node objects, you can eaily apply an animation to those nodes 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

CreateNodeTrack() 공개 메소드

Creates an NodeAnimationTrack.
public CreateNodeTrack ( ushort handle ) : NodeAnimationTrack
handle ushort Handle to give the track, used for accessing the track later.
리턴 NodeAnimationTrack

CreateNodeTrack() 공개 메소드

Creates a new NodeAnimationTrack automatically associated with a Node.
public CreateNodeTrack ( ushort handle, Node targetNode ) : NodeAnimationTrack
handle ushort Handle to give the track, used for accessing the track later.
targetNode Axiom.Core.Node Node object which will be affected by this track.
리턴 NodeAnimationTrack

CreateNumericTrack() 공개 메소드

Creates an NumericAnimationTrack.
public CreateNumericTrack ( ushort handle ) : NumericAnimationTrack
handle ushort Handle to give the track, used for accessing the track later.
리턴 NumericAnimationTrack

CreateNumericTrack() 공개 메소드

Creates a new NumericAnimationTrack automatically associated with a Numeric.
public CreateNumericTrack ( ushort handle, Axiom.Animating.AnimableValue animable ) : NumericAnimationTrack
handle ushort Handle to give the track, used for accessing the track later.
animable Axiom.Animating.AnimableValue AnimableValue which will be affected by this track.
리턴 NumericAnimationTrack

CreateVertexTrack() 공개 메소드

Creates an VertexAnimationTrack.
public CreateVertexTrack ( ushort handle, VertexAnimationType animType ) : VertexAnimationTrack
handle ushort Handle to give the track, used for accessing the track later.
animType VertexAnimationType
리턴 VertexAnimationTrack

CreateVertexTrack() 공개 메소드

Creates a new VertexAnimationTrack automatically associated with a Vertex.
public CreateVertexTrack ( ushort handle, VertexData targetVertexData, VertexAnimationType type ) : VertexAnimationTrack
handle ushort Handle to give the track, used for accessing the track later.
targetVertexData Axiom.Graphics.VertexData Vertex object which will be affected by this track.
type VertexAnimationType
리턴 VertexAnimationTrack

프로퍼티 상세

defaultInterpolationMode 정적으로 보호되어 있는 프로퍼티

Default interpolation mode of any animations.
static protected InterpolationMode defaultInterpolationMode
리턴 InterpolationMode

defaultRotationInterpolationMode 정적으로 보호되어 있는 프로퍼티

default rotation interpolation mode of this animation.
static protected RotationInterpolationMode defaultRotationInterpolationMode
리턴 RotationInterpolationMode

interpolationMode 보호되어 있는 프로퍼티

Interpolation mode of this animation.
protected InterpolationMode interpolationMode
리턴 InterpolationMode

length 보호되어 있는 프로퍼티

The total length of this animation (sum of the tracks).
protected float length
리턴 float

name 보호되어 있는 프로퍼티

Name of this animation.
protected string name
리턴 string

nodeTrackList 보호되어 있는 프로퍼티

Collection of NodeAnimationTracks.
protected Dictionary nodeTrackList
리턴 NodeAnimationTrack>.Dictionary

numericTrackList 보호되어 있는 프로퍼티

Collection of NumericAnimationTracks.
protected Dictionary numericTrackList
리턴 NumericAnimationTrack>.Dictionary

rotationInterpolationMode 보호되어 있는 프로퍼티

Rotation interpolation mode of this animation.
protected RotationInterpolationMode rotationInterpolationMode
리턴 RotationInterpolationMode

vertexTrackList 보호되어 있는 프로퍼티

Collection of VertexAnimationTracks.
protected Dictionary vertexTrackList
리턴 VertexAnimationTrack>.Dictionary