NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
PivotCalibrationView.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef PivotCalibrationView_h
16 #define PivotCalibrationView_h
17 
18 #include <niftkBaseView.h>
19 #include "ui_PivotCalibrationView.h"
20 
21 #include <vtkSmartPointer.h>
22 #include <vtkMatrix4x4.h>
23 
24 #include <service/event/ctkEvent.h>
25 
26 
34 {
39  Q_OBJECT
40 
41 public:
42 
44  virtual ~PivotCalibrationView();
45 
49  static const char* VIEW_ID;
50 
55  virtual std::string GetViewID() const;
56 
57 
58 protected:
59 
63  virtual void CreateQtPartControl(QWidget *parent) override;
64 
68  virtual void SetFocus() override;
69 
70 signals:
71 
72 
73 protected slots:
74 
75 
76 protected:
77 
78 
79 private slots:
80 
81  void DataStorageEventListener(const mitk::DataNode* node);
82 
83  void OnPivotCalibrationButtonClicked();
84  void OnSaveToFileButtonClicked();
85 
86 private:
87 
88 
92  Ui::PivotCalibrationView *m_Controls;
93  vtkSmartPointer<vtkMatrix4x4> m_Matrix;
94 
95  std::string m_OutputDirectory;
96 };
97 
98 #endif // PivotCalibrationView_h
virtual void SetFocus() override
Called by framework, sets the focus on a specific widget.
Definition: PivotCalibrationView.cxx:172
virtual std::string GetViewID() const
Returns the view ID.
Definition: PivotCalibrationView.cxx:179
static const char * VIEW_ID
Static view ID = uk.ac.ucl.cmic.igiultrasoundctreg.
Definition: PivotCalibrationView.h:49
virtual void CreateQtPartControl(QWidget *parent) override
Called by framework, this method creates all the controls for this view.
Definition: PivotCalibrationView.cxx:83
PivotCalibrationView()
Definition: PivotCalibrationView.cxx:57
Base view component for plugins listening to visibility change events, focus changed events and so on...
Definition: niftkBaseView.h:47
virtual ~PivotCalibrationView()
Definition: PivotCalibrationView.cxx:67
GLsizei const GLcharARB ** string
Definition: glew.h:5194
User interface to provide controls for Ultrasound CT registration.
Definition: PivotCalibrationView.h:33