UsTK : Ultrasound ToolKit  version 2.0.1 under development (2024-12-17)

#include <visp3/ustk_gui/usMedicalImageViewer.h>

+ Inheritance diagram for usMedicalImageViewer:

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]
 

Detailed Description

Graphical main window containing 4 vtk views.

Definition at line 80 of file usMedicalImageViewer.h.

Constructor & Destructor Documentation

◆ usMedicalImageViewer()

usMedicalImageViewer::usMedicalImageViewer ( std::string  imageFileName)

Constructor.

Parameters
imageFileNamethe 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().

◆ ~usMedicalImageViewer()

usMedicalImageViewer::~usMedicalImageViewer ( )
inline

Definition at line 86 of file usMedicalImageViewer.h.

Member Function Documentation

◆ AddDistanceMeasurementToView

void usMedicalImageViewer::AddDistanceMeasurementToView ( int  i)
virtualslot

Slot to add a distance measure widget to a wiew.

Parameters
iView number to add the measure on.

Definition at line 254 of file usMedicalImageViewer.cpp.

References DistanceWidget, and riw.

Referenced by AddDistanceMeasurementToView1().

◆ AddDistanceMeasurementToView1

void usMedicalImageViewer::AddDistanceMeasurementToView1 ( )
virtualslot

Slot to add a distance measure widget to wiew 1.

Definition at line 248 of file usMedicalImageViewer.cpp.

References AddDistanceMeasurementToView().

◆ Render

void usMedicalImageViewer::Render ( )
virtualslot

Render slot, to recompute all the views.

Definition at line 227 of file usMedicalImageViewer.cpp.

Referenced by ResetViews().

◆ ResetColorMap

void usMedicalImageViewer::ResetColorMap ( )
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.

◆ ResetViews

void usMedicalImageViewer::ResetViews ( )
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().

◆ resizeEvent()

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.

◆ slotExit

void usMedicalImageViewer::slotExit ( )
virtualslot

Exit slot, to exit the QApplication.

Definition at line 205 of file usMedicalImageViewer.cpp.

Member Data Documentation

◆ DistanceWidget

vtkSmartPointer<vtkDistanceWidget> usMedicalImageViewer::DistanceWidget[3]
protected

Definition at line 102 of file usMedicalImageViewer.h.

Referenced by AddDistanceMeasurementToView().

◆ planeWidget

vtkSmartPointer<vtkImagePlaneWidget> usMedicalImageViewer::planeWidget[3]
protected

Definition at line 101 of file usMedicalImageViewer.h.

◆ ResliceMeasurements

vtkSmartPointer<vtkResliceImageViewerMeasurements> usMedicalImageViewer::ResliceMeasurements[3]
protected

Definition at line 103 of file usMedicalImageViewer.h.

◆ riw

vtkSmartPointer<vtkResliceImageViewer> usMedicalImageViewer::riw[3]
protected