HitDetectionOutlinerNotificationHandler.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #if !defined(Q_MOC_RUN)
  10. #include <EMotionFX/Tools/EMotionStudio/EMStudioSDK/Source/DockWidgetPlugin.h>
  11. #include <Editor/Plugins/SkeletonOutliner/SkeletonOutlinerBus.h>
  12. #endif
  13. QT_FORWARD_DECLARE_CLASS(QVBoxLayout)
  14. namespace EMotionFX
  15. {
  16. class Node;
  17. class HitDetectionJointWidget;
  18. class HitDetectionOutlinerNotificationHandler
  19. : public QObject
  20. , private EMotionFX::SkeletonOutlinerNotificationBus::Handler
  21. {
  22. Q_OBJECT //AUTOMOC
  23. public:
  24. HitDetectionOutlinerNotificationHandler(HitDetectionJointWidget* jointWidget);
  25. ~HitDetectionOutlinerNotificationHandler();
  26. // SkeletonOutlinerNotificationBus overrides
  27. void OnContextMenu(QMenu* menu, const QModelIndexList& selectedRowIndices) override;
  28. public slots:
  29. void OnAddCollider();
  30. void OnClearColliders();
  31. private:
  32. HitDetectionJointWidget* m_nodeWidget;
  33. };
  34. } // namespace EMotionFX