Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
TextualNoteObject.h
Go to the documentation of this file.
1#pragma once
2
5
6#include <SDL/sdl_interface.h>
7
8#include <string>
9
10namespace ph::editor
11{
12
14{
15public:
16 math::TDecomposedTransform<real> getLocalToParent() const override;
17 void setLocalToParent(const math::TDecomposedTransform<real>& transform) override;
18
19private:
20 std::string m_text;
21 ObjectTransform m_textTransform;
22
23public:
24 PH_DEFINE_SDL_CLASS(TSdlOwnerClass<TextualNoteObject>)
25 {
26 ClassType clazz("textual-note-dobj");
27 clazz.docName("Textual Note Designer Object");
28 clazz.description("Showing notes in text form in the scene.");
29 clazz.baseOn<FlatDesignerObject>();
30
31 TSdlString<OwnerType> text("text", &OwnerType::m_text);
32 text.description("Notes in string.");
33 clazz.addField(text);
34
35 clazz.addStruct(&OwnerType::m_textTransform);
36
37 return clazz;
38 }
39};
40
41}// end namespace ph::editor
std::string text
Definition ImguiEditorLog.cpp:23
Definition FlatDesignerObject.h:12
Definition ObjectTransform.h:16
Definition TextualNoteObject.h:14
math::TDecomposedTransform< real > getLocalToParent() const override
Definition TextualNoteObject.cpp:8
void setLocalToParent(const math::TDecomposedTransform< real > &transform) override
Definition TextualNoteObject.cpp:13
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< TextualNoteObject >)
Definition TextualNoteObject.h:24
Definition ph_editor.h:10