UsTK : Ultrasound ToolKit
version 2.0.1 under development (2024-11-21)
|
#include <visp3/ustk_gui/us3DSceneWidget.h>
Public Slots | |
void | updateImageData (vtkImageData *imageData) |
void | updateMatrix1 (vtkMatrix4x4 *matrix) |
void | updateMatrix2 (vtkMatrix4x4 *matrix) |
void | updateMatrix3 (vtkMatrix4x4 *matrix) |
Signals | |
void | plane1Changed () |
void | plane2Changed () |
void | plane3Changed () |
Public Member Functions | |
us3DSceneWidget (QWidget *parent=NULL, Qt::WindowFlags f=Qt::WindowFlags()) | |
~us3DSceneWidget () | |
vtkPolyData * | getContour1 () |
vtkPolyData * | getContour2 () |
vtkPolyData * | getContour3 () |
vtkImageData * | getImageData () |
vtkPolyData * | getMeshInPlane1 () |
vtkPolyData * | getMeshInPlane2 () |
vtkPolyData * | getMeshInPlane3 () |
vtkPlane * | getPlane1 () |
vtkPlane * | getPlane2 () |
vtkPlane * | getPlane3 () |
void | init () |
void | paintEvent (QPaintEvent *event) |
void | setImageData (vtkImageData *imageData) |
void | setPlane1 (vtkPlane *plane) |
void | setPlane2 (vtkPlane *plane) |
void | setPlane3 (vtkPlane *plane) |
void | setPlanes (vtkPlane *plane1, vtkPlane *plane2, vtkPlane *plane3) |
Class used to render a 3D vtk scene containing a vtkImageData in a QWidget (based on QVTKWidget).
Usage :
Definition at line 119 of file us3DSceneWidget.h.
us3DSceneWidget::us3DSceneWidget | ( | QWidget * | parent = NULL , |
Qt::WindowFlags | f = Qt::WindowFlags() |
||
) |
Constructor.
Definition at line 71 of file us3DSceneWidget.cpp.
|
inline |
Definition at line 125 of file us3DSceneWidget.h.
vtkPolyData * us3DSceneWidget::getContour1 | ( | ) |
Contour plane 1 getter.
Definition at line 337 of file us3DSceneWidget.cpp.
Referenced by usResliceMatrixViewer::usResliceMatrixViewer().
vtkPolyData * us3DSceneWidget::getContour2 | ( | ) |
Contour plane 2 getter.
Definition at line 343 of file us3DSceneWidget.cpp.
Referenced by usResliceMatrixViewer::usResliceMatrixViewer().
vtkPolyData * us3DSceneWidget::getContour3 | ( | ) |
Contour plane 3 getter.
Definition at line 349 of file us3DSceneWidget.cpp.
Referenced by usResliceMatrixViewer::usResliceMatrixViewer().
vtkImageData * us3DSceneWidget::getImageData | ( | ) |
Getter for image data pointer
Definition at line 98 of file us3DSceneWidget.cpp.
vtkPolyData * us3DSceneWidget::getMeshInPlane1 | ( | ) |
Intersection between plane 1 and mesh.
Definition at line 355 of file us3DSceneWidget.cpp.
Referenced by usResliceMatrixViewer::usResliceMatrixViewer().
vtkPolyData * us3DSceneWidget::getMeshInPlane2 | ( | ) |
Intersection between plane 2 and mesh.
Definition at line 361 of file us3DSceneWidget.cpp.
Referenced by usResliceMatrixViewer::usResliceMatrixViewer().
vtkPolyData * us3DSceneWidget::getMeshInPlane3 | ( | ) |
Intersection between plane 3 and mesh.
Definition at line 367 of file us3DSceneWidget.cpp.
Referenced by usResliceMatrixViewer::usResliceMatrixViewer().
vtkPlane * us3DSceneWidget::getPlane1 | ( | ) |
Plane 1 getter.
Definition at line 319 of file us3DSceneWidget.cpp.
vtkPlane * us3DSceneWidget::getPlane2 | ( | ) |
Plane 2 getter.
Definition at line 325 of file us3DSceneWidget.cpp.
vtkPlane * us3DSceneWidget::getPlane3 | ( | ) |
Plane 3 getter.
Definition at line 331 of file us3DSceneWidget.cpp.
void us3DSceneWidget::init | ( | ) |
Init method : setup vtk pipeline. Make sure imageData and planes are set before calling init().
Definition at line 103 of file us3DSceneWidget.cpp.
Referenced by us3DSceneSlicing::us3DSceneSlicing(), usMedicalImageViewer::usMedicalImageViewer(), and usResliceMatrixViewer::usResliceMatrixViewer().
void us3DSceneWidget::paintEvent | ( | QPaintEvent * | event | ) |
Qt paint event overload if needed to update Qt widget
event | QPaintEvent. |
Definition at line 92 of file us3DSceneWidget.cpp.
References usViewerWidget::paintEvent().
|
signal |
Referenced by updateMatrix1().
|
signal |
Referenced by updateMatrix2().
|
signal |
Referenced by updateMatrix3().
void us3DSceneWidget::setImageData | ( | vtkImageData * | imageData | ) |
Image data setter.
imageData | Pointer on vtkImageData to display. |
Definition at line 280 of file us3DSceneWidget.cpp.
Referenced by us3DSceneSlicing::us3DSceneSlicing(), usMedicalImageViewer::usMedicalImageViewer(), and usResliceMatrixViewer::usResliceMatrixViewer().
void us3DSceneWidget::setPlane1 | ( | vtkPlane * | plane | ) |
Plane 1 setter.
plane | Pointer on first vtkPlane. |
Definition at line 302 of file us3DSceneWidget.cpp.
void us3DSceneWidget::setPlane2 | ( | vtkPlane * | plane | ) |
Plane 2 setter.
plane | Pointer on second vtkPlane. |
Definition at line 308 of file us3DSceneWidget.cpp.
void us3DSceneWidget::setPlane3 | ( | vtkPlane * | plane | ) |
Plane 3 setter.
plane | Pointer on third vtkPlane. |
Definition at line 314 of file us3DSceneWidget.cpp.
void us3DSceneWidget::setPlanes | ( | vtkPlane * | plane1, |
vtkPlane * | plane2, | ||
vtkPlane * | plane3 | ||
) |
All planes setter.
plane1 | Pointer on first vtkPlane. |
plane2 | Pointer on second vtkPlane. |
plane3 | Pointer on third vtkPlane. |
Definition at line 375 of file us3DSceneWidget.cpp.
Referenced by us3DSceneSlicing::us3DSceneSlicing(), and usMedicalImageViewer::usMedicalImageViewer().
|
slot |
Slot called to update image to display
imageData | Pointer to new image to display |
Definition at line 386 of file us3DSceneWidget.cpp.
Referenced by usResliceMatrixViewer::openPostScan3D().
|
slot |
Slot called to update plane 1 with new RT matrix
matrix | Pointer to new orientation matrix. |
Definition at line 418 of file us3DSceneWidget.cpp.
References usVTKConverter::convert(), and plane1Changed().
Referenced by usResliceMatrixViewer::ResetViews(), and usResliceMatrixViewer::usResliceMatrixViewer().
|
slot |
Slot called to update plane 2 with new RT matrix
matrix | Pointer to new orientation matrix. |
Definition at line 456 of file us3DSceneWidget.cpp.
References usVTKConverter::convert(), and plane2Changed().
Referenced by usResliceMatrixViewer::ResetViews(), and usResliceMatrixViewer::usResliceMatrixViewer().
|
slot |
Slot called to update plane 3 with new RT matrix
matrix | Pointer to new orientation matrix. |
Definition at line 494 of file us3DSceneWidget.cpp.
References usVTKConverter::convert(), and plane3Changed().
Referenced by usResliceMatrixViewer::ResetViews(), and usResliceMatrixViewer::usResliceMatrixViewer().