Class WindowsSceneUnderstandingObserver
A Spatial Awareness observer with Scene Understanding capabilities.
Inheritance
WindowsSceneUnderstandingObserver
Implements
IMixedRealitySceneUnderstandingObserver
Assembly: cs.temp.dll.dll
public class WindowsSceneUnderstandingObserver : BaseSpatialObserver, IMixedRealitySceneUnderstandingObserver
Constructors
Declaration
public WindowsSceneUnderstandingObserver(IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem, string name = null, uint priority = default(uint), BaseMixedRealityProfile profile = null)
Parameters
Type |
Name |
Description |
IMixedRealitySpatialAwarenessSystem |
spatialAwarenessSystem |
|
String |
name |
Friendly name of the service.
|
UInt32 |
priority |
Service priority. Used to determine order of instantiation.
|
BaseMixedRealityProfile |
profile |
The service's configuration profile.
|
Properties
Declaration
public bool AutoUpdate { get; set; }
Property Value
Declaration
public bool CreateGameObjects { get; set; }
Property Value
Declaration
public Material DefaultMaterial { get; set; }
Property Value
Type |
Description |
Material |
|
Declaration
public Material DefaultWorldMeshMaterial { get; set; }
Property Value
Type |
Description |
Material |
|
Declaration
public float FirstAutoUpdateDelay { get; set; }
Property Value
Declaration
public bool InferRegions { get; set; }
Property Value
Declaration
public int InstantiationBatchRate { get; set; }
Property Value
Declaration
public Vector2Int OcclusionMaskResolution { get; set; }
Property Value
Type |
Description |
Vector2Int |
|
Declaration
public bool OrientScene { get; set; }
Property Value
Declaration
public float QueryRadius { get; set; }
Property Value
Declaration
public bool RequestMeshData { get; set; }
Property Value
Declaration
public bool RequestOcclusionMask { get; set; }
Property Value
Declaration
public bool RequestPlaneData { get; set; }
Property Value
Declaration
public IReadOnlyDictionary<int, SpatialAwarenessSceneObject> SceneObjects { get; }
Property Value
Type |
Description |
IReadOnlyDictionary<Int32, SpatialAwarenessSceneObject> |
|
The saved scene understanding file
Declaration
public TextAsset SerializedScene { get; set; }
Property Value
Type |
Description |
TextAsset |
|
Declaration
public bool ShouldLoadFromFile { get; set; }
Property Value
Declaration
public SpatialAwarenessSurfaceTypes SurfaceTypes { get; set; }
Property Value
Type |
Description |
SpatialAwarenessSurfaceTypes |
|
Declaration
public bool UpdateOnceInitialized { get; set; }
Property Value
Declaration
public bool UsePersistentObjects { get; set; }
Property Value
Declaration
public SpatialAwarenessMeshLevelOfDetail WorldMeshLevelOfDetail { get; set; }
Property Value
Type |
Description |
SpatialAwarenessMeshLevelOfDetail |
|
Methods
Declaration
public override void Enable()
Declaration
public override void Initialize()
Declaration
public override void Resume()
Declaration
public void SaveScene(string filenamePrefix)
Parameters
Type |
Name |
Description |
String |
filenamePrefix |
|
Declaration
public override void Suspend()
Declaration
public bool TryFindCentermostPlacement(int quadId, Vector2 objExtents, out Vector3 placementPosOnQuad)
Parameters
Type |
Name |
Description |
Int32 |
quadId |
|
Vector2 |
objExtents |
|
Vector3 |
placementPosOnQuad |
|
Returns
Gets the occlusion mask from a scene quad
Declaration
public bool TryGetOcclusionMask(int quadId, ushort textureWidth, ushort textureHeight, out byte[] mask)
Parameters
Type |
Name |
Description |
Int32 |
quadId |
Guid of the quad
|
UInt16 |
textureWidth |
Width of the mask
|
UInt16 |
textureHeight |
Height of the mask
|
Byte[] |
mask |
Mask result
|
Returns
Type |
Description |
Boolean |
Returns false if fails to get the mask
|
Declaration
public void UpdateOnDemand()
Implements
IMixedRealitySceneUnderstandingObserver