xoreos
0.0.5
src
engines
nwn
gui
widgets
modelwidget.h
Go to the documentation of this file.
1
/* xoreos - A reimplementation of BioWare's Aurora engine
2
*
3
* xoreos is the legal property of its developers, whose names
4
* can be found in the AUTHORS file distributed with this source
5
* distribution.
6
*
7
* xoreos is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 3
10
* of the License, or (at your option) any later version.
11
*
12
* xoreos is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with xoreos. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
25
#ifndef ENGINES_NWN_GUI_WIDGETS_MODELWIDGET_H
26
#define ENGINES_NWN_GUI_WIDGETS_MODELWIDGET_H
27
28
#include "
src/graphics/aurora/types.h
"
29
30
#include "
src/engines/nwn/gui/widgets/nwnwidgetwithcaption.h
"
31
32
namespace
Common
{
33
class
UString;
34
}
35
36
namespace
Engines
{
37
38
namespace
NWN {
39
45
class
ModelWidget
:
public
NWNWidgetWithCaption
{
46
public
:
47
ModelWidget
(::
Engines::GUI
&gui,
const
Common::UString
&tag,
48
const
Common::UString
&model);
49
~ModelWidget
();
50
51
void
show
();
52
void
hide
();
53
54
void
setPosition
(
float
x,
float
y,
float
z);
55
56
float
getWidth
()
const
;
57
float
getHeight
()
const
;
58
59
void
setTag
(
const
Common::UString
&tag);
60
61
Graphics::Aurora::ModelNode
*
getNode
(
const
Common::UString
&nodeName)
const
;
62
63
protected
:
64
Graphics::Aurora::Model
*
_model
;
65
};
66
67
}
// End of namespace NWN
68
69
}
// End of namespace Engines
70
71
#endif // ENGINES_NWN_GUI_WIDGETS_MODELWIDGET_H
Graphics::Aurora::Model
Definition:
model.h:63
Common
Definition:
2dafile.h:39
Engines::NWN::ModelWidget::setTag
void setTag(const Common::UString &tag)
Set the widget's tag.
Definition:
modelwidget.cpp:86
Common::UString
A class holding an UTF-8 string.
Definition:
ustring.h:48
Engines::NWN::ModelWidget::getHeight
float getHeight() const
Get the widget's height.
Definition:
modelwidget.cpp:82
Engines::NWN::ModelWidget::hide
void hide()
Hide the widget.
Definition:
modelwidget.cpp:63
Graphics::Aurora::ModelNode
Definition:
modelnode.h:65
Engines::GUI
A GUI.
Definition:
gui.h:43
types.h
Basic Aurora graphics types.
Engines::NWN::ModelWidget::show
void show()
Show the widget.
Definition:
modelwidget.cpp:53
Engines
Definition:
console.cpp:69
Engines::NWN::ModelWidget::_model
Graphics::Aurora::Model * _model
Definition:
modelwidget.h:64
Engines::NWN::ModelWidget::~ModelWidget
~ModelWidget()
Definition:
modelwidget.cpp:49
nwnwidgetwithcaption.h
A NWN widget with a text caption.
Engines::NWN::ModelWidget::getNode
Graphics::Aurora::ModelNode * getNode(const Common::UString &nodeName) const
Definition:
modelwidget.cpp:92
Engines::NWN::ModelWidget::setPosition
void setPosition(float x, float y, float z)
Set the widget's position.
Definition:
modelwidget.cpp:71
Engines::NWN::ModelWidget
A NWN model widget.
Definition:
modelwidget.h:45
Engines::NWN::ModelWidget::getWidth
float getWidth() const
Get the widget's width.
Definition:
modelwidget.cpp:78
Engines::NWN::NWNWidgetWithCaption
A NWN widget with a text caption.
Definition:
nwnwidgetwithcaption.h:47
Engines::NWN::ModelWidget::ModelWidget
ModelWidget(::Engines::GUI &gui, const Common::UString &tag, const Common::UString &model)
Definition:
modelwidget.cpp:39
Generated on Sun Nov 18 2018 15:13:40 for xoreos by
1.8.14