3
0

EditorWhiteBoxComponentModeCommon.h 958 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/Component/ComponentBus.h>
  10. #include <AzToolsFramework/Viewport/ViewportTypes.h>
  11. namespace WhiteBox
  12. {
  13. struct WhiteBoxMesh;
  14. //! Record an undo/redo step and notify the white box mesh
  15. void RecordWhiteBoxAction(
  16. WhiteBoxMesh& whiteBox, const AZ::EntityComponentIdPair entityComponentIdPair, const char* undoRedoDesc);
  17. //! Returns true if user input is for flipping an edge
  18. bool InputFlipEdge(const AzToolsFramework::ViewportInteraction::MouseInteractionEvent& mouseInteraction);
  19. //! Returns true if user input is for restoring a vertex/edge
  20. bool InputRestore(const AzToolsFramework::ViewportInteraction::MouseInteractionEvent& mouseInteraction);
  21. } // namespace WhiteBox