AnimGraphUIFixture.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 <Tests/SystemComponentFixture.h>
  10. #include <Tests/UI/UIFixture.h>
  11. #include <AzCore/UserSettings/UserSettingsComponent.h>
  12. #include <AzToolsFramework/UI/PropertyEditor/PropertyManagerComponent.h>
  13. #include <EMotionStudio/Plugins/StandardPlugins/Source/AnimGraph/BlendGraphWidget.h>
  14. #include <QString>
  15. namespace EMotionFX
  16. {
  17. class AnimGraphUIFixture
  18. : public UIFixture
  19. {
  20. public:
  21. void SetUp() override;
  22. EMotionFX::AnimGraph* CreateAnimGraph() const;
  23. EMStudio::NodeGraph* GetActiveNodeGraph() const;
  24. EMotionFX::AnimGraphNode* CreateAnimGraphNode(const AZStd::string& type, const AZStd::string& args="", const AnimGraph* animGraph = nullptr) const;
  25. AnimGraphNode* AddNodeToAnimGraph(EMotionFX::AnimGraph* animGraph, const QString& nodeTypeName);
  26. protected:
  27. EMStudio::AnimGraphPlugin* m_animGraphPlugin;
  28. EMStudio::BlendGraphWidget* m_blendGraphWidget;
  29. };
  30. } // end namespace EMotionFX