Computer Assited Medical Intervention Tool Kit  version 5.0
AnglesAndTranslationWidget Class Reference

This class describes the QWidget that allows user to change the X,Y ans Z angle of the arbitrary slice of a 2D image. Moreover it also allows one to change the slice number using a slider. More...

#include <AnglesAndTranslationWidget.h>

+ Inheritance diagram for AnglesAndTranslationWidget:
+ Collaboration diagram for AnglesAndTranslationWidget:

Public Member Functions

 AnglesAndTranslationWidget (AnglesAndTranslationAction *, QWidget *parent=0)
 Default construtor. More...
 
void updateGUI ()
 update the UI depending on the action More...
 
virtual ~AnglesAndTranslationWidget ()
 Destructor. More...
 

Private Slots

void resetTransform ()
 
void show3DViewer (bool)
 
void showAllViewer (bool)
 
void showArbitraryViewer (bool)
 switch to a specific viewer More...
 
void translationSliderChanged (int)
 
void translationSpinBoxChanged (double)
 Update the translation value. More...
 
void xAngleDialValueChanged (int)
 Method that update the angle dialog slider (text + value) More...
 
void yAngleDialValueChanged (int)
 
void zAngleDialValueChanged (int)
 

Private Member Functions

void updateAngleSliderLabel (QDial *)
 update the angle dialog slider label using the current dial value More...
 

Private Attributes

AnglesAndTranslationActionmyAction
 the action to refer to More...
 
Ui::AnglesAndTranslationWidget ui
 

Detailed Description

This class describes the QWidget that allows user to change the X,Y ans Z angle of the arbitrary slice of a 2D image. Moreover it also allows one to change the slice number using a slider.

Note
For initialization purpose, widget must be used for only one component (arbitrary). If several component are selected, do not build / display it.

Use corresponding .ui file created with Qt Designer.

Constructor & Destructor Documentation

◆ AnglesAndTranslationWidget()

AnglesAndTranslationWidget::AnglesAndTranslationWidget ( AnglesAndTranslationAction a,
QWidget *  parent = 0 
)

Default construtor.

References a, myAction, resetTransform(), show3DViewer(), showAllViewer(), showArbitraryViewer(), translationSliderChanged(), translationSpinBoxChanged(), ui, xAngleDialValueChanged(), yAngleDialValueChanged(), and zAngleDialValueChanged().

+ Here is the call graph for this function:

◆ ~AnglesAndTranslationWidget()

AnglesAndTranslationWidget::~AnglesAndTranslationWidget ( )
virtual

Destructor.

Member Function Documentation

◆ resetTransform

void AnglesAndTranslationWidget::resetTransform ( )
privateslot

References myAction, and AnglesAndTranslationAction::resetTransform().

Referenced by AnglesAndTranslationWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ show3DViewer

void AnglesAndTranslationWidget::show3DViewer ( bool  buttonState)
privateslot

References myAction, and MedicalImageViewer::VIEWER_3D.

Referenced by AnglesAndTranslationWidget().

+ Here is the caller graph for this function:

◆ showAllViewer

void AnglesAndTranslationWidget::showAllViewer ( bool  buttonState)
privateslot

References myAction, and MedicalImageViewer::VIEWER_ALL.

Referenced by AnglesAndTranslationWidget().

+ Here is the caller graph for this function:

◆ showArbitraryViewer

void AnglesAndTranslationWidget::showArbitraryViewer ( bool  buttonState)
privateslot

switch to a specific viewer

References myAction, and MedicalImageViewer::VIEWER_ARBITRARY.

Referenced by AnglesAndTranslationWidget().

+ Here is the caller graph for this function:

◆ translationSliderChanged

void AnglesAndTranslationWidget::translationSliderChanged ( int  value)
privateslot

References myAction.

Referenced by AnglesAndTranslationWidget().

+ Here is the caller graph for this function:

◆ translationSpinBoxChanged

void AnglesAndTranslationWidget::translationSpinBoxChanged ( double  value)
privateslot

Update the translation value.

References myAction.

Referenced by AnglesAndTranslationWidget().

+ Here is the caller graph for this function:

◆ updateAngleSliderLabel()

void AnglesAndTranslationWidget::updateAngleSliderLabel ( QDial *  dial)
private

update the angle dialog slider label using the current dial value

References ui.

Referenced by updateGUI(), xAngleDialValueChanged(), yAngleDialValueChanged(), and zAngleDialValueChanged().

+ Here is the caller graph for this function:

◆ updateGUI()

void AnglesAndTranslationWidget::updateGUI ( )

update the UI depending on the action

References myAction, ui, and updateAngleSliderLabel().

+ Here is the call graph for this function:

◆ xAngleDialValueChanged

void AnglesAndTranslationWidget::xAngleDialValueChanged ( int  value)
privateslot

Method that update the angle dialog slider (text + value)

References myAction, ui, and updateAngleSliderLabel().

Referenced by AnglesAndTranslationWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ yAngleDialValueChanged

void AnglesAndTranslationWidget::yAngleDialValueChanged ( int  value)
privateslot

References myAction, ui, and updateAngleSliderLabel().

Referenced by AnglesAndTranslationWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ zAngleDialValueChanged

void AnglesAndTranslationWidget::zAngleDialValueChanged ( int  value)
privateslot

References myAction, ui, and updateAngleSliderLabel().

Referenced by AnglesAndTranslationWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ myAction

◆ ui

Ui::AnglesAndTranslationWidget AnglesAndTranslationWidget::ui
private

The documentation for this class was generated from the following files: