C# Class OpenMetaverse.BinBVHAnimationReader

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

Public Properties

Property 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

Public Methods

Method 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

Method Description
EndianSwap ( byte arr, int offset, int len ) : byte[]

Method Details

BinBVHAnimationReader() public method

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

ReadBytesUntilNull() public method

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
return string

readJoint() public method

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
return binBVHJoint

readKeys() public method

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
return OpenMetaverse.binBVHJointKey[]

Property Details

EaseInTime public_oe property

Meta data. Ease in Seconds.
public Single,System EaseInTime
return System.Single

EaseOutTime public_oe property

Meta data. Ease out seconds.
public Single,System EaseOutTime
return System.Single

ExpressionName public_oe property

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

HandPose public_oe property

Meta Data for the Hand Pose
public uint HandPose
return uint

InPoint public_oe property

The time in seconds to start the animation
public Single,System InPoint
return System.Single

JointCount public_oe property

Number of joints defined in the animation
public uint JointCount
return uint

Length public_oe property

The animation length in seconds.
public Single,System Length
return System.Single

Loop public_oe property

Loop the animation
public bool Loop
return bool

OutPoint public_oe property

The time in seconds to end the animation
public Single,System OutPoint
return System.Single

Priority public_oe property

Animation Priority
public int Priority
return int

joints public_oe property

Contains an array of joints
public binBVHJoint[],OpenMetaverse joints
return OpenMetaverse.binBVHJoint[]

unknown0 public_oe property

public UInt16,System unknown0
return System.UInt16

unknown1 public_oe property

public UInt16,System unknown1
return System.UInt16