TDME2
1.9.121
src
tdme
tools
editor
tabviews
TriggerEditorTabView.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
#include <
tdme/tdme.h
>
6
#include <
tdme/engine/fwd-tdme.h
>
7
#include <
tdme/engine/prototype/fwd-tdme.h
>
8
#include <
tdme/engine/scene/Scene.h
>
9
#include <
tdme/tools/editor/misc/fwd-tdme.h
>
10
#include <
tdme/tools/editor/misc/CameraRotationInputHandlerEventHandler.h
>
11
#include <
tdme/tools/editor/tabcontrollers/fwd-tdme.h
>
12
#include <
tdme/tools/editor/tabcontrollers/TriggerEditorTabController.h
>
13
#include <
tdme/tools/editor/tabviews/fwd-tdme.h
>
14
#include <
tdme/tools/editor/tabviews/subviews/fwd-tdme.h
>
15
#include <
tdme/tools/editor/tabviews/TabView.h
>
16
#include <
tdme/tools/editor/views/fwd-tdme.h
>
17
18
using
std::string;
19
20
using
tdme::engine::prototype::Prototype
;
21
using
tdme::engine::scene::Scene
;
22
using
tdme::engine::Engine
;
23
using
tdme::engine::FrameBuffer
;
24
using
tdme::tools::editor::misc::CameraRotationInputHandler
;
25
using
tdme::tools::editor::misc::CameraRotationInputHandlerEventHandler
;
26
using
tdme::tools::editor::misc::PopUps
;
27
using
tdme::tools::editor::tabcontrollers::TabController
;
28
using
tdme::tools::editor::tabcontrollers::TriggerEditorTabController
;
29
using
tdme::tools::editor::tabviews::subviews::PrototypeDisplaySubView
;
30
using
tdme::tools::editor::tabviews::subviews::PrototypePhysicsSubView
;
31
using
tdme::tools::editor::tabviews::TabView
;
32
using
tdme::tools::editor::views::EditorView
;
33
34
/**
35
* Trigger editor tab view
36
* @author Andreas Drewke
37
* @version $Id$
38
*/
39
class
tdme::tools::editor::tabviews::TriggerEditorTabView
final
40
:
public
TabView
41
,
protected
CameraRotationInputHandlerEventHandler
42
{
43
protected
:
44
Engine
*
engine
{
nullptr
};
45
46
private
:
47
EditorView
*
editorView
{
nullptr
};
48
string
tabId
;
49
PopUps
*
popUps
{
nullptr
};
50
TriggerEditorTabController
*
triggerEditorTabController
{
nullptr
};
51
TabView::OutlinerState
outlinerState
;
52
53
Prototype
*
prototype
{
nullptr
};
54
CameraRotationInputHandler
*
cameraRotationInputHandler
{
nullptr
};
55
PrototypeDisplaySubView
*
prototypeDisplayView
{
nullptr
};
56
PrototypePhysicsSubView
*
prototypePhysicsView
{
nullptr
};
57
Vector3
objectScale
;
58
59
/**
60
* On rotation event to be overloaded
61
*/
62
void
onCameraRotation
()
override
;
63
64
/**
65
* On scale event to be overloaded
66
*/
67
void
onCameraScale
()
override
;
68
69
public
:
70
/**
71
* Public constructor
72
* @param editorView editor view
73
* @param tabId tab id
74
* @param prototype prototype
75
*/
76
TriggerEditorTabView
(
EditorView
*
editorView
,
const
string
&
tabId
,
Prototype
*
prototype
);
77
78
/**
79
* Destructor
80
*/
81
~TriggerEditorTabView
();
82
83
/**
84
* @return editor view
85
*/
86
inline
EditorView
*
getEditorView
() {
87
return
editorView
;
88
}
89
90
/**
91
* @return associated tab controller
92
*/
93
inline
TabController
*
getTabController
()
override
{
94
return
triggerEditorTabController
;
95
}
96
97
/**
98
* @return pop up views
99
*/
100
inline
PopUps
*
getPopUps
() {
101
return
popUps
;
102
}
103
104
/**
105
* @return prototype
106
*/
107
inline
Prototype
*
getPrototype
() {
108
return
prototype
;
109
}
110
111
// overridden methods
112
void
handleInputEvents
()
override
;
113
void
display
()
override
;
114
inline
const
string
&
getTabId
()
override
{
115
return
tabId
;
116
}
117
void
initialize
()
override
;
118
void
dispose
()
override
;
119
Engine
*
getEngine
()
override
;
120
void
activate
()
override
;
121
void
deactivate
()
override
;
122
void
reloadOutliner
()
override
;
123
inline
bool
hasFixedSize
()
override
{
return
false
; };
124
void
updateRendering
()
override
;
125
126
/**
127
* Saving prototype as tempty prototype
128
* @param pathName path name
129
* @param fileName file name
130
*/
131
void
saveFile
(
const
string
& pathName,
const
string
& fileName);
132
133
};
CameraRotationInputHandlerEventHandler.h
Scene.h
TabView.h
TriggerEditorTabController.h
tdme::engine::Engine
Engine main class.
Definition:
Engine.h:122
tdme::engine::FrameBuffer
Frame buffer class.
Definition:
FrameBuffer.h:21
tdme::engine::prototype::Prototype
Prototype definition.
Definition:
Prototype.h:49
tdme::engine::scene::Scene
Scene definition.
Definition:
Scene.h:41
tdme::math::Vector3
3D vector 3 class
Definition:
Vector3.h:22
tdme::tools::editor::misc::CameraRotationInputHandler
Camera Rotation Input Handler.
Definition:
CameraRotationInputHandler.h:23
tdme::tools::editor::misc::PopUps
Pop ups controller accessor class.
Definition:
PopUps.h:19
tdme::tools::editor::tabcontrollers::TriggerEditorTabController
Trigger editor tab controller.
Definition:
TriggerEditorTabController.h:40
tdme::tools::editor::tabviews::TriggerEditorTabView
Trigger editor tab view.
Definition:
TriggerEditorTabView.h:42
tdme::tools::editor::tabviews::TriggerEditorTabView::engine
Engine * engine
Definition:
TriggerEditorTabView.h:44
tdme::tools::editor::tabviews::TriggerEditorTabView::saveFile
void saveFile(const string &pathName, const string &fileName)
Saving prototype as tempty prototype.
Definition:
TriggerEditorTabView.cpp:127
tdme::tools::editor::tabviews::TriggerEditorTabView::dispose
void dispose() override
Disposes the view.
Definition:
TriggerEditorTabView.cpp:99
tdme::tools::editor::tabviews::TriggerEditorTabView::hasFixedSize
bool hasFixedSize() override
If this viewport framebuffer has a fixed size.
Definition:
TriggerEditorTabView.h:123
tdme::tools::editor::tabviews::TriggerEditorTabView::display
void display() override
Renders the view.
Definition:
TriggerEditorTabView.cpp:74
tdme::tools::editor::tabviews::TriggerEditorTabView::reloadOutliner
void reloadOutliner() override
Reload outliner.
Definition:
TriggerEditorTabView.cpp:122
tdme::tools::editor::tabviews::TriggerEditorTabView::getTabController
TabController * getTabController() override
Definition:
TriggerEditorTabView.h:93
tdme::tools::editor::tabviews::TriggerEditorTabView::tabId
string tabId
Definition:
TriggerEditorTabView.h:48
tdme::tools::editor::tabviews::TriggerEditorTabView::onCameraRotation
void onCameraRotation() override
On rotation event to be overloaded.
Definition:
TriggerEditorTabView.cpp:131
tdme::tools::editor::tabviews::TriggerEditorTabView::initialize
void initialize() override
Initiates the view.
Definition:
TriggerEditorTabView.cpp:85
tdme::tools::editor::tabviews::TriggerEditorTabView::deactivate
void deactivate() override
Deactivate.
Definition:
TriggerEditorTabView.cpp:118
tdme::tools::editor::tabviews::TriggerEditorTabView::getEngine
Engine * getEngine() override
Definition:
TriggerEditorTabView.cpp:107
tdme::tools::editor::tabviews::TriggerEditorTabView::handleInputEvents
void handleInputEvents() override
Handle input events that have not yet been processed.
Definition:
TriggerEditorTabView.cpp:68
tdme::tools::editor::tabviews::TriggerEditorTabView::triggerEditorTabController
TriggerEditorTabController * triggerEditorTabController
Definition:
TriggerEditorTabView.h:50
tdme::tools::editor::tabviews::TriggerEditorTabView::outlinerState
TabView::OutlinerState outlinerState
Definition:
TriggerEditorTabView.h:51
tdme::tools::editor::tabviews::TriggerEditorTabView::cameraRotationInputHandler
CameraRotationInputHandler * cameraRotationInputHandler
Definition:
TriggerEditorTabView.h:54
tdme::tools::editor::tabviews::TriggerEditorTabView::getPopUps
PopUps * getPopUps()
Definition:
TriggerEditorTabView.h:100
tdme::tools::editor::tabviews::TriggerEditorTabView::activate
void activate() override
Activate.
Definition:
TriggerEditorTabView.cpp:111
tdme::tools::editor::tabviews::TriggerEditorTabView::prototypePhysicsView
PrototypePhysicsSubView * prototypePhysicsView
Definition:
TriggerEditorTabView.h:56
tdme::tools::editor::tabviews::TriggerEditorTabView::objectScale
Vector3 objectScale
Definition:
TriggerEditorTabView.h:57
tdme::tools::editor::tabviews::TriggerEditorTabView::getTabId
const string & getTabId() override
Definition:
TriggerEditorTabView.h:114
tdme::tools::editor::tabviews::TriggerEditorTabView::popUps
PopUps * popUps
Definition:
TriggerEditorTabView.h:49
tdme::tools::editor::tabviews::TriggerEditorTabView::getPrototype
Prototype * getPrototype()
Definition:
TriggerEditorTabView.h:107
tdme::tools::editor::tabviews::TriggerEditorTabView::prototype
Prototype * prototype
Definition:
TriggerEditorTabView.h:53
tdme::tools::editor::tabviews::TriggerEditorTabView::updateRendering
void updateRendering() override
Update rendering.
Definition:
TriggerEditorTabView.cpp:104
tdme::tools::editor::tabviews::TriggerEditorTabView::~TriggerEditorTabView
~TriggerEditorTabView()
Destructor.
Definition:
TriggerEditorTabView.cpp:60
tdme::tools::editor::tabviews::TriggerEditorTabView::prototypeDisplayView
PrototypeDisplaySubView * prototypeDisplayView
Definition:
TriggerEditorTabView.h:55
tdme::tools::editor::tabviews::TriggerEditorTabView::TriggerEditorTabView
TriggerEditorTabView(EditorView *editorView, const string &tabId, Prototype *prototype)
Public constructor.
Definition:
TriggerEditorTabView.cpp:46
tdme::tools::editor::tabviews::TriggerEditorTabView::editorView
EditorView * editorView
Definition:
TriggerEditorTabView.h:47
tdme::tools::editor::tabviews::TriggerEditorTabView::getEditorView
EditorView * getEditorView()
Definition:
TriggerEditorTabView.h:86
tdme::tools::editor::tabviews::TriggerEditorTabView::onCameraScale
void onCameraScale() override
On scale event to be overloaded.
Definition:
TriggerEditorTabView.cpp:135
tdme::tools::editor::tabviews::subviews::PrototypeDisplaySubView
Prototype display view.
Definition:
PrototypeDisplaySubView.h:25
tdme::tools::editor::tabviews::subviews::PrototypePhysicsSubView
Prototype physics view.
Definition:
PrototypePhysicsSubView.h:31
tdme::tools::editor::views::EditorView
Editor View.
Definition:
EditorView.h:30
fwd-tdme.h
fwd-tdme.h
tdme::tools::editor::misc::CameraRotationInputHandlerEventHandler
Camera Rotation Input Handler Event Handler.
Definition:
CameraRotationInputHandlerEventHandler.h:12
tdme::tools::editor::tabcontrollers::TabController
Tab controller, which connects UI with logic.
Definition:
TabController.h:23
tdme::tools::editor::tabviews::TabView::OutlinerState
Definition:
TabView.h:29
tdme::tools::editor::tabviews::TabView
Tab view interface.
Definition:
TabView.h:28
tdme.h
fwd-tdme.h
fwd-tdme.h
fwd-tdme.h
fwd-tdme.h
fwd-tdme.h
Generated by
1.9.3