#include <meshview.h>
◆ MeshView()
| MeshView::MeshView |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
◆ ~MeshView()
◆ cleanUp
| void MeshView::cleanUp |
( |
| ) |
|
|
slot |
◆ doneContextCurrent
| void MeshView::doneContextCurrent |
( |
| ) |
|
|
slot |
◆ getCurrentRenderer()
This method should ONLY be called on the OpenGL thread. It returns the appropriate renderer to be used, considering the value of mNextRenderer.
This function does not lock the mRendererMutex.
- Returns
- The Renderer that should be used.
◆ initializeGL()
| void MeshView::initializeGL |
( |
| ) |
|
|
overrideprotected |
◆ makeContextCurrent
| void MeshView::makeContextCurrent |
( |
| ) |
|
|
slot |
◆ mouseMoveEvent()
| void MeshView::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mousePressEvent()
| void MeshView::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
| void MeshView::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ paintGL()
| void MeshView::paintGL |
( |
| ) |
|
|
overrideprotected |
◆ resizeGL()
| void MeshView::resizeGL |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
|
overrideprotected |
◆ scheduleRepaint
| void MeshView::scheduleRepaint |
( |
| ) |
|
|
slot |
Schedules a paintGL() call on the OpenGL thread.
◆ setRenderer()
Makes the MeshView use a new Renderer.
- Parameters
-
| renderer | The Renderer that will be used to draw to the screen. |
◆ wheelEvent()
| void MeshView::wheelEvent |
( |
QWheelEvent * |
event | ) |
|
|
overrideprotected |
◆ MeshViewContainer
◆ mCamera
◆ mContext
| QOpenGLContext* MeshView::mContext |
|
protected |
The context this MeshView was initialized with. This variable is only stored to disconnect its aboutToBeDestroyed() signal when the MeshView is itself destroyed. This pointer is not owned by the MeshView, but should still be valid in ~MeshView() (although this cannot be guaranteed—darn you, Qt's lack of shared pointers!).
◆ mNextRenderer
nullptr if the Renderer does not need to change, else equal to the new renderer.
◆ mProjectionMatrix
| QMatrix4x4 MeshView::mProjectionMatrix |
|
protected |
◆ mRenderer
The Renderer object that will be used to draw to the screen.
◆ mRendererMutex
| QMutex MeshView::mRendererMutex |
|
protected |
Mutex for updating the mRenderer variable. This ensures that the mRenderer is not being used when it is changed.
◆ mTools
The documentation for this class was generated from the following files: