Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
An object of this class offers an UI to create a widget to access the advance tool creation options. More...
#include <QmitkInteractiveTransformationWidget.h>
Signals | |
void | ApplyManipulatedToolTip () |
Public Member Functions | |
QmitkInteractiveTransformationWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr) | |
~QmitkInteractiveTransformationWidget () | |
void | SetGeometry (mitk::BaseGeometry::Pointer geometry, mitk::BaseGeometry::Pointer defaultValues=nullptr) |
mitk::BaseGeometry::Pointer | GetGeometry () |
Static Public Attributes | |
static const std::string | VIEW_ID |
Protected Slots | |
void | OnZTranslationValueChanged (int v) |
void | OnYTranslationValueChanged (int v) |
void | OnXTranslationValueChanged (int v) |
void | OnZRotationValueChanged (int v) |
void | OnYRotationValueChanged (int v) |
void | OnXRotationValueChanged (int v) |
void | OnResetGeometry () |
void | OnApplyManipulatedToolTip () |
Protected Member Functions | |
virtual void | CreateConnections () |
virtual void | CreateQtPartControl (QWidget *parent) |
void | SetSliderX (int v) |
void | SetSliderY (int v) |
void | SetSliderZ (int v) |
void | Translate (mitk::Vector3D translateVector) |
Method performs the translation. translateVector New translation to be combine with geometry. More... | |
void | Rotate (mitk::Vector3D rotateVector) |
Method performs the rotation. rotateVector New rotation to be combined with geometry. More... | |
Protected Attributes | |
Ui::QmitkInteractiveTransformationWidgetControls * | m_Controls |
mitk::BaseGeometry::Pointer | m_Geometry |
Initial geometry that is manipulated. More... | |
mitk::BaseGeometry::Pointer | m_ResetGeometry |
Lifeline to reset to the initial geometry. More... | |
mitk::Vector3D | m_TranslationVector |
Accumulated translation vector. More... | |
mitk::Vector3D | m_RotateSliderPos |
Accumulated rotation vector (holds degree around x,y,z direction) More... | |
An object of this class offers an UI to create a widget to access the advance tool creation options.
Documentation:
Definition at line 37 of file QmitkInteractiveTransformationWidget.h.
QmitkInteractiveTransformationWidget::QmitkInteractiveTransformationWidget | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | f = nullptr |
||
) |
Definition at line 29 of file QmitkInteractiveTransformationWidget.cpp.
References CreateConnections(), CreateQtPartControl(), m_RotateSliderPos, and m_TranslationVector.
QmitkInteractiveTransformationWidget::~QmitkInteractiveTransformationWidget | ( | ) |
Definition at line 38 of file QmitkInteractiveTransformationWidget.cpp.
|
signal |
Referenced by OnApplyManipulatedToolTip().
|
protectedvirtual |
Definition at line 52 of file QmitkInteractiveTransformationWidget.cpp.
References m_Controls, OnApplyManipulatedToolTip(), OnResetGeometry(), OnXRotationValueChanged(), OnXTranslationValueChanged(), OnYRotationValueChanged(), OnYTranslationValueChanged(), OnZRotationValueChanged(), and OnZTranslationValueChanged().
Referenced by QmitkInteractiveTransformationWidget().
|
protectedvirtual |
Definition at line 42 of file QmitkInteractiveTransformationWidget.cpp.
References m_Controls.
Referenced by QmitkInteractiveTransformationWidget().
mitk::BaseGeometry::Pointer QmitkInteractiveTransformationWidget::GetGeometry | ( | ) |
Definition at line 113 of file QmitkInteractiveTransformationWidget.cpp.
References m_Geometry.
|
protectedslot |
Definition at line 284 of file QmitkInteractiveTransformationWidget.cpp.
References ApplyManipulatedToolTip().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 261 of file QmitkInteractiveTransformationWidget.cpp.
References mitk::RenderingManager::GetInstance(), m_Controls, m_Geometry, m_ResetGeometry, and mitk::RenderingManager::RequestUpdateAll().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 193 of file QmitkInteractiveTransformationWidget.cpp.
References m_Controls, and Rotate().
Referenced by CreateConnections(), and SetGeometry().
|
protectedslot |
Definition at line 126 of file QmitkInteractiveTransformationWidget.cpp.
References m_Controls, SetSliderX(), and Translate().
Referenced by CreateConnections(), and SetGeometry().
|
protectedslot |
Definition at line 206 of file QmitkInteractiveTransformationWidget.cpp.
References m_Controls, and Rotate().
Referenced by CreateConnections(), and SetGeometry().
|
protectedslot |
Definition at line 142 of file QmitkInteractiveTransformationWidget.cpp.
References m_Controls, SetSliderY(), and Translate().
Referenced by CreateConnections(), and SetGeometry().
|
protectedslot |
Definition at line 219 of file QmitkInteractiveTransformationWidget.cpp.
References m_Controls, and Rotate().
Referenced by CreateConnections(), and SetGeometry().
|
protectedslot |
Definition at line 158 of file QmitkInteractiveTransformationWidget.cpp.
References m_Controls, SetSliderZ(), and Translate().
Referenced by CreateConnections(), and SetGeometry().
|
protected |
Method performs the rotation. rotateVector New rotation to be combined with geometry.
Definition at line 231 of file QmitkInteractiveTransformationWidget.cpp.
References mitk::RenderingManager::GetInstance(), m_Geometry, mitk::NavigationData::New(), mitk::RenderingManager::RequestUpdateAll(), and rotation.
Referenced by OnXRotationValueChanged(), OnYRotationValueChanged(), and OnZRotationValueChanged().
void QmitkInteractiveTransformationWidget::SetGeometry | ( | mitk::BaseGeometry::Pointer | geometry, |
mitk::BaseGeometry::Pointer | defaultValues = nullptr |
||
) |
Sets the geometry which will be modified by this widget. Default values may be provided by the second variable. These values will be applied to the geometry in the beginning and the UI will also hold these values.
Definition at line 77 of file QmitkInteractiveTransformationWidget.cpp.
References m_Geometry, m_ResetGeometry, mitk::NavigationData::New(), OnXRotationValueChanged(), OnXTranslationValueChanged(), OnYRotationValueChanged(), OnYTranslationValueChanged(), OnZRotationValueChanged(), and OnZTranslationValueChanged().
|
protected |
Definition at line 136 of file QmitkInteractiveTransformationWidget.cpp.
References m_Controls.
Referenced by OnXTranslationValueChanged().
|
protected |
Definition at line 152 of file QmitkInteractiveTransformationWidget.cpp.
References m_Controls.
Referenced by OnYTranslationValueChanged().
|
protected |
Definition at line 168 of file QmitkInteractiveTransformationWidget.cpp.
References m_Controls.
Referenced by OnZTranslationValueChanged().
|
protected |
Method performs the translation. translateVector New translation to be combine with geometry.
Definition at line 174 of file QmitkInteractiveTransformationWidget.cpp.
References mitk::RenderingManager::GetInstance(), m_Geometry, m_TranslationVector, and mitk::RenderingManager::RequestUpdateAll().
Referenced by OnXTranslationValueChanged(), OnYTranslationValueChanged(), and OnZTranslationValueChanged().
|
protected |
Definition at line 87 of file QmitkInteractiveTransformationWidget.h.
Referenced by CreateConnections(), CreateQtPartControl(), OnResetGeometry(), OnXRotationValueChanged(), OnXTranslationValueChanged(), OnYRotationValueChanged(), OnYTranslationValueChanged(), OnZRotationValueChanged(), OnZTranslationValueChanged(), SetSliderX(), SetSliderY(), and SetSliderZ().
|
protected |
Initial geometry that is manipulated.
Definition at line 89 of file QmitkInteractiveTransformationWidget.h.
Referenced by GetGeometry(), OnResetGeometry(), Rotate(), SetGeometry(), and Translate().
|
protected |
Lifeline to reset to the initial geometry.
Definition at line 90 of file QmitkInteractiveTransformationWidget.h.
Referenced by OnResetGeometry(), and SetGeometry().
|
protected |
Accumulated rotation vector (holds degree around x,y,z direction)
Definition at line 92 of file QmitkInteractiveTransformationWidget.h.
Referenced by QmitkInteractiveTransformationWidget().
|
protected |
Accumulated translation vector.
Definition at line 91 of file QmitkInteractiveTransformationWidget.h.
Referenced by QmitkInteractiveTransformationWidget(), and Translate().
|
static |
Definition at line 42 of file QmitkInteractiveTransformationWidget.h.