Class OpenXRFBPassthroughLayer
OpenXR implementation of the 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 value is 0.
Declaration
public override float Brightness { get; set; }
Property Value
Type | Description |
---|---|
float |
Overrides
ColorControl
Gets or sets the flags that indicate 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 pass-through 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 that maps the passthrough imagery luminance values.
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 a larger CompositionOrder will be composited in front of the layer with a 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, ∞]. The neutral element is 1.
Declaration
public override float Contrast { get; set; }
Property Value
Type | Description |
---|---|
float |
Overrides
EdgeColor
Gets or sets the passthrough edge color.
Declaration
public override Color EdgeColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Overrides
EdgeRendering
Gets or sets a value indicating whether to enable the Passthrough 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 the 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 successfully added. |
Overrides
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
PausePassthrough()
Pauses the passthrough layer update.
Declaration
public override void PausePassthrough()
Overrides
RefreshLayerStyle()
Forces a refresh of the layer style.
Declaration
public override void RefreshLayerStyle()
Overrides
RemoveSurfaceMesh(XRPassthroughSurfaceMesh)
Removes 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()
Resumes the passthrough layer update.
Declaration
public override void StartPassthrough()
Overrides
Update(long)
Updates the passthrough layer.
Declaration
public void Update(long predictedDisplayTime)
Parameters
Type | Name | Description |
---|---|---|
long | predictedDisplayTime | The predicted display time. |