xoreos  0.0.5
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 
29 
31 
32 namespace Common {
33  class UString;
34 }
35 
36 namespace Engines {
37 
38 namespace NWN {
39 
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:
65 };
66 
67 } // End of namespace NWN
68 
69 } // End of namespace Engines
70 
71 #endif // ENGINES_NWN_GUI_WIDGETS_MODELWIDGET_H
Definition: 2dafile.h:39
void setTag(const Common::UString &tag)
Set the widget&#39;s tag.
Definition: modelwidget.cpp:86
A class holding an UTF-8 string.
Definition: ustring.h:48
float getHeight() const
Get the widget&#39;s height.
Definition: modelwidget.cpp:82
void hide()
Hide the widget.
Definition: modelwidget.cpp:63
A GUI.
Definition: gui.h:43
Basic Aurora graphics types.
void show()
Show the widget.
Definition: modelwidget.cpp:53
Graphics::Aurora::Model * _model
Definition: modelwidget.h:64
A NWN widget with a text caption.
Graphics::Aurora::ModelNode * getNode(const Common::UString &nodeName) const
Definition: modelwidget.cpp:92
void setPosition(float x, float y, float z)
Set the widget&#39;s position.
Definition: modelwidget.cpp:71
A NWN model widget.
Definition: modelwidget.h:45
float getWidth() const
Get the widget&#39;s width.
Definition: modelwidget.cpp:78
A NWN widget with a text caption.
ModelWidget(::Engines::GUI &gui, const Common::UString &tag, const Common::UString &model)
Definition: modelwidget.cpp:39