Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkInteractiveTransformationWidget Class Reference

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

#include <QmitkInteractiveTransformationWidget.h>

Inheritance diagram for QmitkInteractiveTransformationWidget:
Collaboration diagram for QmitkInteractiveTransformationWidget:

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

Detailed Description

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.

Constructor & Destructor Documentation

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

Definition at line 38 of file QmitkInteractiveTransformationWidget.cpp.

Member Function Documentation

void QmitkInteractiveTransformationWidget::ApplyManipulatedToolTip ( )
signal
void QmitkInteractiveTransformationWidget::CreateQtPartControl ( QWidget *  parent)
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.

void QmitkInteractiveTransformationWidget::OnApplyManipulatedToolTip ( )
protectedslot

Definition at line 284 of file QmitkInteractiveTransformationWidget.cpp.

References ApplyManipulatedToolTip().

Referenced by CreateConnections().

void QmitkInteractiveTransformationWidget::OnResetGeometry ( )
protectedslot
void QmitkInteractiveTransformationWidget::OnXRotationValueChanged ( int  v)
protectedslot

Definition at line 193 of file QmitkInteractiveTransformationWidget.cpp.

References m_Controls, and Rotate().

Referenced by CreateConnections(), and SetGeometry().

void QmitkInteractiveTransformationWidget::OnXTranslationValueChanged ( int  v)
protectedslot

Definition at line 126 of file QmitkInteractiveTransformationWidget.cpp.

References m_Controls, SetSliderX(), and Translate().

Referenced by CreateConnections(), and SetGeometry().

void QmitkInteractiveTransformationWidget::OnYRotationValueChanged ( int  v)
protectedslot

Definition at line 206 of file QmitkInteractiveTransformationWidget.cpp.

References m_Controls, and Rotate().

Referenced by CreateConnections(), and SetGeometry().

void QmitkInteractiveTransformationWidget::OnYTranslationValueChanged ( int  v)
protectedslot

Definition at line 142 of file QmitkInteractiveTransformationWidget.cpp.

References m_Controls, SetSliderY(), and Translate().

Referenced by CreateConnections(), and SetGeometry().

void QmitkInteractiveTransformationWidget::OnZRotationValueChanged ( int  v)
protectedslot

Definition at line 219 of file QmitkInteractiveTransformationWidget.cpp.

References m_Controls, and Rotate().

Referenced by CreateConnections(), and SetGeometry().

void QmitkInteractiveTransformationWidget::OnZTranslationValueChanged ( int  v)
protectedslot

Definition at line 158 of file QmitkInteractiveTransformationWidget.cpp.

References m_Controls, SetSliderZ(), and Translate().

Referenced by CreateConnections(), and SetGeometry().

void QmitkInteractiveTransformationWidget::Rotate ( mitk::Vector3D  rotateVector)
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().

void QmitkInteractiveTransformationWidget::SetSliderX ( int  v)
protected

Definition at line 136 of file QmitkInteractiveTransformationWidget.cpp.

References m_Controls.

Referenced by OnXTranslationValueChanged().

void QmitkInteractiveTransformationWidget::SetSliderY ( int  v)
protected

Definition at line 152 of file QmitkInteractiveTransformationWidget.cpp.

References m_Controls.

Referenced by OnYTranslationValueChanged().

void QmitkInteractiveTransformationWidget::SetSliderZ ( int  v)
protected

Definition at line 168 of file QmitkInteractiveTransformationWidget.cpp.

References m_Controls.

Referenced by OnZTranslationValueChanged().

void QmitkInteractiveTransformationWidget::Translate ( mitk::Vector3D  translateVector)
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().

Member Data Documentation

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

Initial geometry that is manipulated.

Definition at line 89 of file QmitkInteractiveTransformationWidget.h.

Referenced by GetGeometry(), OnResetGeometry(), Rotate(), SetGeometry(), and Translate().

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

Lifeline to reset to the initial geometry.

Definition at line 90 of file QmitkInteractiveTransformationWidget.h.

Referenced by OnResetGeometry(), and SetGeometry().

mitk::Vector3D QmitkInteractiveTransformationWidget::m_RotateSliderPos
protected

Accumulated rotation vector (holds degree around x,y,z direction)

Definition at line 92 of file QmitkInteractiveTransformationWidget.h.

Referenced by QmitkInteractiveTransformationWidget().

mitk::Vector3D QmitkInteractiveTransformationWidget::m_TranslationVector
protected

Accumulated translation vector.

Definition at line 91 of file QmitkInteractiveTransformationWidget.h.

Referenced by QmitkInteractiveTransformationWidget(), and Translate().

const std::string QmitkInteractiveTransformationWidget::VIEW_ID
static

Definition at line 42 of file QmitkInteractiveTransformationWidget.h.


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