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  http://glc-lib.sourceforge.net
00006 
00007  GLC-lib is free software; you can redistribute it and/or modify
00008  it under the terms of the GNU Lesser General Public License as published by
00009  the Free Software Foundation; either version 3 of the License, or
00010  (at your option) any later version.
00011 
00012  GLC-lib is distributed in the hope that it will be useful,
00013  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  GNU Lesser General Public License for more details.
00016 
00017  You should have received a copy of the GNU Lesser General Public License
00018  along with GLC-lib; if not, write to the Free Software
00019  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
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 // Private Member
00131 private:
00133         GLC_3DWidgetManagerHandle* m_pWidgetManagerHandle;
00134 
00135 };
00136 
00137 #endif /* GLC_3DWIDGETMANAGER_H_ */

SourceForge.net Logo

©2005-2011 Laurent Ribon