NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
RMSErrorView.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 RMSErrorView_h
16 #define RMSErrorView_h
17 
18 #include <niftkBaseView.h>
19 #include <service/event/ctkEvent.h>
20 #include <QmitkRMSErrorWidget.h>
21 
28 {
29  // this is needed for all Qt objects that should have a Qt meta-object
30  // (everything that derives from QObject and wants to have signal/slots)
31  Q_OBJECT
32 
33 public:
34 
35  RMSErrorView();
36  virtual ~RMSErrorView();
37 
41  static const std::string VIEW_ID;
42 
46  virtual std::string GetViewID() const;
47 
48 protected:
49 
53  virtual void CreateQtPartControl(QWidget *parent) override;
54 
58  virtual void SetFocus() override;
59 
60 private slots:
61 
65  void OnUpdate(const ctkEvent& event);
66 
67 private:
68 
72  QmitkRMSErrorWidget *m_Controls;
73 };
74 
75 #endif // RMSErrorView_h
virtual ~RMSErrorView()
Definition: RMSErrorView.cxx:34
RMSErrorView()
Definition: RMSErrorView.cxx:27
Simple helper widget to allow user to select targets and moving points, and every time you set a tran...
Definition: QmitkRMSErrorWidget.h:29
static const std::string VIEW_ID
Static view ID = uk.ac.ucl.cmic.igirmserror.
Definition: RMSErrorView.h:41
User interface to simply setup the QmitkRMSErrorWidget.
Definition: RMSErrorView.h:27
virtual void SetFocus() override
Called by framework, sets the focus on a specific widget.
Definition: RMSErrorView.cxx:76
virtual std::string GetViewID() const
Returns the view ID.
Definition: RMSErrorView.cxx:44
virtual void CreateQtPartControl(QWidget *parent) override
Called by framework, this method creates all the controls for this view.
Definition: RMSErrorView.cxx:51
Base view component for plugins listening to visibility change events, focus changed events and so on...
Definition: niftkBaseView.h:47
cl_event event
Definition: glew.h:3231
GLsizei const GLcharARB ** string
Definition: glew.h:5194