Class XrTrackableImageANDROID
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class XrTrackableImageANDROID
extends Struct<XrTrackableImageANDROID>
implements NativeResource
struct XrTrackableImageANDROID {
XrStructureType type;
void const * next;
XrTrackingStateANDROID trackingState;
XrTime lastUpdatedTime;
XrTrackableImageDatabaseANDROID database;
uint32_t databaseEntryIndex;
XrPosef centerPose;
XrExtent2Df extents;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrTrackableImageANDROID(ByteBuffer container) Creates aXrTrackableImageANDROIDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrTrackableImageANDROIDcalloc()Returns a newXrTrackableImageANDROIDinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrTrackableImageANDROID.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrTrackableImageANDROID.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrTrackableImageANDROIDcalloc(MemoryStack stack) Returns a newXrTrackableImageANDROIDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.centerPose(Consumer<XrPosef> consumer) Passes thecenterPosefield to the specifiedConsumer.centerPose(XrPosef value) Copies the specifiedXrPosefto thecenterPosefield.static XrTrackableImageANDROIDcreate()Returns a newXrTrackableImageANDROIDinstance allocated withBufferUtils.create(int capacity) Returns a newXrTrackableImageANDROID.Bufferinstance allocated withBufferUtils.static XrTrackableImageANDROIDcreate(long address) Returns a newXrTrackableImageANDROIDinstance for the specified memory address.create(long address, int capacity) Create aXrTrackableImageANDROID.Bufferinstance at the specified memory.static @Nullable XrTrackableImageANDROIDcreateSafe(long address) static @Nullable XrTrackableImageANDROID.BuffercreateSafe(long address, int capacity) longdatabase()Sets the specified value to thedatabasefield.intdatabaseEntryIndex(int value) Sets the specified value to thedatabaseEntryIndexfield.extents()extents(Consumer<XrExtent2Df> consumer) Passes theextentsfield to the specifiedConsumer.extents(XrExtent2Df value) Copies the specifiedXrExtent2Dfto theextentsfield.longlastUpdatedTime(long value) Sets the specified value to thelastUpdatedTimefield.static XrTrackableImageANDROIDmalloc()Returns a newXrTrackableImageANDROIDinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrTrackableImageANDROID.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrTrackableImageANDROID.Bufferinstance allocated on the specifiedMemoryStack.static XrTrackableImageANDROIDmalloc(MemoryStack stack) Returns a newXrTrackableImageANDROIDinstance allocated on the specifiedMemoryStack.static XrPosefncenterPose(long struct) Unsafe version ofcenterPose().static voidncenterPose(long struct, XrPosef value) Unsafe version ofcenterPose.static longndatabase(long struct) Unsafe version ofdatabase().static voidndatabase(long struct, XrTrackableImageDatabaseANDROID value) Unsafe version ofdatabase.static intndatabaseEntryIndex(long struct) Unsafe version ofdatabaseEntryIndex().static voidndatabaseEntryIndex(long struct, int value) Unsafe version ofdatabaseEntryIndex.longnext()next(long value) Sets the specified value to thenextfield.static XrExtent2Dfnextents(long struct) Unsafe version ofextents().static voidnextents(long struct, XrExtent2Df value) Unsafe version ofextents.static longnlastUpdatedTime(long struct) Unsafe version oflastUpdatedTime().static voidnlastUpdatedTime(long struct, long value) Unsafe version oflastUpdatedTime.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static intntrackingState(long struct) Unsafe version oftrackingState().static voidntrackingState(long struct, int value) Unsafe version oftrackingState.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.set(int type, long next, int trackingState, long lastUpdatedTime, XrTrackableImageDatabaseANDROID database, int databaseEntryIndex, XrPosef centerPose, XrExtent2Df extents) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttrackingState(int value) Sets the specified value to thetrackingStatefield.inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_TRACKABLE_IMAGE_ANDROIDvalue to thetypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
TRACKINGSTATE
public static final int TRACKINGSTATEThe struct member offsets. -
LASTUPDATEDTIME
public static final int LASTUPDATEDTIMEThe struct member offsets. -
DATABASE
public static final int DATABASEThe struct member offsets. -
DATABASEENTRYINDEX
public static final int DATABASEENTRYINDEXThe struct member offsets. -
CENTERPOSE
public static final int CENTERPOSEThe struct member offsets. -
EXTENTS
public static final int EXTENTSThe struct member offsets.
-
-
Constructor Details
-
XrTrackableImageANDROID
Creates aXrTrackableImageANDROIDinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrTrackableImageANDROID>
-
type
- Returns:
- the value of the
typefield.
-
next
- Returns:
- the value of the
nextfield.
-
trackingState
- Returns:
- the value of the
trackingStatefield.
-
lastUpdatedTime
- Returns:
- the value of the
lastUpdatedTimefield.
-
database
- Returns:
- the value of the
databasefield.
-
databaseEntryIndex
- Returns:
- the value of the
databaseEntryIndexfield.
-
centerPose
-
extents
- Returns:
- a
XrExtent2Dfview of theextentsfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_TRACKABLE_IMAGE_ANDROIDvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
trackingState
Sets the specified value to thetrackingStatefield. -
lastUpdatedTime
Sets the specified value to thelastUpdatedTimefield. -
database
Sets the specified value to thedatabasefield. -
databaseEntryIndex
Sets the specified value to thedatabaseEntryIndexfield. -
centerPose
Copies the specifiedXrPosefto thecenterPosefield. -
centerPose
Passes thecenterPosefield to the specifiedConsumer. -
extents
Copies the specifiedXrExtent2Dfto theextentsfield. -
extents
Passes theextentsfield to the specifiedConsumer. -
set
public XrTrackableImageANDROID set(int type, long next, int trackingState, long lastUpdatedTime, XrTrackableImageDatabaseANDROID database, int databaseEntryIndex, XrPosef centerPose, XrExtent2Df extents) 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
Returns a newXrTrackableImageANDROIDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrTrackableImageANDROIDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrTrackableImageANDROIDinstance allocated withBufferUtils. -
create
Returns a newXrTrackableImageANDROIDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrTrackableImageANDROID.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrTrackableImageANDROID.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrTrackableImageANDROID.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrTrackableImageANDROID.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrTrackableImageANDROIDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrTrackableImageANDROIDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrTrackableImageANDROID.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrTrackableImageANDROID.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nnext
public static long nnext(long struct) Unsafe version ofnext(). -
ntrackingState
public static int ntrackingState(long struct) Unsafe version oftrackingState(). -
nlastUpdatedTime
public static long nlastUpdatedTime(long struct) Unsafe version oflastUpdatedTime(). -
ndatabase
public static long ndatabase(long struct) Unsafe version ofdatabase(). -
ndatabaseEntryIndex
public static int ndatabaseEntryIndex(long struct) Unsafe version ofdatabaseEntryIndex(). -
ncenterPose
Unsafe version ofcenterPose(). -
nextents
Unsafe version ofextents(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
ntrackingState
public static void ntrackingState(long struct, int value) Unsafe version oftrackingState. -
nlastUpdatedTime
public static void nlastUpdatedTime(long struct, long value) Unsafe version oflastUpdatedTime. -
ndatabase
Unsafe version ofdatabase. -
ndatabaseEntryIndex
public static void ndatabaseEntryIndex(long struct, int value) Unsafe version ofdatabaseEntryIndex. -
ncenterPose
Unsafe version ofcenterPose. -
nextents
Unsafe version ofextents. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-