12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- #if !defined(Q_MOC_RUN)
- #include <Editor/Plugins/ColliderWidgets/ClothOutlinerNotificationHandler.h>
- #include <Editor/SkeletonModelJointWidget.h>
- #endif
- namespace Physics
- {
- class CharacterColliderNodeConfiguration;
- }
- namespace EMotionFX
- {
- class AddColliderButton;
- class ColliderContainerWidget;
- class ClothJointWidget : public SkeletonModelJointWidget
- {
- Q_OBJECT // AUTOMOC
- public:
- ClothJointWidget(QWidget* parent = nullptr);
- ~ClothJointWidget() = default;
- static Physics::CharacterColliderNodeConfiguration* GetNodeConfig(const QModelIndex& modelIndex);
- QString GetCardTitle() const override
- {
- return "Cloth Colliders";
- }
- QColor GetColor() const override
- {
- return QColor{ "#a675ff" };
- }
- public slots:
- void OnAddCollider(const AZ::TypeId& colliderType);
- void OnCopyCollider(size_t colliderIndex);
- void OnPasteCollider(size_t colliderIndex, bool replace);
- void OnRemoveCollider(size_t colliderIndex);
- protected:
- int WidgetCount() const override;
- public:
- ClothOutlinerNotificationHandler m_handler;
- private:
- // SkeletonModelJointWidget
- QWidget* CreateContentWidget(QWidget* parent) override;
- void InternalReinit() override;
- Physics::CharacterColliderNodeConfiguration* GetNodeConfig() const;
- int m_widgetCount = 0;
- };
- } // namespace EMotionFX
|