Top Description Inners Fields Constructors Methods
org.lwjgl.assimp

public Class AINode

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

A node in the imported hierarchy.

Each node has name, a parent node (except for the root node), a transformation relative to its parent and possibly several child nodes. Simple file formats don't support hierarchical structures - for these formats the imported scene does consist of only a single root node without children.

Layout


struct aiNode {
    struct aiString mName;
    struct aiMatrix4x4 mTransformation;
    struct aiNode * mParent;
    unsigned int mNumChildren;
    struct aiNode ** mChildren;
    unsigned int mNumMeshes;
    unsigned int * mMeshes;
    struct aiMetadata * mMetadata;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
AINode.Buffer

An array of AINode structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
MCHILDREN

The struct member offsets.

public static final int
MMESHES

The struct member offsets.

public static final int
MMETADATA

The struct member offsets.

public static final int
MNAME

The struct member offsets.

public static final int
MNUMCHILDREN

The struct member offsets.

public static final int
MNUMMESHES

The struct member offsets.

public static final int
MPARENT

The struct member offsets.

public static final int
MTRANSFORMATION

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
AINode(long address, ByteBuffer container)

public
AINode(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static AINode
calloc()

Returns a new AINode instance allocated with memCalloc.

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

Returns a new AINode.Buffer instance allocated with memCalloc.

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

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

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

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

public static AINode
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
protected AINode
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 AINode
create()

Returns a new AINode instance allocated with BufferUtils.

public static AINode
create(long address)

Returns a new AINode instance for the specified memory address.

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

Returns a new AINode.Buffer instance allocated with BufferUtils.

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

Create a AINode.Buffer instance at the specified memory.

public static AINode
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public static AINode
malloc()

Returns a new AINode instance allocated with memAlloc.

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

Returns a new AINode.Buffer instance allocated with memAlloc.

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

Returns a new AINode instance allocated on the specified MemoryStack.

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

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

public static AINode
mallocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public PointerBuffer
mChildren()

The child nodes of this node.

public AINode
mChildren(PointerBuffer value)

Sets the address of the specified PointerBuffer to the mChildren field.

public IntBuffer
mMeshes()

The meshes of this node.

public AINode
mMeshes(IntBuffer value)

Sets the address of the specified IntBuffer to the mMeshes field.

public AIMetaData
mMetadata()

Metadata associated with this node or NULL if there is no metadata.

public AINode
mMetadata(AIMetaData value)

Sets the address of the specified AIMetaData to the mMetadata field.

public AIString
mName()

The name of the node.

public AINode
mName(AIString value)

Copies the specified AIString to the mName field.

public AINode
mName(Consumer<AIString> consumer)

Passes the mName field to the specified Consumer.

public int
mNumChildren()

The number of child nodes of this node.

public int
mNumMeshes()

The number of meshes of this node.

public AINode
mParent()

Parent node.

public AINode
mParent(AINode value)

Sets the address of the specified AINode to the mParent field.

public AIMatrix4x4
mTransformation()

The transformation relative to the node's parent.

public AINode
mTransformation(AIMatrix4x4 value)

Copies the specified AIMatrix4x4 to the mTransformation field.

public AINode
mTransformation(Consumer<AIMatrix4x4> consumer)

Passes the mTransformation field to the specified Consumer.

public static PointerBuffer
nmChildren(long struct)

Unsafe version of mChildren.

public static void
nmChildren(long struct, PointerBuffer value)

Unsafe version of mChildren.

public static IntBuffer
nmMeshes(long struct)

Unsafe version of mMeshes.

public static void
nmMeshes(long struct, IntBuffer value)

Unsafe version of mMeshes.

public static AIMetaData
nmMetadata(long struct)

Unsafe version of mMetadata.

public static void
nmMetadata(long struct, AIMetaData value)

Unsafe version of mMetadata.

public static AIString
nmName(long struct)

Unsafe version of mName.

public static void
nmName(long struct, AIString value)

Unsafe version of mName.

public static int
nmNumChildren(long struct)

Unsafe version of mNumChildren.

public static void
nmNumChildren(long struct, int value)

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

public static int
nmNumMeshes(long struct)

Unsafe version of mNumMeshes.

public static void
nmNumMeshes(long struct, int value)

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

public static AINode
nmParent(long struct)

Unsafe version of mParent.

public static void
nmParent(long struct, AINode value)

Unsafe version of mParent.

public static AIMatrix4x4
nmTransformation(long struct)

Unsafe version of mTransformation.

public static void
nmTransformation(long struct, AIMatrix4x4 value)

Unsafe version of mTransformation.

public AINode
set(AIString mName, AIMatrix4x4 mTransformation, AINode mParent, PointerBuffer mChildren, IntBuffer mMeshes, AIMetaData mMetadata)

Initializes this struct with the specified values.

public AINode

Returns:

this struct
set
(AINode
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