Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
FlatDesignerObject.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <SDL/sdl_interface.h>
6#include <Utility/utility.h>
7
8namespace ph::editor
9{
10
12{
13public:
15
16 math::TDecomposedTransform<real> getLocalToParent() const override = 0;
17 void setLocalToParent(const math::TDecomposedTransform<real>& transform) override = 0;
18
19 TSpanView<DesignerObject*> getChildren() const override;
20 bool canHaveChildren() const override;
21
22protected:
24
25private:
26 DesignerObject* addChild(DesignerObject* childObj) override;
27 bool removeChild(DesignerObject* childObj) override;
28
29public:
30 PH_DEFINE_SDL_CLASS(TSdlOwnerClass<FlatDesignerObject>)
31 {
32 ClassType clazz("flat-dobj");
33 clazz.docName("Flat Designer Object");
34 clazz.description("A designer object that does not allow any children.");
35 clazz.baseOn<DesignerObject>();
36 return clazz;
37 }
38};
39
40}// end namespace ph::editor
Definition DesignerObject.h:31
Definition FlatDesignerObject.h:12
PH_DECLARE_RULE_OF_5_MEMBERS_NO_DTOR(FlatDesignerObject)
math::TDecomposedTransform< real > getLocalToParent() const override=0
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< FlatDesignerObject >)
Definition FlatDesignerObject.h:30
bool canHaveChildren() const override
Definition FlatDesignerObject.cpp:15
TSpanView< DesignerObject * > getChildren() const override
Definition FlatDesignerObject.cpp:10
void setLocalToParent(const math::TDecomposedTransform< real > &transform) override=0
Definition ph_editor.h:10