Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
DesignerSceneEvent.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <Common/assertion.h>
6#include <Utility/utility.h>
7
8namespace ph::editor
9{
10
11class DesignerScene;
12class DesignerObject;
13class Editor;
14
16{
17// Hide special members as this class is not intended to be used polymorphically.
18// It is derived class's choice to expose them (by defining them in public) or not.
19protected:
21
22public:
23 explicit DesignerSceneEvent(DesignerScene* scene);
24
25 DesignerScene& getScene() const;
26 Editor& getEditor() const;
27
28protected:
31 static bool isInitialized(DesignerObject* obj);
32
33private:
34 DesignerScene* m_scene;
35};
36
38 : Event()
39 , m_scene(scene)
40{}
41
43{
44 PH_ASSERT(m_scene);
45 return *m_scene;
46}
47
48}// end namespace ph::editor
Definition DesignerObject.h:31
Definition DesignerSceneEvent.h:16
static bool isInitialized(DesignerObject *obj)
Definition DesignerSceneEvent.cpp:12
DesignerSceneEvent(DesignerScene *scene)
Definition DesignerSceneEvent.h:37
Editor & getEditor() const
Definition DesignerSceneEvent.cpp:7
PH_DEFINE_INLINE_RULE_OF_5_MEMBERS(DesignerSceneEvent)
DesignerScene & getScene() const
Definition DesignerSceneEvent.h:42
Definition DesignerScene.h:58
Definition Editor.h:45
Base of all event types. Derived classes should strive to keep the size of the object small,...
Definition Event.h:59
Definition ph_editor.h:10