glc_3dwidgetmanager.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 
00003  This file is part of the GLC-lib library.
00004  Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
00005  Version 2.0.0 Beta 1, packaged on April 2010.
00006 
00007  http://glc-lib.sourceforge.net
00008 
00009  GLC-lib is free software; you can redistribute it and/or modify
00010  it under the terms of the GNU General Public License as published by
00011  the Free Software Foundation; either version 2 of the License, or
00012  (at your option) any later version.
00013 
00014  GLC-lib is distributed in the hope that it will be useful,
00015  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  GNU General Public License for more details.
00018 
00019  You should have received a copy of the GNU General Public License
00020  along with GLC-lib; if not, write to the Free Software
00021  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
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 // Private Member
00121 private:
00123         GLC_3DWidgetManagerHandle* m_pWidgetManagerHandle;
00124 
00125 };
00126 
00127 #endif /* GLC_3DWIDGETMANAGER_H_ */

SourceForge.net Logo

©2005 Laurent Ribon