Picking.h 914 B

123456789101112131415161718192021222324252627282930313233
  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/RTTI/TypeInfo.h>
  10. #include <Integration/Rendering/RenderFlag.h>
  11. namespace AzToolsFramework::ViewportInteraction
  12. {
  13. struct MouseInteractionEvent;
  14. } // namespace AzToolsFramework::ViewportInteraction
  15. namespace EMotionFX
  16. {
  17. inline constexpr float PickingMargin = 0.01f;
  18. //! Supports clicking in the animation editor viewport to select a joint.
  19. class Picking
  20. {
  21. public:
  22. bool HandleMouseInteraction(const AzToolsFramework::ViewportInteraction::MouseInteractionEvent& mouseInteractionEvent);
  23. void SetRenderFlags(ActorRenderFlags renderFlags);
  24. private:
  25. ActorRenderFlags m_renderFlags;
  26. };
  27. } // namespace EMotionFX