Click or drag to resize
DigitalRuneAvatarPose Class
Represents the skeletal pose and facial expression of an Xbox LIVE Avatar. (Only available in the XNA-compatible build for Windows and Xbox 360.)
Inheritance Hierarchy
SystemObject
  DigitalRune.Animation.CharacterAvatarPose

Namespace: DigitalRune.Animation.Character
Assembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public class AvatarPose : IAnimatableObject, INamedObject, 
	IAvatarAnimation

The AvatarPose type exposes the following members.

Constructors
  NameDescription
Public methodAvatarPose(AvatarRenderer)
Initializes a new instance of the AvatarPose class for the given avatar renderer.
Public methodAvatarPose(Skeleton)
Initializes a new instance of the AvatarPose class for the given skeleton.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyExpression
Gets the facial expression at the current time position.
Public propertyName
Gets or sets the name of the avatar pose. (Same as the name of the SkeletonPose.)
Public propertySkeletonPose
Gets the skeleton pose at the current time position.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate propertyIAvatarAnimation.BoneTransforms
Gets the current position of the bones.
Explicit interface implementationPrivate propertyIAvatarAnimation.CurrentPosition
Not implemented.
Explicit interface implementationPrivate propertyIAvatarAnimation.Length
Not implemented.
Explicit interface implementationPrivate methodIAvatarAnimation.Update
Updates the current time position of the avatar animation.
Explicit interface implementationPrivate methodIAnimatableObjectGetAnimatablePropertyT
Gets the property with given name and type which can be animated.
Explicit interface implementationPrivate methodIAnimatableObjectGetAnimatedProperties
Gets either the properties which are currently animated, or all properties which can be animated. (See remarks.)
Top
Remarks

This type is available only in the XNA-compatible builds of the DigitalRune.Animation.dll for Windows and Xbox 360.)

The AvatarPose stores the facial expression (see property Expression) and the skeleton pose (see property SkeletonPose) of an Xbox LIVE Avatar.

The skeleton and the skeleton pose is automatically created from an XNA AvatarRenderer instance. The avatar renderer must already be in its "ready" state (AvatarRender.State == AvatarRendererState.Ready) when the AvatarPose is created.

IAnimatableObject:
The AvatarPose implements the interface IAnimatableObject, which means that it can be animated using the animation system. The animatable properties are SkeletonPose and Expression. (When calling the method GetAnimatablePropertyT(String) directly the properties are identified using the strings "SkeletonPose" and "Expression".)

IAvatarAnimation:
The class implements the interface IAvatarAnimation, which means the object can be passed to an AvatarRenderer for rendering.

See Also