The runtime must set parentId to either zero or a valid XrUuidMSFT that corresponds to a scene component of type SCENE_COMPONENT_TYPE_OBJECT_MSFT that exists in the XrSceneMSFT.
The parent scene object is intended to allow scene components to be grouped. For example, the scene object for a wall might have multiple scene component children like SCENE_COMPONENT_TYPE_PLANE_MSFT, SCENE_COMPONENT_TYPE_VISUAL_MESH_MSFT, and SCENE_COMPONENT_TYPE_COLLIDER_MESH_MSFT. Those child scene components would be alternative representations of the same wall.
XR_MSFT_scene_understanding extension must be enabled prior to using XrSceneComponentMSFTcomponentType must be a valid XrSceneComponentTypeMSFT valueXrSceneComponentsMSFT, XrUuidMSFT
struct XrSceneComponentMSFT {
XrSceneComponentTypeMSFT componentType;
XrUuidMSFT id;
XrUuidMSFT parentId;
XrTime updateTime;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrSceneComponentMSFT.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | COMPONENTTYPE
The struct member offsets. |
| public static final int | ID
The struct member offsets. |
| public static final int | PARENTID
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | UPDATETIME
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrSceneComponentMSFT(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrSceneComponentMSFT | |
| public static XrSceneComponentMSFT. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrSceneComponentMSFT | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrSceneComponentMSFT. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public int | |
| public XrSceneComponentMSFT | |
| protected XrSceneComponentMSFT | 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 XrSceneComponentMSFT | |
| public static XrSceneComponentMSFT | |
| public static XrSceneComponentMSFT. | create(int
the buffer capacity capacity)Returns a new |
| public static XrSceneComponentMSFT. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrSceneComponentMSFT | |
| public static XrSceneComponentMSFT. | |
| public XrUuidMSFT | |
| public XrSceneComponentMSFT | |
| public XrSceneComponentMSFT | |
| public static XrSceneComponentMSFT | |
| public static XrSceneComponentMSFT. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrSceneComponentMSFT | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrSceneComponentMSFT. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static int | |
| public static void | |
| public static XrUuidMSFT | |
| public static void | |
| public static XrUuidMSFT | |
| public static void | |
| public static long | |
| public static void | |
| public XrUuidMSFT | |
| public XrSceneComponentMSFT | |
| public XrSceneComponentMSFT | |
| public XrSceneComponentMSFT | set(int componentType, XrUuidMSFT id, XrUuidMSFT parentId, long updateTime)
Initializes this struct with the specified values. |
| public XrSceneComponentMSFT | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public long | |
| public XrSceneComponentMSFT |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| COMPONENTTYPE | back to summary |
|---|---|
| public static final int COMPONENTTYPE The struct member offsets. | |
| ID | back to summary |
|---|---|
| public static final int ID The struct member offsets. | |
| PARENTID | back to summary |
|---|---|
| public static final int PARENTID The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| UPDATETIME | back to summary |
|---|---|
| public static final int UPDATETIME The struct member offsets. | |
| XrSceneComponentMSFT | back to summary |
|---|---|
| protected XrSceneComponentMSFT(long address, ByteBuffer container) | |
| XrSceneComponentMSFT | back to summary |
|---|---|
| public XrSceneComponentMSFT(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XrSceneComponentMSFT calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrSceneComponentMSFT. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrSceneComponentMSFT calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrSceneComponentMSFT. Returns a new
| |
| componentType | back to summary |
|---|---|
| public int componentType() the
| |
| componentType | back to summary |
|---|---|
| public XrSceneComponentMSFT componentType(int value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected XrSceneComponentMSFT create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrSceneComponentMSFT create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrSceneComponentMSFT create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrSceneComponentMSFT. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrSceneComponentMSFT. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XrSceneComponentMSFT createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrSceneComponentMSFT. Like
| |
| id | back to summary |
|---|---|
| public XrUuidMSFT id() the | |
| id | back to summary |
|---|---|
| public XrSceneComponentMSFT id(XrUuidMSFT value) Copies the specified | |
| id | back to summary |
|---|---|
| public XrSceneComponentMSFT id(Consumer<XrUuidMSFT> consumer) | |
| malloc | back to summary |
|---|---|
| public static XrSceneComponentMSFT malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrSceneComponentMSFT. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrSceneComponentMSFT malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrSceneComponentMSFT. Returns a new
| |
| ncomponentType | back to summary |
|---|---|
| public static int ncomponentType(long struct) Unsafe version of | |
| ncomponentType | back to summary |
|---|---|
| public static void ncomponentType(long struct, int value) Unsafe version of | |
| nid | back to summary |
|---|---|
| public static XrUuidMSFT nid(long struct) Unsafe version of | |
| nid | back to summary |
|---|---|
| public static void nid(long struct, XrUuidMSFT value) Unsafe version of | |
| nparentId | back to summary |
|---|---|
| public static XrUuidMSFT nparentId(long struct) Unsafe version of | |
| nparentId | back to summary |
|---|---|
| public static void nparentId(long struct, XrUuidMSFT value) Unsafe version of | |
| nupdateTime | back to summary |
|---|---|
| public static long nupdateTime(long struct) Unsafe version of | |
| nupdateTime | back to summary |
|---|---|
| public static void nupdateTime(long struct, long value) Unsafe version of | |
| parentId | back to summary |
|---|---|
| public XrUuidMSFT parentId() the | |
| parentId | back to summary |
|---|---|
| public XrSceneComponentMSFT parentId(XrUuidMSFT value) Copies the specified | |
| parentId | back to summary |
|---|---|
| public XrSceneComponentMSFT parentId(Consumer<XrUuidMSFT> consumer) | |
| set | back to summary |
|---|---|
| public XrSceneComponentMSFT set(int componentType, XrUuidMSFT id, XrUuidMSFT parentId, long updateTime) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrSceneComponentMSFT set(XrSceneComponentMSFT src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| updateTime | back to summary |
|---|---|
| public long updateTime() the
| |
| updateTime | back to summary |
|---|---|
| public XrSceneComponentMSFT updateTime(long value) Sets the specified value to the | |
XrSceneComponentMSFT structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrSceneComponentMSFT |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public XrSceneComponentMSFT. | |
| protected XrSceneComponentMSFT | |
| public XrUuidMSFT | |
| public XrSceneComponentMSFT. | |
| public XrSceneComponentMSFT. | id(Consumer<XrUuidMSFT> consumer)
Passes the |
| public XrUuidMSFT | |
| public XrSceneComponentMSFT. | parentId(XrUuidMSFT value)
Copies the specified |
| public XrSceneComponentMSFT. | parentId(Consumer<XrUuidMSFT> consumer)
Passes the |
| protected XrSceneComponentMSFT. | |
| public long | |
| public XrSceneComponentMSFT. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrSceneComponentMSFT 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) | |
| componentType | back to summary |
|---|---|
public int componentType()
| |
| componentType | back to summary |
|---|---|
| public XrSceneComponentMSFT. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected XrSceneComponentMSFT getElementFactory() Implements abstract org.
| |
| id | back to summary |
|---|---|
public XrUuidMSFT id()
| |
| id | back to summary |
|---|---|
| public XrSceneComponentMSFT. Copies the specified | |
| id | back to summary |
|---|---|
| public XrSceneComponentMSFT. Passes the | |
| parentId | back to summary |
|---|---|
public XrUuidMSFT parentId()
| |
| parentId | back to summary |
|---|---|
| public XrSceneComponentMSFT. Copies the specified | |
| parentId | back to summary |
|---|---|
| public XrSceneComponentMSFT. Passes the | |
| self | back to summary |
|---|---|
| protected XrSceneComponentMSFT. Implements abstract org.
| |
| updateTime | back to summary |
|---|---|
public long updateTime()
| |
| updateTime | back to summary |
|---|---|
| public XrSceneComponentMSFT. Sets the specified value to the | |