GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
glc_3dwidgetmanager.h
Go to the documentation of this file.
1 /****************************************************************************
2 
3  This file is part of the GLC-lib library.
4  Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
5  http://glc-lib.sourceforge.net
6 
7  GLC-lib is free software; you can redistribute it and/or modify
8  it under the terms of the GNU Lesser General Public License as published by
9  the Free Software Foundation; either version 3 of the License, or
10  (at your option) any later version.
11 
12  GLC-lib 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 Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public License
18  along with GLC-lib; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 
21  *****************************************************************************/
23 
24 #ifndef GLC_3DWIDGETMANAGER_H_
25 #define GLC_3DWIDGETMANAGER_H_
26 
28 
29 #include "../glc_config.h"
30 
31 class QMouseEvent;
32 
34 {
35 
37 
39 
40 public:
41 
44 
46  GLC_3DWidgetManager(const GLC_3DWidgetManager& widgetManager);
47 
51 
53 
55 
56 public:
58  inline GLC_BoundingBox boundingBox()
59  {return m_pWidgetManagerHandle->boundingBox();}
60 
62  inline bool contains3DWidget(GLC_uint id) const
63  {return m_pWidgetManagerHandle->contains3DWidget(id);}
64 
66  inline GLC_3DWidget* widget(GLC_uint id) const
67  {return m_pWidgetManagerHandle->widget(id);}
68 
70  inline bool isEmpty() const
71  {return m_pWidgetManagerHandle->isEmpty();}
72 
74 
76 
78 
79 public:
81  inline void add3DWidget(GLC_3DWidget* p3DWidget)
82  {m_pWidgetManagerHandle->add3DWidget(p3DWidget);}
83 
85 
86  inline void remove3DWidget(GLC_uint id)
87  {m_pWidgetManagerHandle->remove3DWidget(id);}
88 
90  inline void clear()
91  {m_pWidgetManagerHandle->clear();}
92 
94  inline void setWidgetVisible(GLC_uint id, bool visible)
95  {m_pWidgetManagerHandle->setWidgetVisible(id, visible);}
96 
98 
99 
101 
102 public:
104  inline glc::WidgetEventFlag mouseDoubleClickEvent(QMouseEvent * pEvent)
105  {return m_pWidgetManagerHandle->mouseDoubleClickEvent(pEvent);}
106 
108  inline glc::WidgetEventFlag mouseMoveEvent(QMouseEvent * pEvent)
109  {return m_pWidgetManagerHandle->mouseMoveEvent(pEvent);}
110 
112  inline glc::WidgetEventFlag mousePressEvent(QMouseEvent * pEvent)
113  {return m_pWidgetManagerHandle->mousePressEvent(pEvent);}
114 
116  inline glc::WidgetEventFlag mouseReleaseEvent(QMouseEvent * pEvent)
117  {return m_pWidgetManagerHandle->mouseReleaseEvent(pEvent);}
118 
120 
122 
124 
125 public:
127  inline void render()
128  {m_pWidgetManagerHandle->render();}
129 
131 
133 // Private Member
135 private:
138 
139 };
140 
141 #endif /* GLC_3DWIDGETMANAGER_H_ */

©2005-2013 Laurent Ribon