Top Description Inners Fields Constructors Methods
org.lwjgl.assimp

public Class AINodeAnim

extends Struct<AINodeAnim>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct aiNodeAnim
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Describes the animation of a single node. The name specifies the bone/node which is affected by this animation channel. The keyframes are given in three separate series of values, one each for position, rotation and scaling. The transformation matrix computed from these values replaces the node's original transformation matrix at a specific time.

This means all keys are absolute and not relative to the bone default pose. The order in which the transformations are applied is - as usual - scaling, rotation, translation.

Note:

All keys are returned in their correct, chronological order. Duplicate keys don't pass the validation step. Most likely there will be no negative time values, but they are not forbidden also ( so implementations need to cope with them! )

Layout


struct aiNodeAnim {
    struct aiString mNodeName;
    unsigned int mNumPositionKeys;
    struct aiVectorKey * mPositionKeys;
    unsigned int mNumRotationKeys;
    struct aiQuatKey * mRotationKeys;
    unsigned int mNumScalingKeys;
    struct aiVectorKey * mScalingKeys;
    aiAnimBehaviour mPreState;
    aiAnimBehaviour mPostState;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
AINodeAnim.Buffer

An array of AINodeAnim structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
MNODENAME

The struct member offsets.

public static final int
MNUMPOSITIONKEYS

The struct member offsets.

public static final int
MNUMROTATIONKEYS

The struct member offsets.

public static final int
MNUMSCALINGKEYS

The struct member offsets.

public static final int
MPOSITIONKEYS

The struct member offsets.

public static final int
MPOSTSTATE

The struct member offsets.

public static final int
MPRESTATE

The struct member offsets.

public static final int
MROTATIONKEYS

The struct member offsets.

public static final int
MSCALINGKEYS

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
AINodeAnim(long address, ByteBuffer container)

public
AINodeAnim(ByteBuffer container)

Creates a AINodeAnim instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static AINodeAnim
calloc()

Returns a new AINodeAnim instance allocated with memCalloc.

public static AINodeAnim.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new AINodeAnim.Buffer instance allocated with memCalloc.

public static AINodeAnim
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new AINodeAnim instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static AINodeAnim.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new AINodeAnim.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static AINodeAnim
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static AINodeAnim
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static AINodeAnim.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static AINodeAnim.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected AINodeAnim
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static AINodeAnim
create()

Returns a new AINodeAnim instance allocated with BufferUtils.

public static AINodeAnim
create(long address)

Returns a new AINodeAnim instance for the specified memory address.

public static AINodeAnim.Buffer
create(int
the buffer capacity
capacity
)

Returns a new AINodeAnim.Buffer instance allocated with BufferUtils.

public static AINodeAnim.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a AINodeAnim.Buffer instance at the specified memory.

public static AINodeAnim
createSafe(long address)

Like create, but returns null if address is NULL.

public static AINodeAnim.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static AINodeAnim
malloc()

Returns a new AINodeAnim instance allocated with memAlloc.

public static AINodeAnim.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new AINodeAnim.Buffer instance allocated with memAlloc.

public static AINodeAnim
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new AINodeAnim instance allocated on the specified MemoryStack.

public static AINodeAnim.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new AINodeAnim.Buffer instance allocated on the specified MemoryStack.

public static AINodeAnim
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static AINodeAnim
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static AINodeAnim.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static AINodeAnim.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public AIString
mNodeName()

The name of the node affected by this animation.

public AINodeAnim
mNodeName(AIString value)

Copies the specified AIString to the mNodeName field.

public AINodeAnim
mNodeName(Consumer<AIString> consumer)

Passes the mNodeName field to the specified Consumer.

public int
mNumPositionKeys()

The number of position keys

public int
mNumRotationKeys()

The number of rotation keys

public int
mNumScalingKeys()

The number of scaling keys

public AIVectorKey.Buffer
mPositionKeys()

The position keys of this animation channel.

public AINodeAnim
mPositionKeys(AIVectorKey.Buffer value)

Sets the address of the specified AIVectorKey.Buffer to the mPositionKeys field.

public int
mPostState()

Defines how the animation behaves after the last key was processed.

public AINodeAnim
mPostState(int value)

Sets the specified value to the mPostState field.

public int
mPreState()

Defines how the animation behaves before the first key is encountered.

public AINodeAnim
mPreState(int value)

Sets the specified value to the mPreState field.

public AIQuatKey.Buffer
mRotationKeys()

The rotation keys of this animation channel.

public AINodeAnim
mRotationKeys(AIQuatKey.Buffer value)

Sets the address of the specified AIQuatKey.Buffer to the mRotationKeys field.

public AIVectorKey.Buffer
mScalingKeys()

The scaling keys of this animation channel.

public AINodeAnim
mScalingKeys(AIVectorKey.Buffer value)

Sets the address of the specified AIVectorKey.Buffer to the mScalingKeys field.

public static AIString
nmNodeName(long struct)

Unsafe version of mNodeName.

public static void
nmNodeName(long struct, AIString value)

Unsafe version of mNodeName.

public static int
nmNumPositionKeys(long struct)

Unsafe version of mNumPositionKeys.

public static void
nmNumPositionKeys(long struct, int value)

Sets the specified value to the mNumPositionKeys field of the specified struct.

public static int
nmNumRotationKeys(long struct)

Unsafe version of mNumRotationKeys.

public static void
nmNumRotationKeys(long struct, int value)

Sets the specified value to the mNumRotationKeys field of the specified struct.

public static int
nmNumScalingKeys(long struct)

Unsafe version of mNumScalingKeys.

public static void
nmNumScalingKeys(long struct, int value)

Sets the specified value to the mNumScalingKeys field of the specified struct.

public static AIVectorKey.Buffer
nmPositionKeys(long struct)

Unsafe version of mPositionKeys.

public static void
nmPositionKeys(long struct, AIVectorKey.Buffer value)

Unsafe version of mPositionKeys.

public static int
nmPostState(long struct)

Unsafe version of mPostState.

public static void
nmPostState(long struct, int value)

Unsafe version of mPostState.

public static int
nmPreState(long struct)

Unsafe version of mPreState.

public static void
nmPreState(long struct, int value)

Unsafe version of mPreState.

public static AIQuatKey.Buffer
nmRotationKeys(long struct)

Unsafe version of mRotationKeys.

public static void
nmRotationKeys(long struct, AIQuatKey.Buffer value)

Unsafe version of mRotationKeys.

public static AIVectorKey.Buffer
nmScalingKeys(long struct)

Unsafe version of mScalingKeys.

public static void
nmScalingKeys(long struct, AIVectorKey.Buffer value)

Unsafe version of mScalingKeys.

public AINodeAnim
set(AIString mNodeName, AIVectorKey.Buffer mPositionKeys, AIQuatKey.Buffer mRotationKeys, AIVectorKey.Buffer mScalingKeys, int mPreState, int mPostState)

Initializes this struct with the specified values.

public AINodeAnim

Returns:

this struct
set
(AINodeAnim
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate