EditorDebugComponent.h 1.7 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. #include "DebugComponent.h"
  10. #include <AzCore/Component/TickBus.h>
  11. #include <Vegetation/Editor/EditorVegetationComponentBase.h>
  12. namespace Vegetation
  13. {
  14. class EditorDebugComponent
  15. : public EditorVegetationComponentBase<DebugComponent, DebugConfig>
  16. {
  17. public:
  18. using BaseClassType = EditorVegetationComponentBase<DebugComponent, DebugConfig>;
  19. AZ_EDITOR_COMPONENT(EditorDebugComponent, "{BE98DFCB-6890-4E87-920B-067B2D853538}", BaseClassType);
  20. static void Reflect(AZ::ReflectContext* context);
  21. //////////////////////////////////////////////////////////////////////////
  22. // AZ::Component interface implementation
  23. void Activate() override;
  24. static constexpr const char* const s_categoryName = "Vegetation";
  25. static constexpr const char* const s_componentName = "Vegetation Debugger";
  26. static constexpr const char* const s_componentDescription = "";
  27. static constexpr const char* const s_icon = "Editor/Icons/Components/Vegetation.svg";
  28. static constexpr const char* const s_viewportIcon = "Editor/Icons/Components/Viewport/Vegetation.svg";
  29. static constexpr const char* const s_helpUrl = "https://o3de.org/docs/user-guide/components/reference/";
  30. protected:
  31. void OnDumpDataToFile();
  32. void OnClearReport();
  33. void OnRefreshAllAreas();
  34. void OnClearAllAreas();
  35. private:
  36. DebugRequests::PerformanceReport m_report;
  37. };
  38. }