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>
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 | |
AnglesAndTranslationAction * | myAction |
the action to refer to More... | |
Ui::AnglesAndTranslationWidget | ui |
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.
Use corresponding .ui file created with Qt Designer.
AnglesAndTranslationWidget::AnglesAndTranslationWidget | ( | AnglesAndTranslationAction * | a, |
QWidget * | parent = 0 |
||
) |
Default construtor.
References a, myAction, resetTransform(), show3DViewer(), showAllViewer(), showArbitraryViewer(), translationSliderChanged(), translationSpinBoxChanged(), ui, xAngleDialValueChanged(), yAngleDialValueChanged(), and zAngleDialValueChanged().
|
virtual |
Destructor.
|
privateslot |
References myAction, and AnglesAndTranslationAction::resetTransform().
Referenced by AnglesAndTranslationWidget().
|
privateslot |
References myAction, and MedicalImageViewer::VIEWER_3D.
Referenced by AnglesAndTranslationWidget().
|
privateslot |
References myAction, and MedicalImageViewer::VIEWER_ALL.
Referenced by AnglesAndTranslationWidget().
|
privateslot |
switch to a specific viewer
References myAction, and MedicalImageViewer::VIEWER_ARBITRARY.
Referenced by AnglesAndTranslationWidget().
|
privateslot |
References myAction.
Referenced by AnglesAndTranslationWidget().
|
privateslot |
Update the translation value.
References myAction.
Referenced by AnglesAndTranslationWidget().
|
private |
update the angle dialog slider label using the current dial value
References ui.
Referenced by updateGUI(), xAngleDialValueChanged(), yAngleDialValueChanged(), and zAngleDialValueChanged().
void AnglesAndTranslationWidget::updateGUI | ( | ) |
update the UI depending on the action
References myAction, ui, and updateAngleSliderLabel().
|
privateslot |
Method that update the angle dialog slider (text + value)
References myAction, ui, and updateAngleSliderLabel().
Referenced by AnglesAndTranslationWidget().
|
privateslot |
References myAction, ui, and updateAngleSliderLabel().
Referenced by AnglesAndTranslationWidget().
|
privateslot |
References myAction, ui, and updateAngleSliderLabel().
Referenced by AnglesAndTranslationWidget().
|
private |
the action to refer to
Referenced by AnglesAndTranslationWidget(), resetTransform(), show3DViewer(), showAllViewer(), showArbitraryViewer(), translationSliderChanged(), translationSpinBoxChanged(), updateGUI(), xAngleDialValueChanged(), yAngleDialValueChanged(), and zAngleDialValueChanged().
|
private |