C# Класс OpenMetaverse.BinBVHAnimationReader

Reads in a byte array of an Animation Asset created by the SecondLife(tm) client.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

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

Метод Описание
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

Приватные методы

Метод Описание
EndianSwap ( byte arr, int offset, int len ) : byte[]

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

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

Searialize an animation asset into it's joints/keyframes/meta data
public BinBVHAnimationReader ( byte animationdata ) : System
animationdata byte
Результат System

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

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

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

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

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

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
Результат OpenMetaverse.binBVHJointKey[]

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

EaseInTime публичное свойство

Meta data. Ease in Seconds.
public Single,System EaseInTime
Результат System.Single

EaseOutTime публичное свойство

Meta data. Ease out seconds.
public Single,System EaseOutTime
Результат System.Single

ExpressionName публичное свойство

Expression set in the client. Null if [None] is selected
public string ExpressionName
Результат string

HandPose публичное свойство

Meta Data for the Hand Pose
public uint HandPose
Результат uint

InPoint публичное свойство

The time in seconds to start the animation
public Single,System InPoint
Результат System.Single

JointCount публичное свойство

Number of joints defined in the animation
public uint JointCount
Результат uint

Length публичное свойство

The animation length in seconds.
public Single,System Length
Результат System.Single

Loop публичное свойство

Loop the animation
public bool Loop
Результат bool

OutPoint публичное свойство

The time in seconds to end the animation
public Single,System OutPoint
Результат System.Single

Priority публичное свойство

Animation Priority
public int Priority
Результат int

joints публичное свойство

Contains an array of joints
public binBVHJoint[],OpenMetaverse joints
Результат OpenMetaverse.binBVHJoint[]

unknown0 публичное свойство

public UInt16,System unknown0
Результат System.UInt16

unknown1 публичное свойство

public UInt16,System unknown1
Результат System.UInt16