EditorShapeTestUtils.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 <AZTestShared/Utils/Utils.h>
  10. #include <AzManipulatorTestFramework/AzManipulatorTestFramework.h>
  11. #include <AzManipulatorTestFramework/AzManipulatorTestFrameworkTestHelpers.h>
  12. #include <AzManipulatorTestFramework/AzManipulatorTestFrameworkUtils.h>
  13. #include <AzManipulatorTestFramework/ImmediateModeActionDispatcher.h>
  14. #include <AzManipulatorTestFramework/IndirectManipulatorViewportInteraction.h>
  15. #include <AzManipulatorTestFramework/ViewportInteraction.h>
  16. #include <AzToolsFramework/ComponentModes/ShapeComponentModeBus.h>
  17. namespace LmbrCentral
  18. {
  19. void EnterComponentMode(AZ::EntityId entityId, const AZ::Uuid& componentType);
  20. void SetComponentSubMode(
  21. AZ::EntityComponentIdPair entityComponentIdPair, AzToolsFramework::ShapeComponentModeRequests::SubMode subMode);
  22. void ExpectBoxDimensions(AZ::EntityId entityId, const AZ::Vector3& expectedBoxDimensions);
  23. void ExpectCapsuleRadius(AZ::EntityId entityId, float expectedRadius);
  24. void ExpectCapsuleHeight(AZ::EntityId entityId, float expectedHeight);
  25. void ExpectSphereRadius(AZ::EntityId, float expectedRadius);
  26. void ExpectTranslationOffset(AZ::EntityId entityId, const AZ::Vector3& expectedTranslationOffset);
  27. void ExpectSubMode(
  28. AZ::EntityComponentIdPair entityComponentIdPair, AzToolsFramework::ShapeComponentModeRequests::SubMode expectedSubMode);
  29. AzToolsFramework::ViewportInteraction::MouseInteractionResult CtrlScroll(float wheelDelta);
  30. } // namespace LmbrCentral