NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkIGIVideoOverlayWidget.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 niftkIGIVideoOverlayWidget_h
16 #define niftkIGIVideoOverlayWidget_h
17 
18 #include "ui_niftkIGIVideoOverlayWidget.h"
19 #include "niftkIGIOverlayEditorExports.h"
20 #include <QWidget>
21 #include <mitkColorProperty.h>
22 #include <mitkDataStorage.h>
23 
24 class QmitkRenderWindow;
25 
26 namespace niftk
27 {
34 class NIFTKIGIOVERLAYEDITOR_EXPORT IGIVideoOverlayWidget : public QWidget,
35  public Ui_IGIVideoOverlayWidget
36 {
37 
38  Q_OBJECT
39 
40 public:
41 
42  IGIVideoOverlayWidget(QWidget *parent);
43  virtual ~IGIVideoOverlayWidget();
44 
45  //-------------- Start of methods required by IGIVideoOverlayWidget --------------
46 
47  void SetDataStorage(mitk::DataStorage* storage);
48 
52  QmitkRenderWindow* GetActiveQmitkRenderWindow() const;
53 
58  QHash<QString, QmitkRenderWindow *> GetQmitkRenderWindows() const;
59 
65  QmitkRenderWindow* GetQmitkRenderWindow(const QString &id) const;
66 
70  void SetDepartmentLogoPath(const QString& path);
71 
75  void EnableDepartmentLogo();
76 
80  void DisableDepartmentLogo();
81 
85  void SetGradientBackgroundColors(const mitk::Color& colour1, const mitk::Color& colour2);
86 
90  void EnableGradientBackground();
91 
95  void DisableGradientBackground();
96 
100  void Update();
101 
105  void SetEyeHandFileName(const std::string& fileName);
106 
107  //-------------- End of methods required by IGIVideoOverlayWidget --------------
108 
109 private slots:
110 
111  void OnLeftOverlayCheckBoxChecked(bool);
112  void OnRightOverlayCheckBoxChecked(bool);
113  void On3DViewerCheckBoxChecked(bool);
114  void OnTrackedViewerCheckBoxChecked(bool);
115  void OnOpacitySliderMoved(int);
116  void OnLeftImageSelected(const mitk::DataNode* node);
117  void OnRightImageSelected(const mitk::DataNode* node);
118  void OnTransformSelected(const mitk::DataNode* node);
119 
120 private:
121 
122  IGIVideoOverlayWidget(const IGIVideoOverlayWidget&); // Purposefully not implemented.
123  void operator=(const IGIVideoOverlayWidget&); // Purposefully not implemented.
124 
125  mitk::DataStorage::Pointer m_DataStorage;
126 };
127 
128 } // end namespace
129 
130 #endif
GLsizei const GLchar ** path
Definition: glew.h:5384
A widget that contains 3 niftk::SingleVideoWidget (left video, right video, rendered data only no vid...
Definition: niftkIGIVideoOverlayWidget.h:34
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194