NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
TrackedImageView.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 TrackedImageView_h
16 #define TrackedImageView_h
17 
18 #include <niftkBaseView.h>
19 
20 #include "ui_TrackedImageView.h"
21 #include <service/event/ctkEvent.h>
22 #include <vtkSmartPointer.h>
23 
24 class vtkMatrix4x4;
25 
36 {
37  // this is needed for all Qt objects that should have a Qt meta-object
38  // (everything that derives from QObject and wants to have signal/slots)
39  Q_OBJECT
40 
41 public:
42 
44  virtual ~TrackedImageView();
45 
49  static const std::string VIEW_ID;
50 
55  virtual std::string GetViewID() const;
56 
57 protected:
58 
62  virtual void CreateQtPartControl(QWidget *parent) override;
63 
67  virtual void SetFocus() override;
68 
69 signals:
70 
74  void Updated(const ctkDictionary&);
75 
76 protected slots:
77 
82 
83 protected:
84 
85 private slots:
86 
90  void OnUpdate(const ctkEvent& event);
91 
92 private:
93 
97  void RetrievePreferenceValues();
98 
102  virtual void OnPreferencesChanged(const berry::IBerryPreferences*) override;
103 
107  Ui::TrackedImageView *m_Controls;
108 
112  vtkSmartPointer<vtkMatrix4x4> m_ImageToTrackingSensorTransform;
113  vtkSmartPointer<vtkMatrix4x4> m_EmToOpticalMatrix;
114 
115  bool m_ShowCloneImageGroup;
116  int m_NameCounter;
117  bool m_Show2DWindow;
118 };
119 
120 #endif // TrackedImageView_h
void OnClonePushButtonClicked()
Creates copies of the image, and mappers to display them.
Definition: TrackedImageView.cxx:232
static const std::string VIEW_ID
Static view ID = uk.ac.ucl.cmic.igitrackedimage.
Definition: TrackedImageView.h:49
virtual void CreateQtPartControl(QWidget *parent) override
Called by framework, this method creates all the controls for this view.
Definition: TrackedImageView.cxx:73
Coordinates an image moving via a tracking transform.
Definition: TrackedImageView.h:35
TrackedImageView()
Definition: TrackedImageView.cxx:46
Base view component for plugins listening to visibility change events, focus changed events and so on...
Definition: niftkBaseView.h:47
virtual std::string GetViewID() const
Returns the view ID.
Definition: TrackedImageView.cxx:66
cl_event event
Definition: glew.h:3231
virtual ~TrackedImageView()
Definition: TrackedImageView.cxx:56
GLsizei const GLcharARB ** string
Definition: glew.h:5194
void Updated(const ctkDictionary &)
We publish an update signal on topic "uk/ac/ucl/cmic/IGITRACKEDIMAGEUPDATE" onto the Event Bus so tha...
virtual void SetFocus() override
Called by framework, sets the focus on a specific widget.
Definition: TrackedImageView.cxx:190