Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
DesignerObjectRemovalEvent.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <Common/assertion.h>
6
7namespace ph::editor
8{
9
10class DesignerObject;
11
16{
17public:
19
24
25private:
26 DesignerObject* m_obj;
27};
28
30 DesignerObject* const obj, DesignerScene* const scene)
31
32 : DesignerSceneEvent(scene)
33
34 , m_obj(obj)
35{
36 // This is guaranteed by this event
37 PH_ASSERT(isInitialized(obj));
38}
39
41{
42 PH_ASSERT(m_obj);
43 return *m_obj;
44}
45
46}// end namespace ph::editor
Definition DesignerObject.h:31
Event for an object that is going to be removed. The object has not been removed yet (and still being...
Definition DesignerObjectRemovalEvent.h:16
DesignerObject & getObject() const
Definition DesignerObjectRemovalEvent.h:40
DesignerObjectRemovalEvent(DesignerObject *obj, DesignerScene *scene)
Definition DesignerObjectRemovalEvent.h:29
Definition DesignerSceneEvent.h:16
static bool isInitialized(DesignerObject *obj)
Definition DesignerSceneEvent.cpp:12
Definition DesignerScene.h:58
Definition ph_editor.h:10