Class XrTrackablePlaneANDROID

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrTrackablePlaneANDROID extends Struct<XrTrackablePlaneANDROID> implements NativeResource

 struct XrTrackablePlaneANDROID {
     XrStructureType type;
     void * next;
     XrTrackingStateANDROID trackingState;
     XrPosef centerPose;
     XrExtent2Df extents;
     XrPlaneTypeANDROID planeType;
     XrPlaneLabelANDROID planeLabel;
     XrTrackableANDROID subsumedByPlane;
     XrTime lastUpdatedTime;
     uint32_t vertexCapacityInput;
     uint32_t * vertexCountOutput;
     XrVector2f * vertices;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • TRACKINGSTATE

      public static final int TRACKINGSTATE
      The struct member offsets.
    • CENTERPOSE

      public static final int CENTERPOSE
      The struct member offsets.
    • EXTENTS

      public static final int EXTENTS
      The struct member offsets.
    • PLANETYPE

      public static final int PLANETYPE
      The struct member offsets.
    • PLANELABEL

      public static final int PLANELABEL
      The struct member offsets.
    • SUBSUMEDBYPLANE

      public static final int SUBSUMEDBYPLANE
      The struct member offsets.
    • LASTUPDATEDTIME

      public static final int LASTUPDATEDTIME
      The struct member offsets.
    • VERTEXCAPACITYINPUT

      public static final int VERTEXCAPACITYINPUT
      The struct member offsets.
    • VERTEXCOUNTOUTPUT

      public static final int VERTEXCOUNTOUTPUT
      The struct member offsets.
    • VERTICES

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

    • XrTrackablePlaneANDROID

      public XrTrackablePlaneANDROID(ByteBuffer container)
      Creates a XrTrackablePlaneANDROID 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<XrTrackablePlaneANDROID>
    • type

      public int type()
      Returns:
      the value of the type field.
    • next

      public long next()
      Returns:
      the value of the next field.
    • trackingState

      public int trackingState()
      Returns:
      the value of the trackingState field.
    • centerPose

      public XrPosef centerPose()
      Returns:
      a XrPosef view of the centerPose field.
    • extents

      public XrExtent2Df extents()
      Returns:
      a XrExtent2Df view of the extents field.
    • planeType

      public int planeType()
      Returns:
      the value of the planeType field.
    • planeLabel

      public int planeLabel()
      Returns:
      the value of the planeLabel field.
    • subsumedByPlane

      public long subsumedByPlane()
      Returns:
      the value of the subsumedByPlane field.
    • lastUpdatedTime

      public long lastUpdatedTime()
      Returns:
      the value of the lastUpdatedTime field.
    • vertexCapacityInput

      public int vertexCapacityInput()
      Returns:
      the value of the vertexCapacityInput field.
    • vertexCountOutput

      public @Nullable IntBuffer vertexCountOutput(int capacity)
      Returns:
      a IntBuffer view of the data pointed to by the vertexCountOutput field.
    • vertices

      public @Nullable XrVector2f.Buffer vertices()
      Returns:
      a XrVector2f.Buffer view of the struct array pointed to by the vertices field.
    • type

      public XrTrackablePlaneANDROID type(int value)
      Sets the specified value to the type field.
    • type$Default

      public XrTrackablePlaneANDROID type$Default()
      Sets the TYPE_TRACKABLE_PLANE_ANDROID value to the type field.
    • next

      public XrTrackablePlaneANDROID next(long value)
      Sets the specified value to the next field.
    • trackingState

      public XrTrackablePlaneANDROID trackingState(int value)
      Sets the specified value to the trackingState field.
    • centerPose

      public XrTrackablePlaneANDROID centerPose(XrPosef value)
      Copies the specified XrPosef to the centerPose field.
    • centerPose

      public XrTrackablePlaneANDROID centerPose(Consumer<XrPosef> consumer)
      Passes the centerPose field to the specified Consumer.
    • extents

      public XrTrackablePlaneANDROID extents(XrExtent2Df value)
      Copies the specified XrExtent2Df to the extents field.
    • extents

      public XrTrackablePlaneANDROID extents(Consumer<XrExtent2Df> consumer)
      Passes the extents field to the specified Consumer.
    • planeType

      public XrTrackablePlaneANDROID planeType(int value)
      Sets the specified value to the planeType field.
    • planeLabel

      public XrTrackablePlaneANDROID planeLabel(int value)
      Sets the specified value to the planeLabel field.
    • subsumedByPlane

      public XrTrackablePlaneANDROID subsumedByPlane(long value)
      Sets the specified value to the subsumedByPlane field.
    • lastUpdatedTime

      public XrTrackablePlaneANDROID lastUpdatedTime(long value)
      Sets the specified value to the lastUpdatedTime field.
    • vertexCapacityInput

      public XrTrackablePlaneANDROID vertexCapacityInput(int value)
      Sets the specified value to the vertexCapacityInput field.
    • vertexCountOutput

      public XrTrackablePlaneANDROID vertexCountOutput(@Nullable IntBuffer value)
      Sets the address of the specified IntBuffer to the vertexCountOutput field.
    • vertices

      public XrTrackablePlaneANDROID vertices(@Nullable XrVector2f.Buffer value)
      Sets the address of the specified XrVector2f.Buffer to the vertices field.
    • set

      public XrTrackablePlaneANDROID set(int type, long next, int trackingState, XrPosef centerPose, XrExtent2Df extents, int planeType, int planeLabel, long subsumedByPlane, long lastUpdatedTime, int vertexCapacityInput, @Nullable IntBuffer vertexCountOutput, @Nullable XrVector2f.Buffer vertices)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static XrTrackablePlaneANDROID.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new XrTrackablePlaneANDROID.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
    • ntype

      public static int ntype(long struct)
      Unsafe version of type().
    • nnext

      public static long nnext(long struct)
      Unsafe version of next().
    • ntrackingState

      public static int ntrackingState(long struct)
      Unsafe version of trackingState().
    • ncenterPose

      public static XrPosef ncenterPose(long struct)
      Unsafe version of centerPose().
    • nextents

      public static XrExtent2Df nextents(long struct)
      Unsafe version of extents().
    • nplaneType

      public static int nplaneType(long struct)
      Unsafe version of planeType().
    • nplaneLabel

      public static int nplaneLabel(long struct)
      Unsafe version of planeLabel().
    • nsubsumedByPlane

      public static long nsubsumedByPlane(long struct)
      Unsafe version of subsumedByPlane().
    • nlastUpdatedTime

      public static long nlastUpdatedTime(long struct)
      Unsafe version of lastUpdatedTime().
    • nvertexCapacityInput

      public static int nvertexCapacityInput(long struct)
      Unsafe version of vertexCapacityInput().
    • nvertexCountOutput

      public static @Nullable IntBuffer nvertexCountOutput(long struct, int capacity)
      Unsafe version of vertexCountOutput.
    • nvertices

      public static @Nullable XrVector2f.Buffer nvertices(long struct)
      Unsafe version of vertices().
    • ntype

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • nnext

      public static void nnext(long struct, long value)
      Unsafe version of next.
    • ntrackingState

      public static void ntrackingState(long struct, int value)
      Unsafe version of trackingState.
    • ncenterPose

      public static void ncenterPose(long struct, XrPosef value)
      Unsafe version of centerPose.
    • nextents

      public static void nextents(long struct, XrExtent2Df value)
      Unsafe version of extents.
    • nplaneType

      public static void nplaneType(long struct, int value)
      Unsafe version of planeType.
    • nplaneLabel

      public static void nplaneLabel(long struct, int value)
      Unsafe version of planeLabel.
    • nsubsumedByPlane

      public static void nsubsumedByPlane(long struct, long value)
      Unsafe version of subsumedByPlane.
    • nlastUpdatedTime

      public static void nlastUpdatedTime(long struct, long value)
      Unsafe version of lastUpdatedTime.
    • nvertexCapacityInput

      public static void nvertexCapacityInput(long struct, int value)
      Sets the specified value to the vertexCapacityInput field of the specified struct.
    • nvertexCountOutput

      public static void nvertexCountOutput(long struct, @Nullable IntBuffer value)
      Unsafe version of vertexCountOutput.
    • nvertices

      public static void nvertices(long struct, @Nullable XrVector2f.Buffer value)
      Unsafe version of vertices.