/// <summary> /// Updates the UI to represent the given axis /// </summary> /// <param name="axis">CullAxis to display</param> private void OnSelectCullAxis(CullAxis axis) { switch (axis) { case CullAxis.X: _x.interactable = false; _y.interactable = true; _z.interactable = true; _minSlider.CurrentFloat = _volumeRendering.SliceXMin; _maxSlider.CurrentFloat = _volumeRendering.SliceXMax; break; case CullAxis.Y: _x.interactable = true; _y.interactable = false; _z.interactable = true; _minSlider.CurrentFloat = _volumeRendering.SliceYMin; _maxSlider.CurrentFloat = _volumeRendering.SliceYMax; break; case CullAxis.Z: _x.interactable = true; _y.interactable = true; _z.interactable = false; _minSlider.CurrentFloat = _volumeRendering.SliceZMin; _maxSlider.CurrentFloat = _volumeRendering.SliceZMax; break; default: throw new ArgumentOutOfRangeException(nameof(axis), axis, null); } }
/// <summary> /// Changes the currently selected cull axis to the Z Axis /// </summary> public void SetCullAxisZ() { _currentConfig = CullAxis.Z; OnSelectCullAxis(_currentConfig); }