Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkNavigationToolCreationAdvancedWidget Class Reference

An object of this class offers an UI to modify a tooltip of an IGT navigation tool. More...

#include <QmitkNavigationToolCreationAdvancedWidget.h>

Inheritance diagram for QmitkNavigationToolCreationAdvancedWidget:
Collaboration diagram for QmitkNavigationToolCreationAdvancedWidget:

Signals

void DialogCloseRequested ()
 
void RetrieveDataForManualToolTipManipulation ()
 

Public Member Functions

 QmitkNavigationToolCreationAdvancedWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
 ~QmitkNavigationToolCreationAdvancedWidget ()
 
void SetDataStorage (mitk::DataStorage::Pointer dataStorage)
 
void SetToolTipSurface (bool cone, mitk::DataNode::Pointer node=NULL)
 
void SetDefaultTooltip (mitk::AffineTransform3D::Pointer defaultToolTip)
 
mitk::AffineTransform3D::Pointer GetManipulatedToolTip ()
 
void ReInitialize ()
 

Static Public Attributes

static const std::string VIEW_ID
 

Protected Slots

void OnClose ()
 
void OnApplyManipulatedToolTip ()
 

Protected Member Functions

virtual void CreateConnections ()
 
virtual void CreateQtPartControl (QWidget *parent)
 
void RetrieveAndInitializeDataForTooltipManipulation ()
 

Protected Attributes

Ui::QmitkNavigationToolCreationAdvancedWidgetControls * m_Controls
 
mitk::AffineTransform3D::Pointer m_DefaultToolTip
 
mitk::DataStorage::Pointer m_DataStorage
 
mitk::Surface::Pointer m_ToolTipSurface
 
mitk::Surface::Pointer m_ManipulatedToolTip
 manipulated surface object, which holds the tooltip as geometry More...
 
std::string m_SurfaceNodeName
 

Detailed Description

An object of this class offers an UI to modify a tooltip of an IGT navigation tool.

Documentation: The user can modify translation and orientation of the tooltip. The current tooltip might be provided as default data, then the widget starts with the given values for translation and orientation.

As long as the UI is open, there will also be a (temporary) preview data node, so the user can see the effect of his manipulations.

Please call the method SetDataStorage to initialize the UI with the data storage of the current application.

Definition at line 49 of file QmitkNavigationToolCreationAdvancedWidget.h.

Constructor & Destructor Documentation

QmitkNavigationToolCreationAdvancedWidget::QmitkNavigationToolCreationAdvancedWidget ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)
QmitkNavigationToolCreationAdvancedWidget::~QmitkNavigationToolCreationAdvancedWidget ( )

Member Function Documentation

void QmitkNavigationToolCreationAdvancedWidget::CreateConnections ( )
protectedvirtual
void QmitkNavigationToolCreationAdvancedWidget::CreateQtPartControl ( QWidget *  parent)
protectedvirtual
void QmitkNavigationToolCreationAdvancedWidget::DialogCloseRequested ( )
signal

Referenced by OnClose().

mitk::AffineTransform3D::Pointer QmitkNavigationToolCreationAdvancedWidget::GetManipulatedToolTip ( )
Returns
Returns the manipulated tip transform. Returns an identity transform if nothing was manipulated.

Definition at line 199 of file QmitkNavigationToolCreationAdvancedWidget.cpp.

References m_ManipulatedToolTip, and mitk::New().

Referenced by QmitkNavigationToolCreationWidget::OnFinished(), and QmitkNavigationToolCreationWidget::OnShowAdvancedOptions().

void QmitkNavigationToolCreationAdvancedWidget::OnApplyManipulatedToolTip ( )
protectedslot
void QmitkNavigationToolCreationAdvancedWidget::OnClose ( )
protectedslot
void QmitkNavigationToolCreationAdvancedWidget::RetrieveAndInitializeDataForTooltipManipulation ( )
protected
void QmitkNavigationToolCreationAdvancedWidget::RetrieveDataForManualToolTipManipulation ( )
signal
void QmitkNavigationToolCreationAdvancedWidget::SetDataStorage ( mitk::DataStorage::Pointer  dataStorage)

Initializes the view with the a data storage. This data storage is needed for the preview node during tooltip manipulation.

Definition at line 78 of file QmitkNavigationToolCreationAdvancedWidget.cpp.

References m_DataStorage.

Referenced by QmitkNavigationToolCreationWidget::Initialize().

void QmitkNavigationToolCreationAdvancedWidget::SetDefaultTooltip ( mitk::AffineTransform3D::Pointer  defaultToolTip)

Sets a default tooltip transform, which will shown in the beginning. If the windows is already open, the transform will be set to default immediately.

Definition at line 160 of file QmitkNavigationToolCreationAdvancedWidget.cpp.

References m_DefaultToolTip.

Referenced by QmitkNavigationToolCreationWidget::OnShowAdvancedOptions(), and QmitkNavigationToolCreationWidget::SetDefaultData().

void QmitkNavigationToolCreationAdvancedWidget::SetToolTipSurface ( bool  cone,
mitk::DataNode::Pointer  node = NULL 
)

Sets the current tooltip surface, also for preview purposes (the preview node will be a clone of this surface). If there is no surface, a simple cone can be used. Please set cone to true in this case.

Definition at line 165 of file QmitkNavigationToolCreationAdvancedWidget.cpp.

References m_SurfaceNodeName, m_ToolTipSurface, mitk::Surface::New(), and mitk::New().

Referenced by QmitkNavigationToolCreationWidget::OnRetrieveDataForManualTooltipManipulation().

Member Data Documentation

Ui::QmitkNavigationToolCreationAdvancedWidgetControls* QmitkNavigationToolCreationAdvancedWidget::m_Controls
protected
mitk::DataStorage::Pointer QmitkNavigationToolCreationAdvancedWidget::m_DataStorage
protected
mitk::AffineTransform3D::Pointer QmitkNavigationToolCreationAdvancedWidget::m_DefaultToolTip
protected
mitk::Surface::Pointer QmitkNavigationToolCreationAdvancedWidget::m_ManipulatedToolTip
protected

manipulated surface object, which holds the tooltip as geometry

Definition at line 106 of file QmitkNavigationToolCreationAdvancedWidget.h.

Referenced by GetManipulatedToolTip(), OnApplyManipulatedToolTip(), ReInitialize(), and RetrieveAndInitializeDataForTooltipManipulation().

std::string QmitkNavigationToolCreationAdvancedWidget::m_SurfaceNodeName
protected
mitk::Surface::Pointer QmitkNavigationToolCreationAdvancedWidget::m_ToolTipSurface
protected
const std::string QmitkNavigationToolCreationAdvancedWidget::VIEW_ID
static

Definition at line 54 of file QmitkNavigationToolCreationAdvancedWidget.h.


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