NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
PointRegView.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 PointRegView_h
16 #define PointRegView_h
17 
18 #include <niftkBaseView.h>
19 #include <service/event/ctkEvent.h>
20 #include "ui_PointRegView.h"
21 #include <vtkSmartPointer.h>
22 
23 class vtkMatrix4x4;
24 
35 {
40  Q_OBJECT
41 
42 public:
43 
44  PointRegView();
45  virtual ~PointRegView();
46 
50  static const std::string VIEW_ID;
51 
56  virtual std::string GetViewID() const;
57 
58 protected:
59 
63  virtual void CreateQtPartControl(QWidget *parent) override;
64 
68  virtual void SetFocus() override;
69 
70 protected slots:
71 
72 protected:
73 
74 private slots:
75 
76  void OnCalculateButtonPressed();
77  void OnComposeWithDataButtonPressed();
78  void OnSaveToFileButtonPressed();
79 
80 private:
81 
85  void RetrievePreferenceValues();
86 
90  virtual void OnPreferencesChanged(const berry::IBerryPreferences*) override;
91 
95  Ui::PointRegView *m_Controls;
96  vtkSmartPointer<vtkMatrix4x4> m_Matrix;
97  bool m_UseICPInitialisation;
98  bool m_UsePointIDToMatch;
99 };
100 
101 #endif // PointRegView_h
virtual void CreateQtPartControl(QWidget *parent) override
Called by framework, this method creates all the controls for this view.
Definition: PointRegView.cxx:60
virtual void SetFocus() override
Called by framework, sets the focus on a specific widget.
Definition: PointRegView.cxx:241
PointRegView()
Definition: PointRegView.cxx:31
Base view component for plugins listening to visibility change events, focus changed events and so on...
Definition: niftkBaseView.h:47
virtual ~PointRegView()
Definition: PointRegView.cxx:43
User interface to provide controls point based registration.
Definition: PointRegView.h:34
static const std::string VIEW_ID
Static view ID = uk.ac.ucl.cmic.igipointreg.
Definition: PointRegView.h:50
GLsizei const GLcharARB ** string
Definition: glew.h:5194
virtual std::string GetViewID() const
Returns the view ID.
Definition: PointRegView.cxx:53