Skip to content

Commit 151eaa7

Browse files
author
David Kline (ANALOG)
committed
restore add/update, tweak docs
1 parent bb2564a commit 151eaa7

File tree

6 files changed

+27
-15
lines changed

6 files changed

+27
-15
lines changed

Assets/MixedRealityToolkit-SDK/Features/SpatialAwareness/System/Handlers/MixedRealitySpatialAwarenessMeshHandler.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ namespace Microsoft.MixedReality.Toolkit.SDK.SpatialAwarenessSystem.Handlers
1212
public class MixedRealitySpatialAwarehessMeshHandler : IMixedRealitySpatialAwarenessMeshHandler
1313
{
1414
/// <inheritdoc />
15-
public void OnMeshAvailable(MixedRealitySpatialAwarenessEventData eventData)
15+
public void OnMeshAdded(MixedRealitySpatialAwarenessEventData eventData)
16+
{
17+
// todo
18+
}
19+
20+
/// <inheritdoc />
21+
public void OnMeshUpdated(MixedRealitySpatialAwarenessEventData eventData)
1622
{
1723
// todo
1824
}

Assets/MixedRealityToolkit/_Core/Interfaces/SpatialAwareness/Handlers/IMixedRealitySpatialAwarenessMeshHandler.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ namespace Microsoft.MixedReality.Toolkit.Core.Interfaces.SpatialAwarenessSystem.
99
public interface IMixedRealitySpatialAwarenessMeshHandler : IEventSystemHandler
1010
{
1111
/// <summary>
12-
/// Called when the spatial awareness mesh subsystem adds or updates a mesh.
12+
/// Called when the spatial awareness mesh subsystem adds a mesh.
1313
/// </summary>
1414
/// <param name="eventData">Data describing the event.</param>
15-
void OnMeshAvailable(MixedRealitySpatialAwarenessEventData eventData);
15+
void OnMeshAdded(MixedRealitySpatialAwarenessEventData eventData);
16+
17+
/// <summary>
18+
/// Called when the spatial awareness mesh subsystem updates an existing mesh.
19+
/// </summary>
20+
/// <param name="eventData">Data describing the event.</param>
21+
void OnMeshUpdated(MixedRealitySpatialAwarenessEventData eventData);
1622

1723
/// <summary>
1824
/// Called when the spatial awareness mesh subsystem removes an existing mesh.

Documentation/Architecture/SpatialAwareness/IMixedRealitySpatialAwarenessMeshHandler.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
<img src="Images/IMixedRealitySpatialAwarenessMeshHandler.png">
88

9-
## void OnMeshAdded([MixedRealitySpatialMeshEventData](./MixedRealitySpatialMeshEventData.md) eventData)
9+
## void OnMeshAdded([MixedRealitySpatialEventData](./MixedRealitySpatialEventData.md) eventData)
1010

1111
Called when a new surface mesh has been identified by the spatial awareness system.
1212

13-
## void OnMeshUpdated([MixedRealitySpatialMeshEventData](./MixedRealitySpatialMeshEventData.md) eventData)
13+
## void OnMeshUpdated([MixedRealitySpatialEventData](./MixedRealitySpatialEventData.md) eventData)
1414

1515
Called when an existing surface mesh has been modified by the spatial awareness system.
1616

17-
## OnMeshDeleted([MixedRealitySpatialMeshEventData](./MixedRealitySpatialMeshEventData.md) eventData)
17+
## OnMeshDeleted([MixedRealitySpatialEventData](./MixedRealitySpatialEventData.md) eventData)
1818

1919
Called when an existing surface mesh has been discarded by the spatial awareness system.
2020

Documentation/Architecture/SpatialAwareness/IMixedRealitySpatialAwarenessSurfaceFindingHandler.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
<img src="Images/IMixedRealitySpatialAwarenessSurfaceFindingHandler.png">
88

9-
## OnSurfaceAdded([MixedRealitySpatialSurfaceEventData](./MixedRealitySpatialSurfaceEventData.md) eventData)
9+
## OnSurfaceAdded([MixedRealitySpatialAwarenessEventData](./MixedRealitySpatialAwarenessEventData.md) eventData)
1010

1111
Called when a new planar surface has been identified by the spatial awareness system.
1212

13-
## OnSurfaceUpdated([MixedRealitySpatialSurfaceEventData](./MixedRealitySpatialSurfaceEventData.md) eventData)
13+
## OnSurfaceUpdated([MixedRealitySpatialAwarenessEventData](./MixedRealitySpatialAwarenessEventData.md) eventData)
1414

1515
Called when an existing planar surface has been modified by the spatial awareness system.
1616

17-
## OnSurfaceDeleted([MixedRealitySpatialSurfaceEventData](./MixedRealitySpatialSurfaceEventData.md) eventDatawhat do )
17+
## OnSurfaceDeleted([MixedRealitySpatialAwarenessEventData](./MixedRealitySpatialAwarenessEventData.md) eventDatawhat do )
1818

1919
Called when an existing planar surface has been discarded by the spatial awareness system.
2020

Documentation/Architecture/SpatialAwareness/MixedRealitySpatialAwarenessMeshHandler.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
The MixedRealitySpatialAwarenessMeshHandler class provides the default implementation of the [IMixedRealitySpatialAwarenessMeshHandler](./IMixedRealitySpatialAwarenessMeshHandler.md) interface.
88

9-
## void OnMeshAdded([MixedRealitySpatialMeshEventData](./MixedRealitySpatialMeshEventData.md) eventData)
9+
## void OnMeshAdded([MixedRealitySpatialEventData](./MixedRealitySpatialEventData.md) eventData)
1010

1111
Called when a new surface mesh has been identified by the spatial awareness system.
1212

13-
## void OnMeshUpdated([MixedRealitySpatialMeshEventData](./MixedRealitySpatialMeshEventData.md) eventData)
13+
## void OnMeshUpdated([MixedRealitySpatialEventData](./MixedRealitySpatialEventData.md) eventData)
1414

1515
Called when an existing surface mesh has been modified by the spatial awareness system.
1616

17-
## OnMeshDeleted([MixedRealitySpatialMeshEventData](./MixedRealitySpatialMeshEventData.md) eventData)
17+
## OnMeshDeleted([MixedRealitySpatialEventData](./MixedRealitySpatialEventData.md) eventData)
1818

1919
Called when an existing surface mesh has been discarded by the spatial awareness system.
2020

Documentation/Architecture/SpatialAwareness/MixedRealitySpatialAwarenessPlanarSurfaceHandler.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
The MixedRealitySpatialAwarenessSurfaceFindingHandler class provides the default implementation of the [IMixedRealitySpatialAwarenessSurfaceFindingHandler](./IMixedRealitySpatialAwarenessSurfaceFindingHandler.md) interface.
88

9-
## OnSurfaceAdded([MixedRealitySpatialSurfaceEventData](./MixedRealitySpatialSurfaceEventData.md) eventData)
9+
## OnSurfaceAdded([MixedRealitySpatialAwarenessEventData](./MixedRealitySpatialAwarenessEventData.md) eventData)
1010

1111
Called when a new planar surface has been identified by the spatial awareness system.
1212

13-
## OnSurfaceUpdated([MixedRealitySpatialSurfaceEventData](./MixedRealitySpatialSurfaceEventData.md) eventData)
13+
## OnSurfaceUpdated([MixedRealitySpatialAwarenessEventData](./MixedRealitySpatialAwarenessEventData.md) eventData)
1414

1515
Called when an existing planar surface has been modified by the spatial awareness system.
1616

17-
## OnSurfaceDeleted([MixedRealitySpatialSurfaceEventData](./MixedRealitySpatialSurfaceEventData.md) eventDatawhat do )
17+
## OnSurfaceDeleted([MixedRealitySpatialAwarenessEventData](./MixedRealitySpatialAwarenessEventData.md) eventDatawhat do )
1818

1919
Called when an existing planar surface has been discarded by the spatial awareness system.
2020

0 commit comments

Comments
 (0)