glc_3dwidgetmanager.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00023
00024 #ifndef GLC_3DWIDGETMANAGER_H_
00025 #define GLC_3DWIDGETMANAGER_H_
00026
00027 #include "glc_3dwidgetmanagerhandle.h"
00028
00029 #include "../glc_config.h"
00030
00031 class QMouseEvent;
00032
00033 class GLC_LIB_EXPORT GLC_3DWidgetManager
00034 {
00035
00037
00039
00040 public:
00041
00043 GLC_3DWidgetManager(GLC_Viewport* pViewport);
00044
00046 GLC_3DWidgetManager(const GLC_3DWidgetManager& widgetManager);
00047
00049 ~GLC_3DWidgetManager();
00051
00053
00055
00056 public:
00058 inline GLC_BoundingBox boundingBox()
00059 {return m_pWidgetManagerHandle->boundingBox();}
00060
00062 inline bool contains3DWidget(GLC_uint id) const
00063 {return m_pWidgetManagerHandle->contains3DWidget(id);}
00064
00066 inline GLC_3DWidget* widget(GLC_uint id) const
00067 {return m_pWidgetManagerHandle->widget(id);}
00068
00070
00072
00074
00075 public:
00077 inline void add3DWidget(GLC_3DWidget* p3DWidget)
00078 {m_pWidgetManagerHandle->add3DWidget(p3DWidget);}
00079
00081
00082 inline void remove3DWidget(GLC_uint id)
00083 {m_pWidgetManagerHandle->remove3DWidget(id);}
00084
00086 inline void clear()
00087 {m_pWidgetManagerHandle->clear();}
00088
00090 inline void setWidgetVisible(GLC_uint id, bool visible)
00091 {m_pWidgetManagerHandle->setWidgetVisible(id, visible);}
00092
00094
00095
00097
00098 public:
00100 inline glc::WidgetEventFlag mouseDoubleClickEvent(QMouseEvent * pEvent)
00101 {return m_pWidgetManagerHandle->mouseDoubleClickEvent(pEvent);}
00102
00104 inline glc::WidgetEventFlag mouseMoveEvent(QMouseEvent * pEvent)
00105 {return m_pWidgetManagerHandle->mouseMoveEvent(pEvent);}
00106
00108 inline glc::WidgetEventFlag mousePressEvent(QMouseEvent * pEvent)
00109 {return m_pWidgetManagerHandle->mousePressEvent(pEvent);}
00110
00112 inline glc::WidgetEventFlag mouseReleaseEvent(QMouseEvent * pEvent)
00113 {return m_pWidgetManagerHandle->mouseReleaseEvent(pEvent);}
00114
00116
00118
00120
00121 public:
00123 inline void render()
00124 {m_pWidgetManagerHandle->render();}
00125
00127
00129
00131 private:
00133 GLC_3DWidgetManagerHandle* m_pWidgetManagerHandle;
00134
00135 };
00136
00137 #endif