Class WindowsMixedRealitySpatialMeshObserver
Implements
Namespace: Microsoft.MixedReality.Toolkit.WindowsMixedReality.SpatialAwareness
Assembly: cs.temp.dll.dll
Syntax
public class WindowsMixedRealitySpatialMeshObserver : BaseSpatialMeshObserver, IMixedRealitySpatialAwarenessMeshObserver, IMixedRealityCapabilityCheck, BaseSpatialObserver
Constructors
WindowsMixedRealitySpatialMeshObserver(IMixedRealitySpatialAwarenessSystem, String, UInt32, BaseMixedRealityProfile)
Constructor.
Declaration
public WindowsMixedRealitySpatialMeshObserver(IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem, string name = null, uint priority = default(uint), BaseMixedRealityProfile profile = null)
Parameters
Type | Name | Description |
---|---|---|
IMixedRealitySpatialAwarenessSystem | spatialAwarenessSystem | The service instance that receives data from this provider. |
String | name | Friendly name of the service. |
UInt32 | priority | Service priority. Used to determine order of instantiation. |
BaseMixedRealityProfile | profile | The service's configuration profile. |
WindowsMixedRealitySpatialMeshObserver(IMixedRealitySpatialAwarenessSystem, String, UInt32, BaseMixedRealityProfile)
Constructor.
Declaration
public WindowsMixedRealitySpatialMeshObserver(IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem, string name = null, uint priority = default(uint), BaseMixedRealityProfile profile = null)
Parameters
Type | Name | Description |
---|---|---|
IMixedRealitySpatialAwarenessSystem | spatialAwarenessSystem | The service instance that receives data from this provider. |
String | name | Friendly name of the service. |
UInt32 | priority | Service priority. Used to determine order of instantiation. |
BaseMixedRealityProfile | profile | The service's configuration profile. |
WindowsMixedRealitySpatialMeshObserver(IMixedRealityServiceRegistrar, IMixedRealitySpatialAwarenessSystem, String, UInt32, BaseMixedRealityProfile)
Constructor.
Declaration
[Obsolete("This constructor is obsolete (registrar parameter is no longer required) and will be removed in a future version of the Microsoft Mixed Reality Toolkit.")]
public WindowsMixedRealitySpatialMeshObserver(IMixedRealityServiceRegistrar registrar, IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem, string name = null, uint priority = default(uint), BaseMixedRealityProfile profile = null)
Parameters
Type | Name | Description |
---|---|---|
IMixedRealityServiceRegistrar | registrar | The IMixedRealityServiceRegistrar instance that loaded the service. |
IMixedRealitySpatialAwarenessSystem | spatialAwarenessSystem | The service instance that receives data from this provider. |
String | name | Friendly name of the service. |
UInt32 | priority | Service priority. Used to determine order of instantiation. |
BaseMixedRealityProfile | profile | The service's configuration profile. |
WindowsMixedRealitySpatialMeshObserver(IMixedRealityServiceRegistrar, IMixedRealitySpatialAwarenessSystem, String, UInt32, BaseMixedRealityProfile)
Constructor.
Declaration
[Obsolete("This constructor is obsolete (registrar parameter is no longer required) and will be removed in a future version of the Microsoft Mixed Reality Toolkit.")]
public WindowsMixedRealitySpatialMeshObserver(IMixedRealityServiceRegistrar registrar, IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem, string name = null, uint priority = default(uint), BaseMixedRealityProfile profile = null)
Parameters
Type | Name | Description |
---|---|---|
IMixedRealityServiceRegistrar | registrar | The IMixedRealityServiceRegistrar instance that loaded the service. |
IMixedRealitySpatialAwarenessSystem | spatialAwarenessSystem | The service instance that receives data from this provider. |
String | name | Friendly name of the service. |
UInt32 | priority | Service priority. Used to determine order of instantiation. |
BaseMixedRealityProfile | profile | The service's configuration profile. |
Fields
displayOption
Declaration
public SpatialAwarenessMeshDisplayOptions displayOption
Field Value
Type | Description |
---|---|
SpatialAwarenessMeshDisplayOptions |
levelOfDetail
Declaration
public SpatialAwarenessMeshLevelOfDetail levelOfDetail
Field Value
Type | Description |
---|---|
SpatialAwarenessMeshLevelOfDetail |
Properties
DisplayOption
Declaration
public SpatialAwarenessMeshDisplayOptions DisplayOption { get; set; }
Property Value
Type | Description |
---|---|
SpatialAwarenessMeshDisplayOptions |
LevelOfDetail
Declaration
public SpatialAwarenessMeshLevelOfDetail LevelOfDetail { get; set; }
Property Value
Type | Description |
---|---|
SpatialAwarenessMeshLevelOfDetail |
Meshes
Declaration
public IReadOnlyDictionary<int, SpatialAwarenessMeshObject> Meshes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<Int32, SpatialAwarenessMeshObject> |
MeshPhysicsLayer
Declaration
public int MeshPhysicsLayer { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
MeshPhysicsLayerMask
Declaration
public int MeshPhysicsLayerMask { get; }
Property Value
Type | Description |
---|---|
Int32 |
OcclusionMaterial
Declaration
public Material OcclusionMaterial { get; set; }
Property Value
Type | Description |
---|---|
Material |
RecalculateNormals
Declaration
public bool RecalculateNormals { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
TrianglesPerCubicMeter
Declaration
public int TrianglesPerCubicMeter { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
VisibleMaterial
Declaration
public Material VisibleMaterial { get; set; }
Property Value
Type | Description |
---|---|
Material |
Methods
CheckCapability(MixedRealityCapability)
Declaration
public bool CheckCapability(MixedRealityCapability capability)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityCapability | capability |
Returns
Type | Description |
---|---|
Boolean |
CheckCapability(MixedRealityCapability)
Declaration
public bool CheckCapability(MixedRealityCapability capability)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityCapability | capability |
Returns
Type | Description |
---|---|
Boolean |
CleanupObserver()
Implements proper cleanup of the SurfaceObserver.
Declaration
protected override void CleanupObserver()
CreateObserver()
Creates the surface observer and handles the desired startup behavior.
Declaration
protected override void CreateObserver()
LookupTriangleDensity(SpatialAwarenessMeshLevelOfDetail)
Declaration
protected override int LookupTriangleDensity(SpatialAwarenessMeshLevelOfDetail levelOfDetail)
Parameters
Type | Name | Description |
---|---|---|
SpatialAwarenessMeshLevelOfDetail | levelOfDetail |
Returns
Type | Description |
---|---|
Int32 |
Resume()
Declaration
public override void Resume()
Resume()
Declaration
public override void Resume()
Suspend()
Declaration
public override void Suspend()
Suspend()
Declaration
public override void Suspend()