A bone has a name by which it can be found in the frame hierarchy and by which it can be addressed by animations. In addition it has a number of influences on vertices, and a matrix relating the mesh position to the position of the bone at the time of binding.
struct aiBone {
struct aiString mName;
unsigned int mNumWeights;
struct aiNode * mArmature;
struct aiNode * mNode;
struct aiVertexWeight * mWeights;
struct aiMatrix4x4 mOffsetMatrix;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | AIBone.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | MARMATURE
The struct member offsets. |
| public static final int | MNAME
The struct member offsets. |
| public static final int | MNODE
The struct member offsets. |
| public static final int | MNUMWEIGHTS
The struct member offsets. |
| public static final int | MOFFSETMATRIX
The struct member offsets. |
| public static final int | MWEIGHTS
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | AIBone(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static AIBone | |
| public static AIBone. | calloc(int
the buffer capacity capacity)Returns a new |
| public static AIBone | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AIBone. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AIBone | |
| public static AIBone | |
| public static AIBone. | |
| public static AIBone. | |
| protected AIBone | 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 AIBone | |
| public static AIBone | |
| public static AIBone. | create(int
the buffer capacity capacity)Returns a new |
| public static AIBone. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static AIBone | |
| public static AIBone. | |
| public static AIBone | |
| public static AIBone. | malloc(int
the buffer capacity capacity)Returns a new |
| public static AIBone | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AIBone. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AIBone | |
| public static AIBone | |
| public static AIBone. | |
| public static AIBone. | |
| public AINode | mArmature()
the bone armature node - used for skeleton conversion you must enable |
| public AIBone | |
| public AIString | |
| public AIBone | |
| public AIBone | |
| public AINode | mNode()
the bone node in the scene - used for skeleton conversion you must enable |
| public AIBone | |
| public int | |
| public AIMatrix4x4 | |
| public AIBone | |
| public AIBone | mOffsetMatrix(Consumer<AIMatrix4x4> consumer)
Passes the |
| public AIVertexWeight. | |
| public AIBone | mWeights(AIVertexWeight.
Sets the address of the specified |
| public static AINode | |
| public static void | |
| public static AIString | |
| public static void | |
| public static AINode | |
| public static void | |
| public static int | |
| public static void | nmNumWeights(long struct, int value)
Sets the specified value to the |
| public static AIMatrix4x4 | |
| public static void | |
| public static AIVertexWeight. | |
| public static void | |
| public AIBone | set(AIString mName, AINode mArmature, AINode mNode, AIVertexWeight.
Initializes this struct with the specified values. |
| public AIBone | |
| public int | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| MARMATURE | back to summary |
|---|---|
| public static final int MARMATURE The struct member offsets. | |
| MNAME | back to summary |
|---|---|
| public static final int MNAME The struct member offsets. | |
| MNODE | back to summary |
|---|---|
| public static final int MNODE The struct member offsets. | |
| MNUMWEIGHTS | back to summary |
|---|---|
| public static final int MNUMWEIGHTS The struct member offsets. | |
| MOFFSETMATRIX | back to summary |
|---|---|
| public static final int MOFFSETMATRIX The struct member offsets. | |
| MWEIGHTS | back to summary |
|---|---|
| public static final int MWEIGHTS The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| AIBone | back to summary |
|---|---|
| protected AIBone(long address, ByteBuffer container) | |
| AIBone | back to summary |
|---|---|
| public AIBone(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static AIBone calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static AIBone. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static AIBone calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static AIBone. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static AIBone callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static AIBone callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static AIBone. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static AIBone. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected AIBone create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static AIBone create() Returns a new | |
| create | back to summary |
|---|---|
| public static AIBone create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static AIBone. Returns a new
| |
| create | back to summary |
|---|---|
| public static AIBone. Create a
| |
| createSafe | back to summary |
|---|---|
| public static AIBone createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static AIBone. Like
| |
| malloc | back to summary |
|---|---|
| public static AIBone malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static AIBone. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static AIBone malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static AIBone. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static AIBone mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static AIBone mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static AIBone. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static AIBone. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mArmature | back to summary |
|---|---|
| public AINode mArmature() the bone armature node - used for skeleton conversion you must enable
| |
| mArmature | back to summary |
|---|---|
| public AIBone mArmature(AINode value) Sets the address of the specified | |
| mName | back to summary |
|---|---|
| public AIString mName() the name of the bone.
| |
| mName | back to summary |
|---|---|
| public AIBone mName(AIString value) | |
| mName | back to summary |
|---|---|
| public AIBone mName(Consumer<AIString> consumer) | |
| mNode | back to summary |
|---|---|
| public AINode mNode() the bone node in the scene - used for skeleton conversion you must enable
| |
| mNode | back to summary |
|---|---|
| public AIBone mNode(AINode value) Sets the address of the specified | |
| mNumWeights | back to summary |
|---|---|
| public int mNumWeights() the number of vertices affected by this bone. The maximum value for this member is
| |
| mOffsetMatrix | back to summary |
|---|---|
| public AIMatrix4x4 mOffsetMatrix() matrix that transforms from mesh space to bone space in bind pose. This matrix describes the position of the mesh in the local space of this bone when the skeleton was bound. Thus it can be used directly to determine a desired vertex position, given the world-space transform of the bone when animated, and the position of the vertex in mesh space. It is sometimes called an inverse-bind matrix, or inverse bind pose matrix.
| |
| mOffsetMatrix | back to summary |
|---|---|
| public AIBone mOffsetMatrix(AIMatrix4x4 value) Copies the specified | |
| mOffsetMatrix | back to summary |
|---|---|
| public AIBone mOffsetMatrix(Consumer<AIMatrix4x4> consumer) Passes the | |
| mWeights | back to summary |
|---|---|
| public AIVertexWeight. the influence weights of this bone, by vertex index
| |
| mWeights | back to summary |
|---|---|
| public AIBone mWeights(AIVertexWeight. Sets the address of the specified | |
| nmArmature | back to summary |
|---|---|
| public static AINode nmArmature(long struct) Unsafe version of | |
| nmArmature | back to summary |
|---|---|
| public static void nmArmature(long struct, AINode value) Unsafe version of | |
| nmName | back to summary |
|---|---|
| public static AIString nmName(long struct) Unsafe version of | |
| nmName | back to summary |
|---|---|
| public static void nmName(long struct, AIString value) Unsafe version of | |
| nmNode | back to summary |
|---|---|
| public static AINode nmNode(long struct) Unsafe version of | |
| nmNode | back to summary |
|---|---|
| public static void nmNode(long struct, AINode value) Unsafe version of | |
| nmNumWeights | back to summary |
|---|---|
| public static int nmNumWeights(long struct) Unsafe version of | |
| nmNumWeights | back to summary |
|---|---|
| public static void nmNumWeights(long struct, int value) Sets the specified value to the | |
| nmOffsetMatrix | back to summary |
|---|---|
| public static AIMatrix4x4 nmOffsetMatrix(long struct) Unsafe version of | |
| nmOffsetMatrix | back to summary |
|---|---|
| public static void nmOffsetMatrix(long struct, AIMatrix4x4 value) Unsafe version of | |
| nmWeights | back to summary |
|---|---|
| public static AIVertexWeight. Unsafe version of | |
| nmWeights | back to summary |
|---|---|
| public static void nmWeights(long struct, AIVertexWeight. Unsafe version of | |
| set | back to summary |
|---|---|
| public AIBone set(AIString mName, AINode mArmature, AINode mNode, AIVertexWeight. Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public AIBone set(AIBone src) Copies the specified struct data to this struct. | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
AIBone structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final AIBone |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected AIBone | |
| public AINode | |
| public AIBone. | |
| public AIString | |
| public AIBone. | |
| public AIBone. | |
| public AINode | |
| public AIBone. | |
| public int | |
| public AIMatrix4x4 | |
| public AIBone. | |
| public AIBone. | mOffsetMatrix(Consumer<AIMatrix4x4> consumer)
Passes the |
| public AIVertexWeight. | |
| public AIBone. | mWeights(AIVertexWeight.
Sets the address of the specified |
| protected AIBone. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final AIBone ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| getElementFactory | back to summary |
|---|---|
| protected AIBone getElementFactory() Implements abstract org.
| |
| mArmature | back to summary |
|---|---|
public AINode mArmature()
| |
| mArmature | back to summary |
|---|---|
| public AIBone. Sets the address of the specified | |
| mName | back to summary |
|---|---|
public AIString mName()
| |
| mName | back to summary |
|---|---|
| public AIBone. Copies the specified | |
| mName | back to summary |
|---|---|
| public AIBone. Passes the | |
| mNode | back to summary |
|---|---|
public AINode mNode()
| |
| mNode | back to summary |
|---|---|
| public AIBone. Sets the address of the specified | |
| mNumWeights | back to summary |
|---|---|
public int mNumWeights()
| |
| mOffsetMatrix | back to summary |
|---|---|
public AIMatrix4x4 mOffsetMatrix()
| |
| mOffsetMatrix | back to summary |
|---|---|
| public AIBone. Copies the specified | |
| mOffsetMatrix | back to summary |
|---|---|
| public AIBone. Passes the | |
| mWeights | back to summary |
|---|---|
public AIVertexWeight.
| |
| mWeights | back to summary |
|---|---|
| public AIBone. Sets the address of the specified | |
| self | back to summary |
|---|---|
| protected AIBone. Implements abstract org.
| |