Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
An object of this class offers an UI to create a widget to access the advanced tool creation options. More...
#include <QmitkInteractiveTransformationWidget.h>
Signals | |
void | EditToolTipFinished (mitk::AffineTransform3D::Pointer toolTip) |
Public Member Functions | |
QmitkInteractiveTransformationWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr) | |
~QmitkInteractiveTransformationWidget () override | |
void | SetToolToEdit (const mitk::NavigationTool::Pointer _tool) |
void | SetDefaultOffset (const mitk::Point3D _defaultValues) |
void | SetDefaultRotation (const mitk::Quaternion _defaultValues) |
Static Public Attributes | |
static const std::string | VIEW_ID |
Protected Slots | |
void | OnZTranslationValueChanged (double v) |
void | OnYTranslationValueChanged (double v) |
void | OnXTranslationValueChanged (double v) |
void | OnZRotationValueChanged (double v) |
void | OnYRotationValueChanged (double v) |
void | OnXRotationValueChanged (double v) |
void | OnResetGeometryToIdentity () |
void | OnRevertChanges () |
void | OnApplyManipulatedToolTip () |
void | OnCancel () |
Protected Member Functions | |
void | reject () override |
virtual void | CreateConnections () |
virtual void | CreateQtPartControl (QWidget *parent) |
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::NavigationTool::Pointer | m_ToolToEdit |
this member holds a copy of the tool that should be edited for visualization More... | |
mitk::BaseGeometry::Pointer | m_Geometry |
The geometry that is manipulated. More... | |
mitk::BaseGeometry::Pointer | m_ResetGeometry |
Lifeline to reset to the original geometry. More... | |
An object of this class offers an UI to create a widget to access the advanced tool creation options.
Documentation:
Definition at line 33 of file QmitkInteractiveTransformationWidget.h.
QmitkInteractiveTransformationWidget::QmitkInteractiveTransformationWidget | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | f = nullptr |
||
) |
Definition at line 26 of file QmitkInteractiveTransformationWidget.cpp.
References CreateConnections(), CreateQtPartControl(), m_ResetGeometry, and mitk::Geometry3D::New().
|
override |
Definition at line 38 of file QmitkInteractiveTransformationWidget.cpp.
|
protectedvirtual |
Definition at line 52 of file QmitkInteractiveTransformationWidget.cpp.
References m_Controls, OnApplyManipulatedToolTip(), OnCancel(), OnResetGeometryToIdentity(), OnRevertChanges(), 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().
|
signal |
Referenced by OnApplyManipulatedToolTip(), and OnCancel().
|
protectedslot |
Definition at line 273 of file QmitkInteractiveTransformationWidget.cpp.
References EditToolTipFinished(), mitk::BaseRenderer::GetDataStorage(), mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetRenderWindowByName(), m_Geometry, and m_ToolToEdit.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 288 of file QmitkInteractiveTransformationWidget.cpp.
References EditToolTipFinished(), mitk::BaseRenderer::GetDataStorage(), mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetRenderWindowByName(), and m_ToolToEdit.
Referenced by CreateConnections(), and reject().
|
protectedslot |
Definition at line 251 of file QmitkInteractiveTransformationWidget.cpp.
References mitk::RenderingManager::GetInstance(), m_Geometry, and mitk::RenderingManager::RequestUpdateAll().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 262 of file QmitkInteractiveTransformationWidget.cpp.
References mitk::RenderingManager::GetInstance(), m_Geometry, m_ResetGeometry, and mitk::RenderingManager::RequestUpdateAll().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 196 of file QmitkInteractiveTransformationWidget.cpp.
References m_Controls, and Rotate().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 156 of file QmitkInteractiveTransformationWidget.cpp.
References mitk::RenderingManager::GetInstance(), m_Controls, m_Geometry, and mitk::RenderingManager::RequestUpdateAll().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 208 of file QmitkInteractiveTransformationWidget.cpp.
References m_Controls, and Rotate().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 170 of file QmitkInteractiveTransformationWidget.cpp.
References mitk::RenderingManager::GetInstance(), m_Controls, m_Geometry, and mitk::RenderingManager::RequestUpdateAll().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 220 of file QmitkInteractiveTransformationWidget.cpp.
References m_Controls, and Rotate().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 183 of file QmitkInteractiveTransformationWidget.cpp.
References mitk::RenderingManager::GetInstance(), m_Controls, m_Geometry, and mitk::RenderingManager::RequestUpdateAll().
Referenced by CreateConnections().
|
overrideprotected |
Definition at line 283 of file QmitkInteractiveTransformationWidget.cpp.
References OnCancel().
|
protected |
Method performs the rotation. rotateVector New rotation to be combined with geometry.
Definition at line 232 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::SetDefaultOffset | ( | const mitk::Point3D | _defaultValues | ) |
The sliders and spinboxes will be set to these values. When clicking "Revert Changes", sliders will be reseted to these values.
Definition at line 103 of file QmitkInteractiveTransformationWidget.cpp.
References m_Geometry, and m_ResetGeometry.
Referenced by QmitkNavigationToolCreationWidget::OnEditToolTip().
void QmitkInteractiveTransformationWidget::SetDefaultRotation | ( | const mitk::Quaternion | _defaultValues | ) |
Definition at line 110 of file QmitkInteractiveTransformationWidget.cpp.
References mitk::RenderingManager::GetInstance(), m_Controls, m_Geometry, m_ResetGeometry, mitk::NavigationData::New(), and mitk::RenderingManager::RequestUpdateAll().
Referenced by QmitkNavigationToolCreationWidget::OnEditToolTip().
void QmitkInteractiveTransformationWidget::SetToolToEdit | ( | const mitk::NavigationTool::Pointer | _tool | ) |
This tool will be copied to m_ToolToEdit. It will not be changed. To apply any changes made by this widget, you will need to connect to the signal EditToolTipFinished(mitk::AffineTransform3D::Pointer toolTip) and set this transfrom as calibrated tool tip. We do not directly modify the tool to allow to cancel/exit this widget without doing any harm.
Definition at line 83 of file QmitkInteractiveTransformationWidget.cpp.
References mitk::BaseRenderer::GetDataStorage(), mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetRenderWindowByName(), m_Geometry, m_ResetGeometry, m_ToolToEdit, and mitk::ColorProperty::New().
Referenced by QmitkNavigationToolCreationWidget::OnEditToolTip().
|
protected |
Definition at line 86 of file QmitkInteractiveTransformationWidget.h.
Referenced by CreateConnections(), CreateQtPartControl(), OnXRotationValueChanged(), OnXTranslationValueChanged(), OnYRotationValueChanged(), OnYTranslationValueChanged(), OnZRotationValueChanged(), OnZTranslationValueChanged(), and SetDefaultRotation().
|
protected |
The geometry that is manipulated.
Definition at line 89 of file QmitkInteractiveTransformationWidget.h.
Referenced by OnApplyManipulatedToolTip(), OnResetGeometryToIdentity(), OnRevertChanges(), OnXTranslationValueChanged(), OnYTranslationValueChanged(), OnZTranslationValueChanged(), Rotate(), SetDefaultOffset(), SetDefaultRotation(), and SetToolToEdit().
|
protected |
Lifeline to reset to the original geometry.
Definition at line 90 of file QmitkInteractiveTransformationWidget.h.
Referenced by OnRevertChanges(), QmitkInteractiveTransformationWidget(), SetDefaultOffset(), SetDefaultRotation(), and SetToolToEdit().
|
protected |
this member holds a copy of the tool that should be edited for visualization
Definition at line 88 of file QmitkInteractiveTransformationWidget.h.
Referenced by OnApplyManipulatedToolTip(), OnCancel(), and SetToolToEdit().
|
static |
Definition at line 38 of file QmitkInteractiveTransformationWidget.h.