XrPassthroughStyleFB lets applications customize the appearance of passthrough layers. In addition to the parameters specified here, applications may add one of the following structures to the structure chain: XrPassthroughColorMapMonoToRgbaFB, XrPassthroughColorMapMonoToMonoFB, XrPassthroughBrightnessContrastSaturationFB. These structures are mutually exclusive. The runtime must return ERROR_VALIDATION_FAILURE if more than one of them are present in the structure chain.
XR_FB_passthrough extension must be enabled prior to using XrPassthroughStyleFBtype must be TYPE_PASSTHROUGH_STYLE_FBnext must be NULL or a valid pointer to the next structure in a structure chain. See also: XrPassthroughBrightnessContrastSaturationFB, XrPassthroughColorMapInterpolatedLutMETA, XrPassthroughColorMapLutMETA, XrPassthroughColorMapMonoToMonoFB, XrPassthroughColorMapMonoToRgbaFBXrColor4f, PassthroughLayerSetStyleFB
struct XrPassthroughStyleFB {
XrStructureType type;
void const * next;
float textureOpacityFactor;
XrColor4f edgeColor;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrPassthroughStyleFB.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | EDGECOLOR
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TEXTUREOPACITYFACTOR
The struct member offsets. |
| public static final int | TYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrPassthroughStyleFB(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrPassthroughStyleFB | |
| public static XrPassthroughStyleFB. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrPassthroughStyleFB | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrPassthroughStyleFB. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrPassthroughStyleFB | 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 XrPassthroughStyleFB | |
| public static XrPassthroughStyleFB | |
| public static XrPassthroughStyleFB. | create(int
the buffer capacity capacity)Returns a new |
| public static XrPassthroughStyleFB. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrPassthroughStyleFB | |
| public static XrPassthroughStyleFB. | |
| public XrColor4f | |
| public XrPassthroughStyleFB | |
| public XrPassthroughStyleFB | |
| public static XrPassthroughStyleFB | |
| public static XrPassthroughStyleFB. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrPassthroughStyleFB | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrPassthroughStyleFB. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static XrColor4f | |
| public static void | |
| public long | |
| public XrPassthroughStyleFB | |
| public XrPassthroughStyleFB | next(XrPassthroughBrightnessContrastSaturationFB value)
Prepends the specified |
| public XrPassthroughStyleFB | next(XrPassthroughColorMapInterpolatedLutMETA value)
Prepends the specified |
| public XrPassthroughStyleFB | next(XrPassthroughColorMapLutMETA value)
Prepends the specified |
| public XrPassthroughStyleFB | next(XrPassthroughColorMapMonoToMonoFB value)
Prepends the specified |
| public XrPassthroughStyleFB | next(XrPassthroughColorMapMonoToRgbaFB value)
Prepends the specified |
| public static long | |
| public static void | |
| public static float | |
| public static void | |
| public static int | |
| public static void | |
| public XrPassthroughStyleFB | |
| public XrPassthroughStyleFB | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public float | |
| public XrPassthroughStyleFB | |
| public int | |
| public XrPassthroughStyleFB | |
| public XrPassthroughStyleFB |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| EDGECOLOR | back to summary |
|---|---|
| public static final int EDGECOLOR The struct member offsets. | |
| NEXT | back to summary |
|---|---|
| public static final int NEXT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TEXTUREOPACITYFACTOR | back to summary |
|---|---|
| public static final int TEXTUREOPACITYFACTOR The struct member offsets. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| XrPassthroughStyleFB | back to summary |
|---|---|
| protected XrPassthroughStyleFB(long address, ByteBuffer container) | |
| XrPassthroughStyleFB | back to summary |
|---|---|
| public XrPassthroughStyleFB(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XrPassthroughStyleFB calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrPassthroughStyleFB. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrPassthroughStyleFB calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrPassthroughStyleFB. Returns a new
| |
| create | back to summary |
|---|---|
| protected XrPassthroughStyleFB create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrPassthroughStyleFB create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrPassthroughStyleFB create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrPassthroughStyleFB. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrPassthroughStyleFB. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XrPassthroughStyleFB createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrPassthroughStyleFB. Like
| |
| edgeColor | back to summary |
|---|---|
| public XrColor4f edgeColor() the | |
| edgeColor | back to summary |
|---|---|
| public XrPassthroughStyleFB edgeColor(XrColor4f value) | |
| edgeColor | back to summary |
|---|---|
| public XrPassthroughStyleFB edgeColor(Consumer<XrColor4f> consumer) | |
| malloc | back to summary |
|---|---|
| public static XrPassthroughStyleFB malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrPassthroughStyleFB. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrPassthroughStyleFB malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrPassthroughStyleFB. Returns a new
| |
| nedgeColor | back to summary |
|---|---|
| public static XrColor4f nedgeColor(long struct) Unsafe version of | |
| nedgeColor | back to summary |
|---|---|
| public static void nedgeColor(long struct, XrColor4f value) Unsafe version of | |
| next | back to summary |
|---|---|
| public long next()
| |
| next | back to summary |
|---|---|
| public XrPassthroughStyleFB next(long value) Sets the specified value to the | |
| next | back to summary |
|---|---|
| public XrPassthroughStyleFB next(XrPassthroughBrightnessContrastSaturationFB value) Prepends the specified | |
| next | back to summary |
|---|---|
| public XrPassthroughStyleFB next(XrPassthroughColorMapInterpolatedLutMETA value) Prepends the specified | |
| next | back to summary |
|---|---|
| public XrPassthroughStyleFB next(XrPassthroughColorMapLutMETA value) Prepends the specified | |
| next | back to summary |
|---|---|
| public XrPassthroughStyleFB next(XrPassthroughColorMapMonoToMonoFB value) Prepends the specified | |
| next | back to summary |
|---|---|
| public XrPassthroughStyleFB next(XrPassthroughColorMapMonoToRgbaFB value) Prepends the specified | |
| nnext | back to summary |
|---|---|
| public static long nnext(long struct) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static void nnext(long struct, long value) Unsafe version of | |
| ntextureOpacityFactor | back to summary |
|---|---|
| public static float ntextureOpacityFactor(long struct) Unsafe version of | |
| ntextureOpacityFactor | back to summary |
|---|---|
| public static void ntextureOpacityFactor(long struct, float value) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static void ntype(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public XrPassthroughStyleFB set(int type, long next, float textureOpacityFactor, XrColor4f edgeColor) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrPassthroughStyleFB set(XrPassthroughStyleFB src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| textureOpacityFactor | back to summary |
|---|---|
| public float textureOpacityFactor() the opacity of the passthrough imagery in the range [0, 1]. | |
| textureOpacityFactor | back to summary |
|---|---|
| public XrPassthroughStyleFB textureOpacityFactor(float value) Sets the specified value to the | |
| type | back to summary |
|---|---|
| public int type() the
| |
| type | back to summary |
|---|---|
| public XrPassthroughStyleFB type(int value) Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrPassthroughStyleFB type$Default() Sets the | |
XrPassthroughStyleFB structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrPassthroughStyleFB |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrPassthroughStyleFB 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) | |
| edgeColor | back to summary |
|---|---|
public XrColor4f edgeColor()
| |
| edgeColor | back to summary |
|---|---|
| public XrPassthroughStyleFB. Copies the specified | |
| edgeColor | back to summary |
|---|---|
| public XrPassthroughStyleFB. Passes the | |
| getElementFactory | back to summary |
|---|---|
| protected XrPassthroughStyleFB getElementFactory() Implements abstract org.
| |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrPassthroughStyleFB. Sets the specified value to the | |
| next | back to summary |
|---|---|
| public XrPassthroughStyleFB. Prepends the specified | |
| next | back to summary |
|---|---|
| public XrPassthroughStyleFB. Prepends the specified | |
| next | back to summary |
|---|---|
| public XrPassthroughStyleFB. Prepends the specified | |
| next | back to summary |
|---|---|
| public XrPassthroughStyleFB. Prepends the specified | |
| next | back to summary |
|---|---|
| public XrPassthroughStyleFB. Prepends the specified | |
| self | back to summary |
|---|---|
| protected XrPassthroughStyleFB. Implements abstract org.
| |
| textureOpacityFactor | back to summary |
|---|---|
public float textureOpacityFactor()
| |
| textureOpacityFactor | back to summary |
|---|---|
| public XrPassthroughStyleFB. Sets the specified value to the | |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrPassthroughStyleFB. Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrPassthroughStyleFB. Sets the | |