Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
QmitkInteractiveTransformationWidget Class Reference

An object of this class offers an UI to create a widget to access the advanced tool creation options. More...

#include <QmitkInteractiveTransformationWidget.h>

Inheritance diagram for QmitkInteractiveTransformationWidget:
Collaboration diagram for QmitkInteractiveTransformationWidget:

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. 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ QmitkInteractiveTransformationWidget()

QmitkInteractiveTransformationWidget::QmitkInteractiveTransformationWidget ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = nullptr 
)

◆ ~QmitkInteractiveTransformationWidget()

QmitkInteractiveTransformationWidget::~QmitkInteractiveTransformationWidget ( )
override

Member Function Documentation

◆ CreateConnections()

virtual void QmitkInteractiveTransformationWidget::CreateConnections ( )
protectedvirtual

◆ CreateQtPartControl()

virtual void QmitkInteractiveTransformationWidget::CreateQtPartControl ( QWidget *  parent)
protectedvirtual

◆ EditToolTipFinished

void QmitkInteractiveTransformationWidget::EditToolTipFinished ( mitk::AffineTransform3D::Pointer  toolTip)
signal

◆ OnApplyManipulatedToolTip

void QmitkInteractiveTransformationWidget::OnApplyManipulatedToolTip ( )
protectedslot

◆ OnCancel

void QmitkInteractiveTransformationWidget::OnCancel ( )
protectedslot

◆ OnResetGeometryToIdentity

void QmitkInteractiveTransformationWidget::OnResetGeometryToIdentity ( )
protectedslot

◆ OnRevertChanges

void QmitkInteractiveTransformationWidget::OnRevertChanges ( )
protectedslot

◆ OnXRotationValueChanged

void QmitkInteractiveTransformationWidget::OnXRotationValueChanged ( double  v)
protectedslot

◆ OnXTranslationValueChanged

void QmitkInteractiveTransformationWidget::OnXTranslationValueChanged ( double  v)
protectedslot

◆ OnYRotationValueChanged

void QmitkInteractiveTransformationWidget::OnYRotationValueChanged ( double  v)
protectedslot

◆ OnYTranslationValueChanged

void QmitkInteractiveTransformationWidget::OnYTranslationValueChanged ( double  v)
protectedslot

◆ OnZRotationValueChanged

void QmitkInteractiveTransformationWidget::OnZRotationValueChanged ( double  v)
protectedslot

◆ OnZTranslationValueChanged

void QmitkInteractiveTransformationWidget::OnZTranslationValueChanged ( double  v)
protectedslot

◆ reject()

void QmitkInteractiveTransformationWidget::reject ( )
overrideprotected

◆ Rotate()

void QmitkInteractiveTransformationWidget::Rotate ( mitk::Vector3D  rotateVector)
protected

Method performs the rotation.

Parameters
rotateVectorNew rotation to be combined with geometry.

◆ SetDefaultOffset()

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.

◆ SetDefaultRotation()

void QmitkInteractiveTransformationWidget::SetDefaultRotation ( const mitk::Quaternion  _defaultValues)

◆ SetToolToEdit()

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.

Member Data Documentation

◆ m_Controls

Ui::QmitkInteractiveTransformationWidgetControls* QmitkInteractiveTransformationWidget::m_Controls
protected

Definition at line 86 of file QmitkInteractiveTransformationWidget.h.

◆ m_Geometry

mitk::BaseGeometry::Pointer QmitkInteractiveTransformationWidget::m_Geometry
protected

The geometry that is manipulated.

Definition at line 89 of file QmitkInteractiveTransformationWidget.h.

◆ m_ResetGeometry

mitk::BaseGeometry::Pointer QmitkInteractiveTransformationWidget::m_ResetGeometry
protected

Lifeline to reset to the original geometry.

Definition at line 90 of file QmitkInteractiveTransformationWidget.h.

◆ m_ToolToEdit

mitk::NavigationTool::Pointer QmitkInteractiveTransformationWidget::m_ToolToEdit
protected

this member holds a copy of the tool that should be edited for visualization

Definition at line 88 of file QmitkInteractiveTransformationWidget.h.

◆ VIEW_ID

const std::string QmitkInteractiveTransformationWidget::VIEW_ID
static

Definition at line 38 of file QmitkInteractiveTransformationWidget.h.


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