TDME2
1.9.200
Main Page
Related Pages
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
c
d
g
i
m
p
q
r
s
v
Enumerations
a
b
c
d
e
f
g
i
l
m
n
o
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
i
k
l
m
n
o
r
s
t
v
Related Functions
a
b
c
d
e
f
g
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
a
b
c
e
f
g
k
m
o
p
r
s
t
v
Functions
c
g
m
o
p
r
s
t
Variables
Macros
a
b
c
e
f
g
k
m
p
s
t
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
tdme
tools
editor
tabviews
DecalEditorTabView.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <memory>
4
#include <string>
5
6
#include <
tdme/tdme.h
>
7
#include <
tdme/engine/fwd-tdme.h
>
8
#include <
tdme/engine/prototype/fwd-tdme.h
>
9
#include <
tdme/engine/scene/Scene.h
>
10
#include <
tdme/tools/editor/misc/fwd-tdme.h
>
11
#include <
tdme/tools/editor/misc/CameraRotationInputHandlerEventHandler.h
>
12
#include <
tdme/tools/editor/tabcontrollers/fwd-tdme.h
>
13
#include <
tdme/tools/editor/tabcontrollers/DecalEditorTabController.h
>
14
#include <
tdme/tools/editor/tabviews/fwd-tdme.h
>
15
#include <
tdme/tools/editor/tabviews/subviews/fwd-tdme.h
>
16
#include <
tdme/tools/editor/tabviews/TabView.h
>
17
#include <
tdme/tools/editor/views/fwd-tdme.h
>
18
19
using
std::string;
20
using
std::unique_ptr;
21
22
using
tdme::engine::prototype::Prototype
;
23
using
tdme::engine::scene::Scene
;
24
using
tdme::engine::Engine
;
25
using
tdme::engine::FrameBuffer
;
26
using
tdme::tools::editor::misc::CameraRotationInputHandler
;
27
using
tdme::tools::editor::misc::CameraRotationInputHandlerEventHandler
;
28
using
tdme::tools::editor::misc::PopUps
;
29
using
tdme::tools::editor::tabcontrollers::DecalEditorTabController
;
30
using
tdme::tools::editor::tabcontrollers::TabController
;
31
using
tdme::tools::editor::tabviews::subviews::PrototypeDisplaySubView
;
32
using
tdme::tools::editor::tabviews::subviews::PrototypePhysicsSubView
;
33
using
tdme::tools::editor::tabviews::TabView
;
34
using
tdme::tools::editor::views::EditorView
;
35
36
/**
37
* Decal editor tab view
38
* @author Andreas Drewke
39
*/
40
class
tdme::tools::editor::tabviews::DecalEditorTabView
final
41
:
public
TabView
42
,
protected
CameraRotationInputHandlerEventHandler
43
{
44
protected
:
45
unique_ptr<Engine>
engine
;
46
47
private
:
48
EditorView
*
editorView
{
nullptr
};
49
string
tabId
;
50
PopUps
*
popUps
{
nullptr
};
51
unique_ptr<DecalEditorTabController>
decalEditorTabController
;
52
TabView::OutlinerState
outlinerState
;
53
54
unique_ptr<Prototype>
prototype
;
55
unique_ptr<CameraRotationInputHandler>
cameraRotationInputHandler
;
56
57
PrototypeDisplaySubView
*
prototypeDisplayView
{
nullptr
};
58
PrototypePhysicsSubView
*
prototypePhysicsView
{
nullptr
};
59
Vector3
objectScale
;
60
61
/**
62
* On rotation event to be overloaded
63
*/
64
void
onCameraRotation
()
override
;
65
66
/**
67
* On scale event to be overloaded
68
*/
69
void
onCameraScale
()
override
;
70
71
public
:
72
// forbid class copy
73
FORBID_CLASS_COPY
(
DecalEditorTabView
)
74
75
/**
76
* Public constructor
77
* @param editorView editor view
78
* @param tabId tab id
79
* @param prototype prototype
80
*/
81
DecalEditorTabView
(
EditorView
*
editorView
,
const
string
&
tabId
,
Prototype
*
prototype
);
82
83
/**
84
* Destructor
85
*/
86
~DecalEditorTabView
();
87
88
/**
89
* @return editor view
90
*/
91
inline
EditorView
*
getEditorView
() {
92
return
editorView
;
93
}
94
95
/**
96
* @return associated tab controller
97
*/
98
inline
TabController
*
getTabController
()
override
{
99
return
decalEditorTabController
.get();
100
}
101
102
/**
103
* @return pop up views
104
*/
105
inline
PopUps
*
getPopUps
() {
106
return
popUps
;
107
}
108
109
/**
110
* @return prototype
111
*/
112
inline
Prototype
*
getPrototype
() {
113
return
prototype
.get();
114
}
115
116
// overridden methods
117
void
handleInputEvents
()
override
;
118
void
display
()
override
;
119
inline
const
string
&
getTabId
()
override
{
120
return
tabId
;
121
}
122
void
initialize
()
override
;
123
void
dispose
()
override
;
124
Engine
*
getEngine
()
override
;
125
void
activate
()
override
;
126
void
deactivate
()
override
;
127
void
reloadOutliner
()
override
;
128
inline
bool
hasFixedSize
()
override
{
return
false
; };
129
void
updateRendering
()
override
;
130
131
/**
132
* Saving prototype as tempty prototype
133
* @param pathName path name
134
* @param fileName file name
135
*/
136
void
saveFile
(
const
string
& pathName,
const
string
& fileName);
137
138
};
CameraRotationInputHandlerEventHandler.h
DecalEditorTabController.h
Scene.h
TabView.h
tdme::engine::Engine
Engine main class.
Definition:
Engine.h:131
tdme::engine::FrameBuffer
Frame buffer class.
Definition:
FrameBuffer.h:22
tdme::engine::prototype::Prototype
Prototype definition.
Definition:
Prototype.h:55
tdme::engine::scene::Scene
Scene definition.
Definition:
Scene.h:50
tdme::math::Vector3
Vector3 class representing vector3 mathematical structure and operations with x, y,...
Definition:
Vector3.h:20
tdme::tools::editor::misc::CameraRotationInputHandler
Camera Rotation Input Handler.
Definition:
CameraRotationInputHandler.h:22
tdme::tools::editor::misc::PopUps
Pop ups controller accessor class.
Definition:
PopUps.h:29
tdme::tools::editor::tabcontrollers::DecalEditorTabController
Decal editor tab controller.
Definition:
DecalEditorTabController.h:51
tdme::tools::editor::tabviews::DecalEditorTabView
Decal editor tab view.
Definition:
DecalEditorTabView.h:43
tdme::tools::editor::tabviews::DecalEditorTabView::saveFile
void saveFile(const string &pathName, const string &fileName)
Saving prototype as tempty prototype.
Definition:
DecalEditorTabView.cpp:125
tdme::tools::editor::tabviews::DecalEditorTabView::dispose
void dispose() override
Disposes the view.
Definition:
DecalEditorTabView.cpp:97
tdme::tools::editor::tabviews::DecalEditorTabView::hasFixedSize
bool hasFixedSize() override
If this viewport framebuffer has a fixed size.
Definition:
DecalEditorTabView.h:128
tdme::tools::editor::tabviews::DecalEditorTabView::display
void display() override
Renders the view.
Definition:
DecalEditorTabView.cpp:72
tdme::tools::editor::tabviews::DecalEditorTabView::reloadOutliner
void reloadOutliner() override
Reload outliner.
Definition:
DecalEditorTabView.cpp:120
tdme::tools::editor::tabviews::DecalEditorTabView::tabId
string tabId
Definition:
DecalEditorTabView.h:49
tdme::tools::editor::tabviews::DecalEditorTabView::onCameraRotation
void onCameraRotation() override
On rotation event to be overloaded.
Definition:
DecalEditorTabView.cpp:129
tdme::tools::editor::tabviews::DecalEditorTabView::engine
unique_ptr< Engine > engine
Definition:
DecalEditorTabView.h:45
tdme::tools::editor::tabviews::DecalEditorTabView::initialize
void initialize() override
Initiates the view.
Definition:
DecalEditorTabView.cpp:83
tdme::tools::editor::tabviews::DecalEditorTabView::deactivate
void deactivate() override
Deactivate.
Definition:
DecalEditorTabView.cpp:116
tdme::tools::editor::tabviews::DecalEditorTabView::getEngine
Engine * getEngine() override
Definition:
DecalEditorTabView.cpp:105
tdme::tools::editor::tabviews::DecalEditorTabView::getTabId
const string & getTabId() override
Definition:
DecalEditorTabView.h:119
tdme::tools::editor::tabviews::DecalEditorTabView::getTabController
TabController * getTabController() override
Definition:
DecalEditorTabView.h:98
tdme::tools::editor::tabviews::DecalEditorTabView::handleInputEvents
void handleInputEvents() override
Handle input events that have not yet been processed.
Definition:
DecalEditorTabView.cpp:66
tdme::tools::editor::tabviews::DecalEditorTabView::outlinerState
TabView::OutlinerState outlinerState
Definition:
DecalEditorTabView.h:52
tdme::tools::editor::tabviews::DecalEditorTabView::activate
void activate() override
Activate.
Definition:
DecalEditorTabView.cpp:109
tdme::tools::editor::tabviews::DecalEditorTabView::getPrototype
Prototype * getPrototype()
Definition:
DecalEditorTabView.h:112
tdme::tools::editor::tabviews::DecalEditorTabView::getPopUps
PopUps * getPopUps()
Definition:
DecalEditorTabView.h:105
tdme::tools::editor::tabviews::DecalEditorTabView::cameraRotationInputHandler
unique_ptr< CameraRotationInputHandler > cameraRotationInputHandler
Definition:
DecalEditorTabView.h:55
tdme::tools::editor::tabviews::DecalEditorTabView::prototypePhysicsView
PrototypePhysicsSubView * prototypePhysicsView
Definition:
DecalEditorTabView.h:58
tdme::tools::editor::tabviews::DecalEditorTabView::DecalEditorTabView
DecalEditorTabView(EditorView *editorView, const string &tabId, Prototype *prototype)
Public constructor.
Definition:
DecalEditorTabView.cpp:49
tdme::tools::editor::tabviews::DecalEditorTabView::objectScale
Vector3 objectScale
Definition:
DecalEditorTabView.h:59
tdme::tools::editor::tabviews::DecalEditorTabView::getEditorView
EditorView * getEditorView()
Definition:
DecalEditorTabView.h:91
tdme::tools::editor::tabviews::DecalEditorTabView::decalEditorTabController
unique_ptr< DecalEditorTabController > decalEditorTabController
Definition:
DecalEditorTabView.h:51
tdme::tools::editor::tabviews::DecalEditorTabView::popUps
PopUps * popUps
Definition:
DecalEditorTabView.h:50
tdme::tools::editor::tabviews::DecalEditorTabView::updateRendering
void updateRendering() override
Update rendering.
Definition:
DecalEditorTabView.cpp:102
tdme::tools::editor::tabviews::DecalEditorTabView::prototype
unique_ptr< Prototype > prototype
Definition:
DecalEditorTabView.h:54
tdme::tools::editor::tabviews::DecalEditorTabView::prototypeDisplayView
PrototypeDisplaySubView * prototypeDisplayView
Definition:
DecalEditorTabView.h:57
tdme::tools::editor::tabviews::DecalEditorTabView::~DecalEditorTabView
~DecalEditorTabView()
Destructor.
Definition:
DecalEditorTabView.cpp:63
tdme::tools::editor::tabviews::DecalEditorTabView::editorView
EditorView * editorView
Definition:
DecalEditorTabView.h:48
tdme::tools::editor::tabviews::DecalEditorTabView::onCameraScale
void onCameraScale() override
On scale event to be overloaded.
Definition:
DecalEditorTabView.cpp:133
tdme::tools::editor::tabviews::subviews::PrototypeDisplaySubView
Prototype display view.
Definition:
PrototypeDisplaySubView.h:24
tdme::tools::editor::tabviews::subviews::PrototypePhysicsSubView
Prototype physics view.
Definition:
PrototypePhysicsSubView.h:30
tdme::tools::editor::views::EditorView
Editor View.
Definition:
EditorView.h:38
fwd-tdme.h
fwd-tdme.h
tdme::tools::editor::misc::CameraRotationInputHandlerEventHandler
Camera Rotation Input Handler Event Handler.
Definition:
CameraRotationInputHandlerEventHandler.h:11
tdme::tools::editor::tabcontrollers::TabController
Tab controller, which connects UI with logic.
Definition:
TabController.h:34
tdme::tools::editor::tabviews::TabView::OutlinerState
Definition:
TabView.h:28
tdme::tools::editor::tabviews::TabView
Tab view interface.
Definition:
TabView.h:27
tdme.h
FORBID_CLASS_COPY
#define FORBID_CLASS_COPY(CLASS)
Definition:
tdme.h:6
fwd-tdme.h
fwd-tdme.h
fwd-tdme.h
fwd-tdme.h
fwd-tdme.h
Generated by
1.9.1