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.
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;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | AINode.
An array of |
| Modifier and Type | Field 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. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | AINode(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static AINode | |
| public static AINode. | calloc(int
the buffer capacity capacity)Returns a new |
| public static AINode | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AINode. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AINode | |
| public static AINode | |
| public static AINode. | |
| public static AINode. | |
| 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. the constructor, but returns the exact type of the Struct subclass.
|
| public static AINode | |
| public static AINode | |
| public static AINode. | create(int
the buffer capacity capacity)Returns a new |
| public static AINode. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static AINode | |
| public static AINode. | |
| public static AINode | |
| public static AINode. | malloc(int
the buffer capacity capacity)Returns a new |
| public static AINode | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AINode. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AINode | |
| public static AINode | |
| public static AINode. | |
| public static AINode. | |
| public PointerBuffer | |
| public AINode | mChildren(PointerBuffer value)
Sets the address of the specified |
| public IntBuffer | |
| public AINode | |
| public AIMetaData | |
| public AINode | |
| public AIString | |
| public AINode | |
| public AINode | |
| public int | |
| public int | |
| public AINode | |
| public AINode | |
| public AIMatrix4x4 | |
| public AINode | |
| public AINode | mTransformation(Consumer<AIMatrix4x4> consumer)
Passes the |
| public static PointerBuffer | |
| public static void | |
| public static IntBuffer | |
| public static void | |
| public static AIMetaData | |
| public static void | |
| public static AIString | |
| public static void | |
| public static int | |
| public static void | nmNumChildren(long struct, int value)
Sets the specified value to the |
| public static int | |
| public static void | nmNumMeshes(long struct, int value)
Sets the specified value to the |
| public static AINode | |
| public static void | |
| public static AIMatrix4x4 | |
| public static void | |
| public AINode | set(AIString mName, AIMatrix4x4 mTransformation, AINode mParent, PointerBuffer mChildren, IntBuffer mMeshes, AIMetaData mMetadata)
Initializes this struct with the specified values. |
| public AINode | |
| public int | |
| public static void |