UsTK : Ultrasound ToolKit
version 2.0.1 under development (2024-11-21)
|
#include <visp3/ustk_gui/us3DSceneSlicing.h>
Public Slots | |
void | updateX (int x) |
void | updateY (int y) |
void | updateZ (int z) |
void | updateRotX (int rx) |
void | updateRotY (int ry) |
void | updateRotZ (int rz) |
virtual void | ResetViews () |
virtual void | Render () |
virtual void | slotExit () |
Public Member Functions | |
us3DSceneSlicing (std::string imageFileName) | |
~us3DSceneSlicing () | |
void | resizeEvent (QResizeEvent *event) |
Graphical main window to move a plane in a 3D view using QSliders for origin and normal components.
Definition at line 81 of file us3DSceneSlicing.h.
us3DSceneSlicing::us3DSceneSlicing | ( | std::string | imageFileName | ) |
Constructor.
imageFileName | the mhd file to read. |
Definition at line 90 of file us3DSceneSlicing.cpp.
References usVTKConverter::convert(), us3DSceneWidget::init(), usImageIo::read(), ResetViews(), us3DSceneWidget::setImageData(), us3DSceneWidget::setPlanes(), updateRotX(), updateRotY(), updateRotZ(), updateX(), updateY(), and updateZ().
|
inline |
Definition at line 87 of file us3DSceneSlicing.h.
|
virtualslot |
Render slot, to recompute all the views.
Definition at line 149 of file us3DSceneSlicing.cpp.
Referenced by ResetViews().
|
virtualslot |
Reset views slot : reset the planes positions at the middle of the volume.
Definition at line 144 of file us3DSceneSlicing.cpp.
References Render().
Referenced by us3DSceneSlicing().
void us3DSceneSlicing::resizeEvent | ( | QResizeEvent * | event | ) |
Get the resize event of the window, to re-comute size and positions of all widgets/layouts.
Definition at line 220 of file us3DSceneSlicing.cpp.
|
virtualslot |
Exit slot, to exit the QApplication.
Definition at line 139 of file us3DSceneSlicing.cpp.
|
slot |
Updates X rotation.
Definition at line 274 of file us3DSceneSlicing.cpp.
Referenced by us3DSceneSlicing().
|
slot |
Updates Y rotation.
Definition at line 286 of file us3DSceneSlicing.cpp.
Referenced by us3DSceneSlicing().
|
slot |
Updates Y rotation.
Definition at line 298 of file us3DSceneSlicing.cpp.
Referenced by us3DSceneSlicing().
|
slot |
Updates X translation.
Definition at line 238 of file us3DSceneSlicing.cpp.
Referenced by us3DSceneSlicing().
|
slot |
Updates Y translation.
Definition at line 250 of file us3DSceneSlicing.cpp.
Referenced by us3DSceneSlicing().
|
slot |
Updates Z translation.
Definition at line 262 of file us3DSceneSlicing.cpp.
Referenced by us3DSceneSlicing().