C# Class OpenMetaverse.BinBVHAnimationReader

Reads in a byte array of an Animation Asset created by the SecondLife(tm) client.
Afficher le fichier Open project: openmetaversefoundation/libopenmetaverse-oldsvnconvert Class Usage Examples

Méthodes publiques

Свойство Type Description
EaseInTime System.Single
EaseOutTime System.Single
ExpressionName string
HandPose uint
InPoint System.Single
JointCount uint
Length System.Single
Loop bool
OutPoint System.Single
Priority int
joints OpenMetaverse.binBVHJoint[]
unknown0 System.UInt16
unknown1 System.UInt16

Méthodes publiques

Méthode Description
BinBVHAnimationReader ( byte animationdata ) : System

Searialize an animation asset into it's joints/keyframes/meta data

ReadBytesUntilNull ( byte data, int &i ) : string

Variable length strings seem to be null terminated in the animation asset.. but.. use with caution, home grown. advances the index.

readJoint ( byte data, int &i ) : binBVHJoint

Read in a Joint from an animation asset byte array Variable length Joint fields, yay! Advances the index

readKeys ( byte data, int &i, int keycount, float min, float max ) : OpenMetaverse.binBVHJointKey[]

Read Keyframes of a certain type advance i

Private Methods

Méthode Description
EndianSwap ( byte arr, int offset, int len ) : byte[]

Method Details

BinBVHAnimationReader() public méthode

Searialize an animation asset into it's joints/keyframes/meta data
public BinBVHAnimationReader ( byte animationdata ) : System
animationdata byte
Résultat System

ReadBytesUntilNull() public méthode

Variable length strings seem to be null terminated in the animation asset.. but.. use with caution, home grown. advances the index.
public ReadBytesUntilNull ( byte data, int &i ) : string
data byte The animation asset byte array
i int The offset to start reading
Résultat string

readJoint() public méthode

Read in a Joint from an animation asset byte array Variable length Joint fields, yay! Advances the index
public readJoint ( byte data, int &i ) : binBVHJoint
data byte animation asset byte array
i int Byte Offset of the start of the joint
Résultat binBVHJoint

readKeys() public méthode

Read Keyframes of a certain type advance i
public readKeys ( byte data, int &i, int keycount, float min, float max ) : OpenMetaverse.binBVHJointKey[]
data byte Animation Byte array
i int Offset in the Byte Array. Will be advanced
keycount int Number of Keyframes
min float Scaling Min to pass to the Uint16ToFloat method
max float Scaling Max to pass to the Uint16ToFloat method
Résultat OpenMetaverse.binBVHJointKey[]

Property Details

EaseInTime public_oe property

Meta data. Ease in Seconds.
public Single,System EaseInTime
Résultat System.Single

EaseOutTime public_oe property

Meta data. Ease out seconds.
public Single,System EaseOutTime
Résultat System.Single

ExpressionName public_oe property

Expression set in the client. Null if [None] is selected
public string ExpressionName
Résultat string

HandPose public_oe property

Meta Data for the Hand Pose
public uint HandPose
Résultat uint

InPoint public_oe property

The time in seconds to start the animation
public Single,System InPoint
Résultat System.Single

JointCount public_oe property

Number of joints defined in the animation
public uint JointCount
Résultat uint

Length public_oe property

The animation length in seconds.
public Single,System Length
Résultat System.Single

Loop public_oe property

Loop the animation
public bool Loop
Résultat bool

OutPoint public_oe property

The time in seconds to end the animation
public Single,System OutPoint
Résultat System.Single

Priority public_oe property

Animation Priority
public int Priority
Résultat int

joints public_oe property

Contains an array of joints
public binBVHJoint[],OpenMetaverse joints
Résultat OpenMetaverse.binBVHJoint[]

unknown0 public_oe property

public UInt16,System unknown0
Résultat System.UInt16

unknown1 public_oe property

public UInt16,System unknown1
Résultat System.UInt16