#include <glc_3dwidgetmanager.h>
Public Member Functions | |
Constructor / Destructor | |
| GLC_3DWidgetManager (GLC_Viewport *pViewport) | |
| Construct the 3d widget manager associted to the given Viewport. | |
| GLC_3DWidgetManager (const GLC_3DWidgetManager &widgetManager) | |
| Construct a 3d widget manager from the given 3D widget manager. | |
| ~GLC_3DWidgetManager () | |
| Destructor. | |
Get Functions | |
| GLC_BoundingBox | boundingBox () |
| Return the boundingBox of 3dwidget. | |
Set Functions | |
| void | add3DWidget (GLC_3DWidget *p3DWidget) |
| Add the given 3D widget into this manager. | |
| void | remove3DWidget (GLC_uint id) |
| Remove the 3D widget with the given id from this manager. | |
| void | clear () |
| Clear all widget from this manager. | |
Interaction Functions | |
| glc::WidgetEventFlag | mouseDoubleClickEvent (QMouseEvent *pEvent) |
| Recieve Mouse double click event with the given instance id Return true if the event is catch. | |
| glc::WidgetEventFlag | mouseMoveEvent (QMouseEvent *pEvent) |
| Recieve Mouse move event with the given instance id Return true if the event is catch. | |
| glc::WidgetEventFlag | mousePressEvent (QMouseEvent *pEvent) |
| Recieve Mouse press event with the given instance id Return true if the event is catch. | |
| glc::WidgetEventFlag | mouseReleaseEvent (QMouseEvent *pEvent) |
| Recieve Mouse release event with the given instance id Return true if the event is catch. | |
OpenGL Functions | |
| void | render () |
| Render the 3DWidget of this manager. | |
Private Attributes | |
| GLC_3DWidgetManagerHandle * | m_pWidgetManagerHandle |
| The widget manager handle. | |
Definition at line 35 of file glc_3dwidgetmanager.h.
| GLC_3DWidgetManager::GLC_3DWidgetManager | ( | GLC_Viewport * | pViewport | ) |
Construct the 3d widget manager associted to the given Viewport.
Definition at line 28 of file glc_3dwidgetmanager.cpp.
| GLC_3DWidgetManager::GLC_3DWidgetManager | ( | const GLC_3DWidgetManager & | widgetManager | ) |
Construct a 3d widget manager from the given 3D widget manager.
Definition at line 34 of file glc_3dwidgetmanager.cpp.
References GLC_3DWidgetManagerHandle::increment(), and m_pWidgetManagerHandle.
| GLC_3DWidgetManager::~GLC_3DWidgetManager | ( | ) |
Destructor.
Definition at line 40 of file glc_3dwidgetmanager.cpp.
References GLC_3DWidgetManagerHandle::decrement(), GLC_3DWidgetManagerHandle::isOrphan(), and m_pWidgetManagerHandle.
| void GLC_3DWidgetManager::add3DWidget | ( | GLC_3DWidget * | p3DWidget | ) | [inline] |
Add the given 3D widget into this manager.
Definition at line 71 of file glc_3dwidgetmanager.h.
| GLC_BoundingBox GLC_3DWidgetManager::boundingBox | ( | void | ) | [inline] |
Return the boundingBox of 3dwidget.
Definition at line 60 of file glc_3dwidgetmanager.h.
| void GLC_3DWidgetManager::clear | ( | void | ) | [inline] |
Clear all widget from this manager.
Definition at line 80 of file glc_3dwidgetmanager.h.
| glc::WidgetEventFlag GLC_3DWidgetManager::mouseDoubleClickEvent | ( | QMouseEvent * | pEvent | ) | [inline] |
Recieve Mouse double click event with the given instance id Return true if the event is catch.
Definition at line 90 of file glc_3dwidgetmanager.h.
| glc::WidgetEventFlag GLC_3DWidgetManager::mouseMoveEvent | ( | QMouseEvent * | pEvent | ) | [inline] |
Recieve Mouse move event with the given instance id Return true if the event is catch.
Definition at line 94 of file glc_3dwidgetmanager.h.
| glc::WidgetEventFlag GLC_3DWidgetManager::mousePressEvent | ( | QMouseEvent * | pEvent | ) | [inline] |
Recieve Mouse press event with the given instance id Return true if the event is catch.
Definition at line 98 of file glc_3dwidgetmanager.h.
| glc::WidgetEventFlag GLC_3DWidgetManager::mouseReleaseEvent | ( | QMouseEvent * | pEvent | ) | [inline] |
Recieve Mouse release event with the given instance id Return true if the event is catch.
Definition at line 102 of file glc_3dwidgetmanager.h.
| void GLC_3DWidgetManager::remove3DWidget | ( | GLC_uint | id | ) | [inline] |
Remove the 3D widget with the given id from this manager.
Associated 3D view instance are removed
Definition at line 76 of file glc_3dwidgetmanager.h.
| void GLC_3DWidgetManager::render | ( | ) | [inline] |
Render the 3DWidget of this manager.
Definition at line 113 of file glc_3dwidgetmanager.h.
The widget manager handle.
Definition at line 123 of file glc_3dwidgetmanager.h.
Referenced by GLC_3DWidgetManager(), and ~GLC_3DWidgetManager().