NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkIGIUltrasoundOverlayWidget.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 niftkIGIUltrasoundOverlayWidget_h
16 #define niftkIGIUltrasoundOverlayWidget_h
17 
18 #include "ui_niftkIGIUltrasoundOverlayWidget.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 {
33 class NIFTKIGIOVERLAYEDITOR_EXPORT IGIUltrasoundOverlayWidget : public QWidget,
34  public Ui_IGIUltrasoundOverlayWidget
35 {
36 
37  Q_OBJECT
38 
39 public:
40 
41  IGIUltrasoundOverlayWidget(QWidget *parent);
42  virtual ~IGIUltrasoundOverlayWidget();
43 
47  QmitkRenderWindow* GetActiveQmitkRenderWindow() const;
48 
53  QHash<QString, QmitkRenderWindow *> GetQmitkRenderWindows() const;
54 
60  QmitkRenderWindow* GetQmitkRenderWindow(const QString &id) const;
61 
65  void SetDepartmentLogoPath(const QString& path);
66 
70  void EnableDepartmentLogo();
71 
75  void DisableDepartmentLogo();
76 
80  void SetGradientBackgroundColors(const mitk::Color& colour1, const mitk::Color& colour2);
81 
85  void EnableGradientBackground();
86 
90  void DisableGradientBackground();
91 
95  void SetDataStorage(mitk::DataStorage* storage);
96 
100  void Update();
101 
105  void SetClipToImagePlane(const bool& clipToImagePlane);
106 
107 private slots:
108 
109  void OnLeftOverlayCheckBoxChecked(bool);
110  void On3DViewerCheckBoxChecked(bool);
111  void OnLeftImageSelected(const mitk::DataNode* node);
112 
113 private:
114 
115  IGIUltrasoundOverlayWidget(const IGIUltrasoundOverlayWidget&); // Purposefully not implemented.
116  void operator=(const IGIUltrasoundOverlayWidget&); // Purposefully not implemented.
117 
118  mitk::DataStorage::Pointer m_DataStorage;
119 };
120 
121 } // end namespace
122 
123 #endif
A widget that contains a niftk::SingleVideoWidget and a QmitkRenderWindow, (all set to render 3D mode...
Definition: niftkIGIUltrasoundOverlayWidget.h:33
GLsizei const GLchar ** path
Definition: glew.h:5384
Definition: niftkExceptionObject.h:21