編集

次の方法で共有


DemoSceneUnderstandingController Class

Definition

Demo class to show different ways of visualizing the space using scene understanding.

public ref class DemoSceneUnderstandingController : Microsoft::MixedReality::Toolkit::Examples::Demos::DemoSpatialMeshHandler, Microsoft::MixedReality::Toolkit::SpatialAwareness::IMixedRealitySpatialAwarenessObservationHandler<Microsoft::MixedReality::Toolkit::Experimental::SpatialAwareness::SpatialAwarenessSceneObject ^>, UnityEngine::EventSystems::IEventSystemHandler
public class DemoSceneUnderstandingController : Microsoft.MixedReality.Toolkit.Examples.Demos.DemoSpatialMeshHandler, Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObservationHandler<Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject>, UnityEngine.EventSystems.IEventSystemHandler
type DemoSceneUnderstandingController = class
    inherit DemoSpatialMeshHandler
    interface IMixedRealitySpatialAwarenessObservationHandler<SpatialAwarenessSceneObject>
    interface IEventSystemHandler
Public Class DemoSceneUnderstandingController
Inherits DemoSpatialMeshHandler
Implements IEventSystemHandler, IMixedRealitySpatialAwarenessObservationHandler(Of SpatialAwarenessSceneObject)
Inheritance
UnityEngine.MonoBehaviour
DemoSceneUnderstandingController
Implements

Constructors

DemoSceneUnderstandingController()

Fields

isRegistered

Value indicating whether or not this script has registered for spatial awareness events.

(Inherited from DemoSpatialMeshHandler)

Methods

AddToData(Int32)

Records the mesh id when it is first added.

(Inherited from DemoSpatialMeshHandler)
ClearScene()

Request the observer to clear the observations in the scene

GetSceneObjectsOfType(SpatialAwarenessSurfaceTypes)

Get all currently observed SceneObjects of a certain type.

OnDestroy()
OnDisable()
OnEnable()
OnObservationAdded(MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject>)

Called when a spatial observer adds a new observation.

(Inherited from DemoSpatialMeshHandler)
OnObservationAdded(MixedRealitySpatialAwarenessEventData<SpatialAwarenessSceneObject>)

Called when a spatial observer adds a new observation.

OnObservationRemoved(MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject>)

Called when a spatial observer removes a previous observation.

(Inherited from DemoSpatialMeshHandler)
OnObservationRemoved(MixedRealitySpatialAwarenessEventData<SpatialAwarenessSceneObject>)

Called when a spatial observer removes a previous observation.

OnObservationUpdated(MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject>)

Called when a spatial observer updates a previous observation.

(Inherited from DemoSpatialMeshHandler)
OnObservationUpdated(MixedRealitySpatialAwarenessEventData<SpatialAwarenessSceneObject>)

Called when a spatial observer updates a previous observation.

RegisterEventHandlers<T,U>()

Registers for the spatial awareness system events.

(Inherited from DemoSpatialMeshHandler)
RemoveFromData(Int32)

Removes the mesh id.

(Inherited from DemoSpatialMeshHandler)
SaveScene()

Request the observer to save the scene

Start()
ToggleAutoUpdate()

Change the auto update state of the observer

ToggleBackground()

Change whether to request background data from the observer followed by clearing existing observations and requesting an update

ToggleCeilings()

Change whether to request ceiling data from the observer followed by clearing existing observations and requesting an update

ToggleCompletelyInferred()

Change whether to request completely inferred data from the observer followed by clearing existing observations and requesting an update

ToggleFloors()

Change whether to request floor data from the observer followed by clearing existing observations and requesting an update

ToggleGenerateMeshes()

Change whether to request mesh data from the observer followed by clearing existing observations and requesting an update

ToggleGeneratePlanes()

Change whether to request plane data from the observer followed by clearing existing observations and requesting an update

ToggleInferRegions()

Change whether to request inferred region data from the observer followed by clearing existing observations and requesting an update

ToggleOcclusionMask()

Change whether to request occlusion mask from the observer followed by clearing existing observations and requesting an update

TogglePlatforms()

Change whether to request platform data from the observer followed by clearing existing observations and requesting an update

ToggleWalls()

Change whether to request wall data from the observer followed by clearing existing observations and requesting an update

ToggleWorld()

Change whether to request world mesh data from the observer followed by clearing existing observations and requesting an update

UnregisterEventHandlers<T,U>()

Unregisters from the spatial awareness system events.

(Inherited from DemoSpatialMeshHandler)
UpdateData(Int32)

Increments the update count of the mesh with the id.

(Inherited from DemoSpatialMeshHandler)
UpdateScene()

Request the observer to update the scene

Applies to