|
MNE-CPP
0.1.9
A Framework for Electrophysiology
|
Visualizes 3D data. More...
#include <view3D.h>
Public Types | |
| typedef QSharedPointer< View3D > | SPtr |
| typedef QSharedPointer< const View3D > | ConstSPtr |
Signals | |
| void | pickEventOccured (Qt3DRender::QPickEvent *qPickEvent) |
Public Member Functions | |
| View3D () | |
| ~View3D () | |
| void | setModel (QSharedPointer< DISP3DLIB::Data3DTreeModel > pModel) |
| void | setSceneColor (const QColor &colSceneColor) |
| void | startStopCameraRotation (bool bChecked) |
| void | setCameraRotation (float fAngle) |
| Qt3DCore::QTransform | getCameraTransform () |
| void | toggleCoordAxis (bool bChecked) |
| void | showFullScreen (bool bChecked) |
| void | setLightColor (const QColor &color) |
| void | setLightIntensity (double value) |
| void | takeScreenshot () |
| void | activatePicker (const bool bActivatePicker) |
| void | showSingleView () |
| void | showMultiView () |
Protected Types | |
| enum | MultiViewOrientation { Horizontal, Veritical } |
Protected Member Functions | |
| void | saveScreenshot () |
| void | initLight () |
| void | initObjectPicking () |
| void | keyPressEvent (QKeyEvent *e) override |
| void | createCoordSystem (Qt3DCore::QEntity *parent) |
| void | handlePickerPress (Qt3DRender::QPickEvent *qPickEvent) |
| void | initSingleCam () |
| void | initMultiCams () |
| void | initSingleView () |
| void | initMultiView () |
| void | updateMultiViewAspectRatio () |
| void | setMultiViewVertical () |
| void | setMultiViewHorizontal () |
| void | resizeEvent (QResizeEvent *) override |
Protected Attributes | |
| QPointer< Qt3DCore::QEntity > | m_pRootEntity |
| QPointer< Qt3DCore::QEntity > | m_p3DObjectsEntity |
| QPointer< Qt3DCore::QEntity > | m_pLightEntity |
| QSharedPointer< Qt3DCore::QEntity > | m_pCoordSysEntity |
| QPointer< CustomFrameGraph > | m_pFrameGraph |
| QPointer< Qt3DRender::QRenderSurfaceSelector > | m_pMultiFrame |
| QPointer< Qt3DRender::QCamera > | m_pCamera |
| QPointer< Qt3DRender::QCamera > | m_pMultiCam1 |
| QPointer< Qt3DRender::QCamera > | m_pMultiCam2 |
| QPointer< Qt3DRender::QCamera > | m_pMultiCam3 |
| QPointer< Qt3DRender::QViewport > | m_pMultiViewport1 |
| QPointer< Qt3DRender::QViewport > | m_pMultiViewport2 |
| QPointer< Qt3DRender::QViewport > | m_pMultiViewport3 |
| QPointer< Qt3DRender::QRenderCaptureReply > | m_pScreenCaptureReply |
| QPointer< Qt3DRender::QObjectPicker > | m_pPicker |
| QPointer< OrbitalCameraController > | m_pCamController |
| QPointer< QPropertyAnimation > | m_pCameraAnimation |
| QList< QPointer< Qt3DRender::QPointLight > > | m_lLightSources |
| MultiViewOrientation | m_MultiViewOrientation |
Visualizes 3D data.
Visualizes 3D/2D objects in a 3D space such as brain, DTI, MRI, sensor, helmet data.

| typedef QSharedPointer<const View3D> DISP3DLIB::View3D::ConstSPtr |
| typedef QSharedPointer<View3D> DISP3DLIB::View3D::SPtr |
|
explicit |
Default constructor
Definition at line 93 of file view3D.cpp.
| View3D::~View3D | ( | ) |
Default destructor
Definition at line 132 of file view3D.cpp.
| void View3D::activatePicker | ( | const bool | bActivatePicker | ) |
Initilize the object picking.
| [in] | bActivatePicker | Wheater to activate the object picker. |
Definition at line 165 of file view3D.cpp.
|
protected |
Creates a coordiante system (x/Green, y/Red, z/Blue).
| [in] | parent | The parent identity which will "hold" the coordinate system. |
Definition at line 326 of file view3D.cpp.
| Qt3DCore::QTransform DISP3DLIB::View3D::getCameraTransform | ( | ) |
Returns the camera's position via transform.
|
protected |
Handle Picking events.
| [in] | qPickEvent | The picking event that occured. |
Definition at line 172 of file view3D.cpp.
|
protected |
Init the light for the 3D view
Definition at line 182 of file view3D.cpp.
|
protected |
Initialize multi-view camera parameters.
Definition at line 432 of file view3D.cpp.
|
protected |
Initilize multiview viewports.
Definition at line 467 of file view3D.cpp.
|
protected |
Initilize the object picking.
Definition at line 147 of file view3D.cpp.
|
protected |
Initilaize single view camera parameters.
Definition at line 417 of file view3D.cpp.
|
protected |
Initialize single view viewport/framegraph.
Definition at line 456 of file view3D.cpp.
|
overrideprotected |
Window function
Definition at line 315 of file view3D.cpp.
|
overrideprotected |
Handles resize event for non-default multiview cameras.
Definition at line 502 of file view3D.cpp.
| void View3D::setCameraRotation | ( | float | fAngle | ) |
Rotate camera arround given angle.
| [in] | iAngle | The to rotate the camera. |
Definition at line 377 of file view3D.cpp.
| void View3D::setLightColor | ( | const QColor & | color | ) |
Change light color.
Definition at line 255 of file view3D.cpp.
| void View3D::setLightIntensity | ( | double | value | ) |
Set light intensity.
Definition at line 264 of file view3D.cpp.
| void View3D::setModel | ( | QSharedPointer< DISP3DLIB::Data3DTreeModel > | pModel | ) |
Return the tree model which holds the subject information.
| [in] | pModel | The tree model holding the 3d models. |
Definition at line 222 of file view3D.cpp.
|
protected |
Sets multiview views to horizontal layout.
Definition at line 546 of file view3D.cpp.
|
protected |
Sets multiview views to vertical layout.
Definition at line 533 of file view3D.cpp.
| void View3D::setSceneColor | ( | const QColor & | colSceneColor | ) |
Set the background color of the scene.
| [in] | colSceneColor | The new background color of the view. |
Definition at line 229 of file view3D.cpp.
| void View3D::showFullScreen | ( | bool | bChecked | ) |
Show fullscreen.
Definition at line 243 of file view3D.cpp.
| void View3D::showMultiView | ( | ) |
Toggles view to display multi-view.
Definition at line 566 of file view3D.cpp.
| void View3D::showSingleView | ( | ) |
Toggles view to display single view.
Definition at line 559 of file view3D.cpp.
| void View3D::startStopCameraRotation | ( | bool | bChecked | ) |
Starts or stops to rotate camera around 3D models.
Definition at line 396 of file view3D.cpp.
| void View3D::takeScreenshot | ( | ) |
Renders a screenshot of the view and saves it to the passed path. SVG and PNG supported.
| [in] | fileName | The file name and path where to store the screenshot. |
Definition at line 273 of file view3D.cpp.
| void View3D::toggleCoordAxis | ( | bool | bChecked | ) |
Toggle the coord axis visibility.
Definition at line 236 of file view3D.cpp.
|
protected |
Update multiview camera parameters based on aspect ratio.
Definition at line 512 of file view3D.cpp.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.17