vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Menu.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "GUI_item.h"
4 
5 # ifdef GUI_LIBRARY
6 # define GUI_EXPORT __declspec(dllexport)
7 # else
8 # define GUI_EXPORT __declspec(dllimport)
9 #endif
10 
11 namespace APGUI
12 {
13 
14 
16 
24 class GUI_EXPORT Menu : public GUI_Item
25 {
26 public:
27 
28  Menu();
29  ~Menu();
30 
39  bool initialize(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *parametersNode);
40 
53  bool initialize( string name, string receiver, int sensor, string label = "", string tooltip = "", bool pointable = true );
54 
55  void pointed(bool pointed) { }
56 
58  bool processAction( const int sensorNumber, const GUI_ACTION action, const bool pressed);
59 
60 
61  void setState(GUI_ITEM_STATE newState);
62 
63 protected:
64 
67 
69  bool _opened;
70 
73 
75  bool postInitialize( string name, string receiver, int sensorNumber, string label, string tooltip );
76 
77  //addInput("HidingMenu", BaseClass::BOOL);
78  DECLARE_INPUT(HidingMenu, MessageBool);
79 
80  //addOutput("CreateMenuStructure", BaseClass::INT);
81  DECLARE_OUTPUT(CreateMenuStructure, MessageInt);
82 
83  //addOutput("ButtonPress", BaseClass::BOOL);
84  DECLARE_OUTPUT(ButtonPress, MessageBool);
85 
86  //addRequestOutput("ActivePointerID", BaseClass::ULONG);
87  DECLARE_REQUEST_OUTPUT(ActivePointerID, MessageInt, MessageInt);
88 };
89 
90 }