Class BaseSpatialObserver
Inheritance
BaseSpatialObserver
Implements
IDisposable
IEqualityComparer
Assembly: cs.temp.dll.dll
public abstract class BaseSpatialObserver : BaseDataProvider<IMixedRealitySpatialAwarenessSystem>, IMixedRealitySpatialAwarenessObserver, IMixedRealityDataProvider, IMixedRealityService, IDisposable, IMixedRealityEventSource, IEqualityComparer
Constructors
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.")]
protected BaseSpatialObserver(IMixedRealityServiceRegistrar registrar, IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem, string name = null, uint priority = default(uint), BaseMixedRealityProfile profile = null)
Parameters
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.")]
protected BaseSpatialObserver(IMixedRealityServiceRegistrar registrar, IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem, string name = null, uint priority = default(uint), BaseMixedRealityProfile profile = null)
Parameters
Declaration
protected BaseSpatialObserver(IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem, string name = null, uint priority = default(uint), BaseMixedRealityProfile profile = null)
Parameters
Declaration
protected BaseSpatialObserver(IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem, string name = null, uint priority = default(uint), BaseMixedRealityProfile profile = null)
Parameters
Fields
Default dedicated layer for spatial awareness layer used by most components in MRTK
Declaration
public const int DefaultSpatialAwarenessLayer = 31
Field Value
Properties
Declaration
public int DefaultPhysicsLayer { get; }
Property Value
Declaration
public int DefaultPhysicsLayer { get; }
Property Value
Declaration
public bool IsRunning { get; protected set; }
Property Value
Declaration
public bool IsRunning { get; protected set; }
Property Value
Declaration
public bool IsStationaryObserver { get; set; }
Property Value
Declaration
public bool IsStationaryObserver { get; set; }
Property Value
Declaration
public Vector3 ObservationExtents { get; set; }
Property Value
Declaration
public Vector3 ObservationExtents { get; set; }
Property Value
Declaration
public Vector3 ObserverOrigin { get; set; }
Property Value
Declaration
public Vector3 ObserverOrigin { get; set; }
Property Value
Declaration
public Quaternion ObserverRotation { get; set; }
Property Value
Type |
Description |
Quaternion |
|
Declaration
public Quaternion ObserverRotation { get; set; }
Property Value
Type |
Description |
Quaternion |
|
Declaration
public VolumeType ObserverVolumeType { get; set; }
Property Value
Type |
Description |
VolumeType |
|
Declaration
public VolumeType ObserverVolumeType { get; set; }
Property Value
Type |
Description |
VolumeType |
|
Declaration
public uint SourceId { get; }
Property Value
Declaration
public uint SourceId { get; }
Property Value
Declaration
public string SourceName { get; }
Property Value
Declaration
public string SourceName { get; }
Property Value
The spatial awareness system that is associated with this observer.
Declaration
protected IMixedRealitySpatialAwarenessSystem SpatialAwarenessSystem { get; }
Property Value
The spatial awareness system that is associated with this observer.
Declaration
protected IMixedRealitySpatialAwarenessSystem SpatialAwarenessSystem { get; }
Property Value
Declaration
public AutoStartBehavior StartupBehavior { get; set; }
Property Value
Type |
Description |
AutoStartBehavior |
|
Declaration
public AutoStartBehavior StartupBehavior { get; set; }
Property Value
Type |
Description |
AutoStartBehavior |
|
Declaration
public float UpdateInterval { get; set; }
Property Value
Declaration
public float UpdateInterval { get; set; }
Property Value
Methods
Ensures that the spatial observer has been stopped and destroyed.
Declaration
protected virtual void CleanupObserver()
Declaration
public virtual void ClearObservations()
Declaration
public virtual void ClearObservations()
Creates the spatial observer and handles the desired startup behavior.
Declaration
protected virtual void CreateObserver()
Declaration
public override void Destroy()
Overrides
Declaration
public override void Disable()
Overrides
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
Boolean |
disposing |
|
Overrides
Declaration
public override void Enable()
Overrides
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
Declaration
public override int GetHashCode()
Returns
Overrides
Declaration
public override int GetHashCode()
Returns
Overrides
Declaration
public int GetHashCode(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Declaration
public int GetHashCode(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Declaration
public override void Initialize()
Overrides
Suspends the observer, clears observations, cleans up the observer, then re-initializes.
Declaration
public override void Reset()
Overrides
Declaration
public virtual void Resume()
Declaration
public virtual void Resume()
Declaration
public virtual void Suspend()
Declaration
public virtual void Suspend()
Implements
IDisposable
IEqualityComparer