Class XrSceneMarkerMSFT
- All Implemented Interfaces:
org.lwjgl.system.Pointer
Description
The XrSceneMarkerMSFT structure is an element in the array of XrSceneMarkersMSFT::sceneMarkers.
Refer to the QR code convention for an example of marker’s center and size in the context of a QR code.
When the runtime updates the location or properties of an observed marker, the runtime must set the XrSceneMarkerMSFT::lastSeenTime to the new timestamp of the update.
When the runtime cannot observe a previously observed XrSceneMarkerMSFT, the runtime must keep the previous lastSeenTime for the marker. Hence, the application can use the lastSeenTime to know how fresh the tracking information is for a given marker.
The center and size are measured in meters, relative to the XrPosef of the marker for the visual bound of the marker in XY plane, regardless of the marker type.
Valid Usage (Implicit)
- The
XR_MSFT_scene_markerextension must be enabled prior to usingXrSceneMarkerMSFT
See Also
XrExtent2Df, XrOffset2Df, XrSceneMarkersMSFT
Layout
struct XrSceneMarkerMSFT {
XrSceneMarkerTypeMSFT markerType();
XrTime lastSeenTime();
XrOffset2Df center();
XrExtent2Df size();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSceneMarkerMSFT(ByteBuffer container) Creates aXrSceneMarkerMSFTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncenter()anXrOffset2Dfstructure representing the location of the center of the axis-aligned bounding box of the marker in the XY plane of the marker’s coordinate system.static XrSceneMarkerMSFTcreate(long address) Returns a newXrSceneMarkerMSFTinstance for the specified memory address.static XrSceneMarkerMSFT.Buffercreate(long address, int capacity) Create aXrSceneMarkerMSFT.Bufferinstance at the specified memory.static @Nullable XrSceneMarkerMSFTcreateSafe(long address) static @Nullable XrSceneMarkerMSFT.BuffercreateSafe(long address, int capacity) longanXrTimeindicating when the marker was seen last.intanXrSceneMarkerTypeMSFTindicating the type of the marker.static XrOffset2Dfncenter(long struct) Unsafe version ofcenter().static longnlastSeenTime(long struct) Unsafe version oflastSeenTime().static intnmarkerType(long struct) Unsafe version ofmarkerType().static XrExtent2Dfnsize(long struct) Unsafe version ofsize().size()anXrExtent2Dfstructure representing the width and height of the axis-aligned bounding box of the marker in the XY plane of the marker’s coordinate system.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MARKERTYPE
public static final int MARKERTYPEThe struct member offsets. -
LASTSEENTIME
public static final int LASTSEENTIMEThe struct member offsets. -
CENTER
public static final int CENTERThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets.
-
-
Constructor Details
-
XrSceneMarkerMSFT
Creates aXrSceneMarkerMSFTinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<XrSceneMarkerMSFT>
-
markerType
public int markerType()anXrSceneMarkerTypeMSFTindicating the type of the marker. -
lastSeenTime
public long lastSeenTime()anXrTimeindicating when the marker was seen last. -
center
anXrOffset2Dfstructure representing the location of the center of the axis-aligned bounding box of the marker in the XY plane of the marker’s coordinate system. -
size
anXrExtent2Dfstructure representing the width and height of the axis-aligned bounding box of the marker in the XY plane of the marker’s coordinate system. -
create
Returns a newXrSceneMarkerMSFTinstance for the specified memory address. -
createSafe
-
create
Create aXrSceneMarkerMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nmarkerType
public static int nmarkerType(long struct) Unsafe version ofmarkerType(). -
nlastSeenTime
public static long nlastSeenTime(long struct) Unsafe version oflastSeenTime(). -
ncenter
Unsafe version ofcenter(). -
nsize
Unsafe version ofsize().
-