UsTK : Ultrasound ToolKit
version 2.0.1 under development (2024-12-17)
|
#include <visp3/ustk_gui/usMedicalImageViewer.h>
Public Slots | |
virtual void | ResetViews () |
virtual void | ResetColorMap () |
virtual void | Render () |
virtual void | AddDistanceMeasurementToView1 () |
virtual void | AddDistanceMeasurementToView (int) |
virtual void | slotExit () |
Public Member Functions | |
usMedicalImageViewer (std::string imageFileName) | |
~usMedicalImageViewer () | |
void | resizeEvent (QResizeEvent *event) |
Protected Attributes | |
vtkSmartPointer< vtkResliceImageViewer > | riw [3] |
vtkSmartPointer< vtkImagePlaneWidget > | planeWidget [3] |
vtkSmartPointer< vtkDistanceWidget > | DistanceWidget [3] |
vtkSmartPointer< vtkResliceImageViewerMeasurements > | ResliceMeasurements [3] |
Graphical main window containing 4 vtk views.
Definition at line 80 of file usMedicalImageViewer.h.
usMedicalImageViewer::usMedicalImageViewer | ( | std::string | imageFileName | ) |
Constructor.
imageFileName | the mhd file to read. |
Definition at line 116 of file usMedicalImageViewer.cpp.
References usVTKConverter::convert(), us3DSceneWidget::init(), usImageIo::read(), ResetViews(), riw, us3DSceneWidget::setImageData(), and us3DSceneWidget::setPlanes().
|
inline |
Definition at line 86 of file usMedicalImageViewer.h.
|
virtualslot |
Slot to add a distance measure widget to a wiew.
i | View number to add the measure on. |
Definition at line 254 of file usMedicalImageViewer.cpp.
References DistanceWidget, and riw.
Referenced by AddDistanceMeasurementToView1().
|
virtualslot |
Slot to add a distance measure widget to wiew 1.
Definition at line 248 of file usMedicalImageViewer.cpp.
References AddDistanceMeasurementToView().
|
virtualslot |
Render slot, to recompute all the views.
Definition at line 227 of file usMedicalImageViewer.cpp.
Referenced by ResetViews().
|
virtualslot |
Reset color map slot : reset the color map to initial one in each view.
Definition at line 215 of file usMedicalImageViewer.cpp.
References riw.
|
virtualslot |
Reset views slot : reset the planes positions at the middle of the volume.
Definition at line 210 of file usMedicalImageViewer.cpp.
References Render().
Referenced by usMedicalImageViewer().
void usMedicalImageViewer::resizeEvent | ( | QResizeEvent * | event | ) |
Get the resize event of the window, to re-comute size and positions of all widgets/layouts.
Definition at line 343 of file usMedicalImageViewer.cpp.
|
virtualslot |
Exit slot, to exit the QApplication.
Definition at line 205 of file usMedicalImageViewer.cpp.
|
protected |
Definition at line 102 of file usMedicalImageViewer.h.
Referenced by AddDistanceMeasurementToView().
|
protected |
Definition at line 101 of file usMedicalImageViewer.h.
|
protected |
Definition at line 103 of file usMedicalImageViewer.h.
|
protected |
Definition at line 100 of file usMedicalImageViewer.h.
Referenced by AddDistanceMeasurementToView(), ResetColorMap(), and usMedicalImageViewer().