Class AINodeAnim

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class AINodeAnim extends Struct<AINodeAnim> implements NativeResource

 struct aiNodeAnim {
     {@link AIString struct aiString} mNodeName;
     unsigned int mNumPositionKeys;
     {@link AIVectorKey struct aiVectorKey} * mPositionKeys;
     unsigned int mNumRotationKeys;
     {@link AIQuatKey struct aiQuatKey} * mRotationKeys;
     unsigned int mNumScalingKeys;
     {@link AIVectorKey struct aiVectorKey} * mScalingKeys;
     aiAnimBehaviour mPreState;
     aiAnimBehaviour mPostState;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • MNODENAME

      public static final int MNODENAME
      The struct member offsets.
    • MNUMPOSITIONKEYS

      public static final int MNUMPOSITIONKEYS
      The struct member offsets.
    • MPOSITIONKEYS

      public static final int MPOSITIONKEYS
      The struct member offsets.
    • MNUMROTATIONKEYS

      public static final int MNUMROTATIONKEYS
      The struct member offsets.
    • MROTATIONKEYS

      public static final int MROTATIONKEYS
      The struct member offsets.
    • MNUMSCALINGKEYS

      public static final int MNUMSCALINGKEYS
      The struct member offsets.
    • MSCALINGKEYS

      public static final int MSCALINGKEYS
      The struct member offsets.
    • MPRESTATE

      public static final int MPRESTATE
      The struct member offsets.
    • MPOSTSTATE

      public static final int MPOSTSTATE
      The struct member offsets.
  • Constructor Details

    • AINodeAnim

      public AINodeAnim(ByteBuffer container)
      Creates a AINodeAnim instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<AINodeAnim>
    • mNodeName

      public AIString mNodeName()
      Returns:
      a AIString view of the mNodeName field.
    • mNumPositionKeys

      public int mNumPositionKeys()
      Returns:
      the value of the mNumPositionKeys field.
    • mPositionKeys

      public @Nullable AIVectorKey.Buffer mPositionKeys()
      Returns:
      a AIVectorKey.Buffer view of the struct array pointed to by the mPositionKeys field.
    • mNumRotationKeys

      public int mNumRotationKeys()
      Returns:
      the value of the mNumRotationKeys field.
    • mRotationKeys

      public @Nullable AIQuatKey.Buffer mRotationKeys()
      Returns:
      a AIQuatKey.Buffer view of the struct array pointed to by the mRotationKeys field.
    • mNumScalingKeys

      public int mNumScalingKeys()
      Returns:
      the value of the mNumScalingKeys field.
    • mScalingKeys

      public @Nullable AIVectorKey.Buffer mScalingKeys()
      Returns:
      a AIVectorKey.Buffer view of the struct array pointed to by the mScalingKeys field.
    • mPreState

      public int mPreState()
      Returns:
      the value of the mPreState field.
    • mPostState

      public int mPostState()
      Returns:
      the value of the mPostState field.
    • mNodeName

      public AINodeAnim mNodeName(AIString value)
      Copies the specified AIString to the mNodeName field.
    • mNodeName

      public AINodeAnim mNodeName(Consumer<AIString> consumer)
      Passes the mNodeName field to the specified Consumer.
    • mPositionKeys

      public AINodeAnim mPositionKeys(@Nullable AIVectorKey.Buffer value)
      Sets the address of the specified AIVectorKey.Buffer to the mPositionKeys field.
    • mRotationKeys

      public AINodeAnim mRotationKeys(@Nullable AIQuatKey.Buffer value)
      Sets the address of the specified AIQuatKey.Buffer to the mRotationKeys field.
    • mScalingKeys

      public AINodeAnim mScalingKeys(@Nullable AIVectorKey.Buffer value)
      Sets the address of the specified AIVectorKey.Buffer to the mScalingKeys field.
    • mPreState

      public AINodeAnim mPreState(int value)
      Sets the specified value to the mPreState field.
    • mPostState

      public AINodeAnim mPostState(int value)
      Sets the specified value to the mPostState field.
    • set

      public AINodeAnim set(AIString mNodeName, @Nullable AIVectorKey.Buffer mPositionKeys, @Nullable AIQuatKey.Buffer mRotationKeys, @Nullable AIVectorKey.Buffer mScalingKeys, int mPreState, int mPostState)
      Initializes this struct with the specified values.
    • set

      public AINodeAnim set(AINodeAnim src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static AINodeAnim malloc()
      Returns a new AINodeAnim instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static AINodeAnim calloc()
      Returns a new AINodeAnim instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static AINodeAnim create()
      Returns a new AINodeAnim instance allocated with BufferUtils.
    • create

      public static AINodeAnim create(long address)
      Returns a new AINodeAnim instance for the specified memory address.
    • createSafe

      public static @Nullable AINodeAnim createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static AINodeAnim.Buffer malloc(int capacity)
      Returns a new AINodeAnim.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static AINodeAnim.Buffer calloc(int capacity)
      Returns a new AINodeAnim.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static AINodeAnim.Buffer create(int capacity)
      Returns a new AINodeAnim.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static AINodeAnim.Buffer create(long address, int capacity)
      Create a AINodeAnim.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable AINodeAnim.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • mallocStack

      @Deprecated public static AINodeAnim mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static AINodeAnim callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static AINodeAnim mallocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static AINodeAnim callocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static AINodeAnim.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static AINodeAnim.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static AINodeAnim.Buffer mallocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static AINodeAnim.Buffer callocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

      public static AINodeAnim malloc(MemoryStack stack)
      Returns a new AINodeAnim instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static AINodeAnim calloc(MemoryStack stack)
      Returns a new AINodeAnim instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static AINodeAnim.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new AINodeAnim.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static AINodeAnim.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new AINodeAnim.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nmNodeName

      public static AIString nmNodeName(long struct)
      Unsafe version of mNodeName().
    • nmNumPositionKeys

      public static int nmNumPositionKeys(long struct)
      Unsafe version of mNumPositionKeys().
    • nmPositionKeys

      public static @Nullable AIVectorKey.Buffer nmPositionKeys(long struct)
      Unsafe version of mPositionKeys().
    • nmNumRotationKeys

      public static int nmNumRotationKeys(long struct)
      Unsafe version of mNumRotationKeys().
    • nmRotationKeys

      public static @Nullable AIQuatKey.Buffer nmRotationKeys(long struct)
      Unsafe version of mRotationKeys().
    • nmNumScalingKeys

      public static int nmNumScalingKeys(long struct)
      Unsafe version of mNumScalingKeys().
    • nmScalingKeys

      public static @Nullable AIVectorKey.Buffer nmScalingKeys(long struct)
      Unsafe version of mScalingKeys().
    • nmPreState

      public static int nmPreState(long struct)
      Unsafe version of mPreState().
    • nmPostState

      public static int nmPostState(long struct)
      Unsafe version of mPostState().
    • nmNodeName

      public static void nmNodeName(long struct, AIString value)
      Unsafe version of mNodeName.
    • nmNumPositionKeys

      public static void nmNumPositionKeys(long struct, int value)
      Sets the specified value to the mNumPositionKeys field of the specified struct.
    • nmPositionKeys

      public static void nmPositionKeys(long struct, @Nullable AIVectorKey.Buffer value)
      Unsafe version of mPositionKeys.
    • nmNumRotationKeys

      public static void nmNumRotationKeys(long struct, int value)
      Sets the specified value to the mNumRotationKeys field of the specified struct.
    • nmRotationKeys

      public static void nmRotationKeys(long struct, @Nullable AIQuatKey.Buffer value)
      Unsafe version of mRotationKeys.
    • nmNumScalingKeys

      public static void nmNumScalingKeys(long struct, int value)
      Sets the specified value to the mNumScalingKeys field of the specified struct.
    • nmScalingKeys

      public static void nmScalingKeys(long struct, @Nullable AIVectorKey.Buffer value)
      Unsafe version of mScalingKeys.
    • nmPreState

      public static void nmPreState(long struct, int value)
      Unsafe version of mPreState.
    • nmPostState

      public static void nmPostState(long struct, int value)
      Unsafe version of mPostState.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate