/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Editor/EditorFramework/EditTools/GizmoEditTool.h
50 строк
2 KB
Ingrater
Format everything using clang-format (#267)
22 июл 2020, 21:23
Не верифицирован
22 июл 2020, 21:23
878ce7e
Код
Авторство
О чём код?
#pragma once #include <EditorFramework/EditTools/EditTool.h> #include <EditorFramework/EditorFrameworkDLL.h> struct ezEngineWindowEvent; struct ezGameObjectEvent; struct ezDocumentObjectStructureEvent; struct ezManipulatorManagerEvent; struct ezSelectionManagerEvent; struct ezCommandHistoryEvent; struct ezGizmoEvent; class EZ_EDITORFRAMEWORK_DLL ezGameObjectGizmoEditTool : public ezGameObjectEditTool { EZ_ADD_DYNAMIC_REFLECTION(ezGameObjectGizmoEditTool, ezGameObjectEditTool); public: ezGameObjectGizmoEditTool(); ~ezGameObjectGizmoEditTool(); void TransformationGizmoEventHandler(const ezGizmoEvent& e); protected: virtual void OnConfigured() override; void UpdateGizmoSelectionList(); void UpdateGizmoVisibleState(); virtual void ApplyGizmoVisibleState(bool visible) = 0; void UpdateGizmoTransformation(); virtual void ApplyGizmoTransformation(const ezTransform& transform) = 0; virtual void TransformationGizmoEventHandlerImpl(const ezGizmoEvent& e) = 0; ezDeque<ezSelectedGameObject> m_GizmoSelection; bool m_bInGizmoInteraction = false; bool m_bMergeTransactions = false; private: void DocumentWindowEventHandler(const ezQtDocumentWindowEvent& e); void UpdateManipulatorVisibility(); void GameObjectEventHandler(const ezGameObjectEvent& e); void CommandHistoryEventHandler(const ezCommandHistoryEvent& e); void SelectionManagerEventHandler(const ezSelectionManagerEvent& e); void ManipulatorManagerEventHandler(const ezManipulatorManagerEvent& e); void EngineWindowEventHandler(const ezEngineWindowEvent& e); void ObjectStructureEventHandler(const ezDocumentObjectStructureEvent& e); };