vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Layout.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "GUI_item.h"
4 
5 using namespace vrecko;
6 
7 
8 namespace APGUI
9 {
10 
11  typedef std::map<unsigned long, GUI_Item *> GuiItemMapType;
12 
13 
15 
25 class Layout : public osg::Referenced
26 {
27 public:
28 
29  Layout();
30  ~Layout();
31 
33  void addItem(GUI_Item *);
34 
36  void removeItem(GUI_Item *);
37 
39  string getName() { return _name; }
40 
42  void show();
43 
45  void hide();
46 
48 
55  bool loadfromXMLnode(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *pParametersNode);
56 
57  bool initialize(string name, std::vector<string> *items);
58 
60 
67  void actualize(GuiItemMapType *map);
68 
69 
70 protected:
71 
73  std::string _name;
74 
76  std::vector<string> _itemsNames;
77 
79  std::vector<GUI_Item *> _items;
80 
81 
82 
83 };
84 
85 }