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
00022
00023
00025
00026 #ifndef GLC_3DWIDGETMANAGER_H_
00027 #define GLC_3DWIDGETMANAGER_H_
00028
00029 #include "glc_3dwidgetmanagerhandle.h"
00030
00031 #include "../glc_config.h"
00032
00033 class QMouseEvent;
00034
00035 class GLC_LIB_EXPORT GLC_3DWidgetManager
00036 {
00037
00039
00041
00042 public:
00043
00045 GLC_3DWidgetManager(GLC_Viewport* pViewport);
00046
00048 GLC_3DWidgetManager(const GLC_3DWidgetManager& widgetManager);
00049
00051 ~GLC_3DWidgetManager();
00053
00055
00057
00058 public:
00060 inline GLC_BoundingBox boundingBox()
00061 {return m_pWidgetManagerHandle->boundingBox();}
00062
00064
00066
00068
00069 public:
00071 inline void add3DWidget(GLC_3DWidget* p3DWidget)
00072 {m_pWidgetManagerHandle->add3DWidget(p3DWidget);}
00073
00075
00076 inline void remove3DWidget(GLC_uint id)
00077 {m_pWidgetManagerHandle->remove3DWidget(id);}
00078
00080 inline void clear()
00081 {m_pWidgetManagerHandle->clear();}
00082
00084
00085
00087
00088 public:
00090 inline glc::WidgetEventFlag mouseDoubleClickEvent(QMouseEvent * pEvent)
00091 {return m_pWidgetManagerHandle->mouseDoubleClickEvent(pEvent);}
00092
00094 inline glc::WidgetEventFlag mouseMoveEvent(QMouseEvent * pEvent)
00095 {return m_pWidgetManagerHandle->mouseMoveEvent(pEvent);}
00096
00098 inline glc::WidgetEventFlag mousePressEvent(QMouseEvent * pEvent)
00099 {return m_pWidgetManagerHandle->mousePressEvent(pEvent);}
00100
00102 inline glc::WidgetEventFlag mouseReleaseEvent(QMouseEvent * pEvent)
00103 {return m_pWidgetManagerHandle->mouseReleaseEvent(pEvent);}
00104
00106
00108
00110
00111 public:
00113 inline void render()
00114 {m_pWidgetManagerHandle->render();}
00115
00117
00119
00121 private:
00123 GLC_3DWidgetManagerHandle* m_pWidgetManagerHandle;
00124
00125 };
00126
00127 #endif