Class OpenXRFBPassthroughLayer
OpenXR implementation of passthrough layer.
Inheritance
Inherited Members
Namespace: Evergine.OpenXR.Passthrough.FB
Assembly: Evergine.OpenXR.dll
Syntax
public class OpenXRFBPassthroughLayer : OpenXRPassthroughLayer
Constructors
OpenXRFBPassthroughLayer(OpenXRFBPassthrough)
Initializes a new instance of the OpenXRFBPassthroughLayer class.
Declaration
public OpenXRFBPassthroughLayer(OpenXRFBPassthrough fbPassthrough)
Parameters
Type | Name | Description |
---|---|---|
OpenXRFBPassthrough | fbPassthrough | The FB Passthrough class. |
Properties
Brightness
Gets or sets the brightness adjustment value in the range [-100, 100]. The neutral element is 0.
Declaration
public override float Brightness { get; set; }
Property Value
Type | Description |
---|---|
float |
Overrides
ColorControl
Gets or sets the flags indicating how to control the color of the layer.
Declaration
public override XRPassthroughColorControlType ColorControl { get; set; }
Property Value
Type | Description |
---|---|
XRPassthroughColorControlType |
Overrides
ColorMapMonoToMono
Gets or sets the color curve to which the passthrough imagery luminance values are mapped.
Declaration
public override FloatCurve ColorMapMonoToMono { get; set; }
Property Value
Type | Description |
---|---|
FloatCurve |
Overrides
ColorMapMonoToRGBA
Gets or sets the color curve to which the passthrough imagery luminance values are mapped.
Declaration
public override ColorCurve ColorMapMonoToRGBA { get; set; }
Property Value
Type | Description |
---|---|
ColorCurve |
Overrides
CompositionOrder
Gets or sets the composition order. It defines the order of the layers in composition. The layer with larger CompositionOrder would be composited in the front of the layer with smaller CompositionOrder.
Declaration
public override int CompositionOrder { get; set; }
Property Value
Type | Description |
---|---|
int |
Overrides
Contrast
Gets or sets the contrast adjustment value in the range [0, Infinity]. The neutral element is 1.
Declaration
public override float Contrast { get; set; }
Property Value
Type | Description |
---|---|
float |
Overrides
EdgeColor
Gets or sets the passthorugh edge color.
Declaration
public override Color EdgeColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Overrides
EdgeRendering
Gets or sets a value indicating whether enabling or not the Passthroigh edge enhancement.
Declaration
public override bool EdgeRendering { get; set; }
Property Value
Type | Description |
---|---|
bool |
Overrides
IsRunning
Gets a value indicating whether the passthrough is running.
Declaration
public override bool IsRunning { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Opacity
Gets or sets passthrough texture opacity.
Declaration
public override float Opacity { get; set; }
Property Value
Type | Description |
---|---|
float |
Overrides
Placement
Gets or sets whether this overlay should layer behind the scene or in front of it.
Declaration
public override XROverlayType Placement { get; set; }
Property Value
Type | Description |
---|---|
XROverlayType |
Overrides
ProjectionSurface
Gets or sets the type of projection surface for this Passthrough layer.
Declaration
public override XRProjectionSurfaceType ProjectionSurface { get; set; }
Property Value
Type | Description |
---|---|
XRProjectionSurfaceType |
Overrides
Saturation
Gets or sets the saturation adjustment value in the range [0, Infinity]. The neutral element is 1.
Declaration
public override float Saturation { get; set; }
Property Value
Type | Description |
---|---|
float |
Overrides
SurfaceMeshes
Gets a collection of registered surface meshes.
Declaration
public override IEnumerable<XRPassthroughSurfaceMesh> SurfaceMeshes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<XRPassthroughSurfaceMesh> |
Overrides
Methods
AddSurfaceMesh(XRPassthroughSurfaceMesh)
Add a surface mesh to be used by this layer.
Declaration
public override bool AddSurfaceMesh(XRPassthroughSurfaceMesh surfaceMesh)
Parameters
Type | Name | Description |
---|---|---|
XRPassthroughSurfaceMesh | surfaceMesh | The surface mesh. |
Returns
Type | Description |
---|---|
bool | True if the mesh has been suscessfully added. |
Overrides
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
Overrides
PausePassthrough()
Pause the passthrough layer update.
Declaration
public override void PausePassthrough()
Overrides
RefreshLayerStyle()
Force to refresh the layer style.
Declaration
public override void RefreshLayerStyle()
Overrides
RemoveSurfaceMesh(XRPassthroughSurfaceMesh)
Remove the surface mesh.
Declaration
public override bool RemoveSurfaceMesh(XRPassthroughSurfaceMesh surfaceMesh)
Parameters
Type | Name | Description |
---|---|---|
XRPassthroughSurfaceMesh | surfaceMesh | The surface mesh to be removed. |
Returns
Type | Description |
---|---|
bool | True if the mesh has been removed. |
Overrides
StartPassthrough()
Resume the passthrough layer update.
Declaration
public override void StartPassthrough()
Overrides
Update(long)
Update the passthrough layer.
Declaration
public void Update(long predictedDisplayTime)
Parameters
Type | Name | Description |
---|---|---|
long | predictedDisplayTime | The predicted display time. |