Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkNavigationToolCreationAdvancedWidget.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QmitkNavigationToolCreationAdvancedWidget_H
18 #define QmitkNavigationToolCreationAdvancedWidget_H
19 
20 //QT headers
21 #include <QDialog>
22 
23 //Mitk headers
24 #include "MitkIGTUIExports.h"
25 #include "mitkDataStorage.h"
26 #include "mitkSurface.h"
27 
28 // Qmitk headers
30 
31 //ui header
32 #include "ui_QmitkNavigationToolCreationAdvancedWidgetControls.h"
33 
49 class MITKIGTUI_EXPORT QmitkNavigationToolCreationAdvancedWidget : public QDialog
50 {
51  Q_OBJECT
52 
53  public:
54  static const std::string VIEW_ID;
55 
56  QmitkNavigationToolCreationAdvancedWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
58 
62  void SetDataStorage(mitk::DataStorage::Pointer dataStorage);
63 
68  void SetToolTipSurface(bool cone, mitk::DataNode::Pointer node = NULL);
69 
74  void SetDefaultTooltip(mitk::AffineTransform3D::Pointer defaultToolTip);
75 
79  mitk::AffineTransform3D::Pointer GetManipulatedToolTip();
80 
83  void ReInitialize();
84 
85 signals:
86  void DialogCloseRequested();
87  void RetrieveDataForManualToolTipManipulation();
88 
89  protected slots:
90  void OnClose();
91  void OnApplyManipulatedToolTip();
92 
93  protected:
94 
95  virtual void CreateConnections();
96 
97  virtual void CreateQtPartControl(QWidget *parent);
98  void RetrieveAndInitializeDataForTooltipManipulation();
99  // Member variables
100  Ui::QmitkNavigationToolCreationAdvancedWidgetControls* m_Controls;
101 
103 
107  std::string m_SurfaceNodeName;
108 };
109 #endif // QmitkNavigationToolCreationAdvancedWidget_H
itk::SmartPointer< Self > Pointer
Ui::QmitkNavigationToolCreationAdvancedWidgetControls * m_Controls
An object of this class offers an UI to modify a tooltip of an IGT navigation tool.
mitk::Surface::Pointer m_ManipulatedToolTip
manipulated surface object, which holds the tooltip as geometry