// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using UnityEngine.EventSystems; namespace Microsoft.MixedReality.Toolkit.Boundary { /// /// The data describing the boundary system event. /// public class BoundaryEventData : GenericBaseEventData { /// /// Is the floor being visualized by the boundary system. /// public bool IsFloorVisualized { get; private set; } /// /// Is the play area being visualized by the boundary system. /// public bool IsPlayAreaVisualized { get; private set; } /// /// Is the tracked area being visualized by the boundary system. /// public bool IsTrackedAreaVisualized { get; private set; } /// /// Are the boundary walls being visualized by the boundary system. /// public bool AreBoundaryWallsVisualized { get; private set; } /// /// Is the ceiling being visualized by the boundary system. /// /// /// The boundary system defines the ceiling as a plane set at above the floor. /// public bool IsCeilingVisualized { get; private set; } /// /// Constructor. /// public BoundaryEventData(EventSystem eventSystem) : base(eventSystem) { } public void Initialize( IMixedRealityBoundarySystem boundarySystem, bool isFloorVisualized, bool isPlayAreaVisualized, bool isTrackedAreaVisualized, bool areBoundaryWallsVisualized, bool isCeilingVisualized) { base.BaseInitialize(boundarySystem); IsFloorVisualized = isFloorVisualized; IsPlayAreaVisualized = isPlayAreaVisualized; IsTrackedAreaVisualized = isTrackedAreaVisualized; AreBoundaryWallsVisualized = areBoundaryWallsVisualized; IsCeilingVisualized = isCeilingVisualized; } } }