TDME2
1.9.121
src
tdme
tools
editor
tabviews
EnvMapEditorTabView.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/fwd-tdme.h
>
9
#include <
tdme/math/Vector3.h
>
10
#include <
tdme/tools/editor/misc/PopUps.h
>
11
#include <
tdme/tools/editor/tabcontrollers/fwd-tdme.h
>
12
#include <
tdme/tools/editor/tabcontrollers/EnvMapEditorTabController.h
>
13
#include <
tdme/tools/editor/tabviews/fwd-tdme.h
>
14
#include <
tdme/tools/editor/tabviews/TabView.h
>
15
#include <
tdme/tools/editor/views/fwd-tdme.h
>
16
17
using
std::string;
18
19
using
tdme::engine::prototype::Prototype
;
20
using
tdme::engine::scene::Scene
;
21
using
tdme::engine::Engine
;
22
using
tdme::engine::FrameBuffer
;
23
using
tdme::math::Vector3
;
24
using
tdme::tools::editor::misc::PopUps
;
25
using
tdme::tools::editor::tabcontrollers::EnvMapEditorTabController
;
26
using
tdme::tools::editor::tabcontrollers::TabController
;
27
using
tdme::tools::editor::tabviews::TabView
;
28
using
tdme::tools::editor::views::EditorView
;
29
30
/**
31
* Environmap editor tab view
32
* @author Andreas Drewke
33
* @version $Id$
34
*/
35
class
tdme::tools::editor::tabviews::EnvMapEditorTabView
final
36
:
public
TabView
37
{
38
protected
:
39
Engine
*
engine
{
nullptr
};
40
41
private
:
42
EditorView
*
editorView
{
nullptr
};
43
string
tabId
;
44
PopUps
*
popUps
{
nullptr
};
45
EnvMapEditorTabController
*
envMapEditorTabController
{
nullptr
};
46
TabView::OutlinerState
outlinerState
;
47
Scene
*
scene
{
nullptr
};
48
float
skyDomeTranslation
{ 0.0f };
49
Prototype
*
skySpherePrototype
{
nullptr
};
50
Prototype
*
skyDomePrototype
{
nullptr
};
51
Prototype
*
skyPanoramaPrototype
{
nullptr
};
52
Prototype
*
prototype
{
nullptr
};
53
54
public
:
55
/**
56
* Public constructor
57
* @param editorView editor view
58
* @param tabId tab id
59
* @param scene scene
60
* @param prototype prototype
61
*/
62
EnvMapEditorTabView
(
EditorView
*
editorView
,
const
string
&
tabId
,
Scene
*
scene
,
Prototype
*
prototype
);
63
64
/**
65
* Destructor
66
*/
67
~EnvMapEditorTabView
();
68
69
/**
70
* @return prototype
71
*/
72
inline
Prototype
*
getPrototype
() {
73
return
prototype
;
74
}
75
76
/**
77
* @return editor view
78
*/
79
inline
EditorView
*
getEditorView
() {
80
return
editorView
;
81
}
82
83
/**
84
* @return associated tab controller
85
*/
86
inline
TabController
*
getTabController
()
override
{
87
return
envMapEditorTabController
;
88
}
89
90
/**
91
* @return pop up views
92
*/
93
inline
PopUps
*
getPopUps
() {
94
return
popUps
;
95
}
96
97
// overridden methods
98
void
handleInputEvents
()
override
;
99
void
display
()
override
;
100
inline
const
string
&
getTabId
()
override
{
101
return
tabId
;
102
}
103
void
initialize
()
override
;
104
void
dispose
()
override
;
105
Engine
*
getEngine
()
override
;
106
void
activate
()
override
;
107
void
deactivate
()
override
;
108
void
reloadOutliner
()
override
;
109
void
updateRendering
()
override
;
110
inline
bool
hasFixedSize
()
override
{
return
false
; };
111
112
/**
113
* Initialize sky
114
*/
115
void
initSky
();
116
117
/**
118
* Update sky
119
*/
120
void
updateSky
();
121
122
/**
123
* @return environment map translation
124
*/
125
const
Vector3
&
getEnvironmentMapTranslation
();
126
127
/**
128
* Set environment map translation
129
* @param translation translation
130
*/
131
void
setEnvironmentMapTranslation
(
const
Vector3
& translation);
132
133
/**
134
* @return environment map render passes
135
*/
136
int32_t
getEnvironmentMapRenderPassMask
();
137
138
/**
139
* Set environment map render passes
140
* @param renderPassMask render pass mask
141
*/
142
void
setEnvironmentMapRenderPassMask
(int32_t renderPassMask);
143
144
/**
145
* @return environment map frequency
146
*/
147
int64_t
getEnvironmentMapFrequency
();
148
149
/**
150
* Set environment map frequency
151
* @param frequency frequency
152
*/
153
void
setEnvironmentMapFrequency
(int64_t frequency);
154
155
/**
156
* Saving prototype as tenvmap prototype
157
* @param pathName path name
158
* @param fileName file name
159
*/
160
void
saveFile
(
const
string
& pathName,
const
string
& fileName);
161
162
};
EnvMapEditorTabController.h
PopUps.h
TabView.h
Vector3.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::PopUps
Pop ups controller accessor class.
Definition:
PopUps.h:19
tdme::tools::editor::tabcontrollers::EnvMapEditorTabController
Environ map editor screen controller.
Definition:
EnvMapEditorTabController.h:38
tdme::tools::editor::tabviews::EnvMapEditorTabView
Environmap editor tab view.
Definition:
EnvMapEditorTabView.h:37
tdme::tools::editor::tabviews::EnvMapEditorTabView::engine
Engine * engine
Definition:
EnvMapEditorTabView.h:39
tdme::tools::editor::tabviews::EnvMapEditorTabView::saveFile
void saveFile(const string &pathName, const string &fileName)
Saving prototype as tenvmap prototype.
Definition:
EnvMapEditorTabView.cpp:243
tdme::tools::editor::tabviews::EnvMapEditorTabView::~EnvMapEditorTabView
~EnvMapEditorTabView()
Destructor.
Definition:
EnvMapEditorTabView.cpp:60
tdme::tools::editor::tabviews::EnvMapEditorTabView::dispose
void dispose() override
Disposes the view.
Definition:
EnvMapEditorTabView.cpp:112
tdme::tools::editor::tabviews::EnvMapEditorTabView::updateSky
void updateSky()
Update sky.
Definition:
EnvMapEditorTabView.cpp:194
tdme::tools::editor::tabviews::EnvMapEditorTabView::hasFixedSize
bool hasFixedSize() override
If this viewport framebuffer has a fixed size.
Definition:
EnvMapEditorTabView.h:110
tdme::tools::editor::tabviews::EnvMapEditorTabView::display
void display() override
Renders the view.
Definition:
EnvMapEditorTabView.cpp:68
tdme::tools::editor::tabviews::EnvMapEditorTabView::reloadOutliner
void reloadOutliner() override
Reload outliner.
Definition:
EnvMapEditorTabView.cpp:136
tdme::tools::editor::tabviews::EnvMapEditorTabView::EnvMapEditorTabView
EnvMapEditorTabView(EditorView *editorView, const string &tabId, Scene *scene, Prototype *prototype)
Public constructor.
Definition:
EnvMapEditorTabView.cpp:49
tdme::tools::editor::tabviews::EnvMapEditorTabView::getTabController
TabController * getTabController() override
Definition:
EnvMapEditorTabView.h:86
tdme::tools::editor::tabviews::EnvMapEditorTabView::tabId
string tabId
Definition:
EnvMapEditorTabView.h:43
tdme::tools::editor::tabviews::EnvMapEditorTabView::initialize
void initialize() override
Initiates the view.
Definition:
EnvMapEditorTabView.cpp:75
tdme::tools::editor::tabviews::EnvMapEditorTabView::deactivate
void deactivate() override
Deactivate.
Definition:
EnvMapEditorTabView.cpp:132
tdme::tools::editor::tabviews::EnvMapEditorTabView::initSky
void initSky()
Initialize sky.
Definition:
EnvMapEditorTabView.cpp:142
tdme::tools::editor::tabviews::EnvMapEditorTabView::getEngine
Engine * getEngine() override
Definition:
EnvMapEditorTabView.cpp:121
tdme::tools::editor::tabviews::EnvMapEditorTabView::handleInputEvents
void handleInputEvents() override
Handle input events that have not yet been processed.
Definition:
EnvMapEditorTabView.cpp:64
tdme::tools::editor::tabviews::EnvMapEditorTabView::skyDomeTranslation
float skyDomeTranslation
Definition:
EnvMapEditorTabView.h:48
tdme::tools::editor::tabviews::EnvMapEditorTabView::setEnvironmentMapTranslation
void setEnvironmentMapTranslation(const Vector3 &translation)
Set environment map translation.
Definition:
EnvMapEditorTabView.cpp:217
tdme::tools::editor::tabviews::EnvMapEditorTabView::outlinerState
TabView::OutlinerState outlinerState
Definition:
EnvMapEditorTabView.h:46
tdme::tools::editor::tabviews::EnvMapEditorTabView::scene
Scene * scene
Definition:
EnvMapEditorTabView.h:47
tdme::tools::editor::tabviews::EnvMapEditorTabView::getPopUps
PopUps * getPopUps()
Definition:
EnvMapEditorTabView.h:93
tdme::tools::editor::tabviews::EnvMapEditorTabView::activate
void activate() override
Activate.
Definition:
EnvMapEditorTabView.cpp:125
tdme::tools::editor::tabviews::EnvMapEditorTabView::getEnvironmentMapRenderPassMask
int32_t getEnvironmentMapRenderPassMask()
Definition:
EnvMapEditorTabView.cpp:223
tdme::tools::editor::tabviews::EnvMapEditorTabView::skyDomePrototype
Prototype * skyDomePrototype
Definition:
EnvMapEditorTabView.h:50
tdme::tools::editor::tabviews::EnvMapEditorTabView::getEnvironmentMapTranslation
const Vector3 & getEnvironmentMapTranslation()
Definition:
EnvMapEditorTabView.cpp:212
tdme::tools::editor::tabviews::EnvMapEditorTabView::skyPanoramaPrototype
Prototype * skyPanoramaPrototype
Definition:
EnvMapEditorTabView.h:51
tdme::tools::editor::tabviews::EnvMapEditorTabView::setEnvironmentMapRenderPassMask
void setEnvironmentMapRenderPassMask(int32_t renderPassMask)
Set environment map render passes.
Definition:
EnvMapEditorTabView.cpp:228
tdme::tools::editor::tabviews::EnvMapEditorTabView::getEnvironmentMapFrequency
int64_t getEnvironmentMapFrequency()
Definition:
EnvMapEditorTabView.cpp:233
tdme::tools::editor::tabviews::EnvMapEditorTabView::getTabId
const string & getTabId() override
Definition:
EnvMapEditorTabView.h:100
tdme::tools::editor::tabviews::EnvMapEditorTabView::popUps
PopUps * popUps
Definition:
EnvMapEditorTabView.h:44
tdme::tools::editor::tabviews::EnvMapEditorTabView::getPrototype
Prototype * getPrototype()
Definition:
EnvMapEditorTabView.h:72
tdme::tools::editor::tabviews::EnvMapEditorTabView::prototype
Prototype * prototype
Definition:
EnvMapEditorTabView.h:52
tdme::tools::editor::tabviews::EnvMapEditorTabView::updateRendering
void updateRendering() override
Update rendering.
Definition:
EnvMapEditorTabView.cpp:118
tdme::tools::editor::tabviews::EnvMapEditorTabView::setEnvironmentMapFrequency
void setEnvironmentMapFrequency(int64_t frequency)
Set environment map frequency.
Definition:
EnvMapEditorTabView.cpp:238
tdme::tools::editor::tabviews::EnvMapEditorTabView::skySpherePrototype
Prototype * skySpherePrototype
Definition:
EnvMapEditorTabView.h:49
tdme::tools::editor::tabviews::EnvMapEditorTabView::editorView
EditorView * editorView
Definition:
EnvMapEditorTabView.h:42
tdme::tools::editor::tabviews::EnvMapEditorTabView::envMapEditorTabController
EnvMapEditorTabController * envMapEditorTabController
Definition:
EnvMapEditorTabView.h:45
tdme::tools::editor::tabviews::EnvMapEditorTabView::getEditorView
EditorView * getEditorView()
Definition:
EnvMapEditorTabView.h:79
tdme::tools::editor::views::EditorView
Editor View.
Definition:
EditorView.h:30
fwd-tdme.h
fwd-tdme.h
fwd-tdme.h
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
Generated by
1.9.3