NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkIGIVideoOverlayEditor.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 IGIVideoOverlayEditor_h
16 #define IGIVideoOverlayEditor_h
17 
18 #include <QmitkAbstractRenderEditor.h>
19 #include <mitkILinkedRenderWindowPart.h>
20 #include <service/event/ctkEvent.h>
21 
22 namespace niftk
23 {
24 
25 class IGIVideoOverlayEditorPrivate;
26 class IGIVideoOverlayWidget;
27 
36  : public QmitkAbstractRenderEditor, public mitk::ILinkedRenderWindowPart
37 {
38  Q_OBJECT
39 
40 public:
41 
42  static const char* EDITOR_ID;
43 
45 
47  ~IGIVideoOverlayEditor();
48 
50 
51  // ------------------- mitk::IRenderWindowPart ----------------------
52 
56  QmitkRenderWindow* GetActiveQmitkRenderWindow() const override;
57 
61  QHash<QString,QmitkRenderWindow*> GetQmitkRenderWindows() const override;
62 
66  QmitkRenderWindow* GetQmitkRenderWindow(const QString& id) const override;
67 
71  mitk::Point3D GetSelectedPosition(const QString& id = QString()) const override;
72 
76  void SetSelectedPosition(const mitk::Point3D& pos, const QString& id = QString()) override;
77 
81  void EnableDecorations(bool enable, const QStringList& decorations = QStringList()) override;
82 
86  bool IsDecorationEnabled(const QString& decoration) const override;
87 
91  QStringList GetDecorations() const override;
92 
93  // ------------------- mitk::ILinkedRenderWindowPart ----------------------
94 
98  mitk::SlicesRotator* GetSlicesRotator() const override;
99 
103  mitk::SlicesSwiveller* GetSlicesSwiveller() const override;
104 
108  void EnableSlicingPlanes(bool enable) override;
109 
113  bool IsSlicingPlanesEnabled() const override;
114 
118  void EnableLinkedNavigation(bool enable) override;
119 
123  bool IsLinkedNavigationEnabled() const override;
124 
125 protected:
126 
127  void SetFocus() override;
128  void OnPreferencesChanged(const berry::IBerryPreferences*) override;
129  void CreateQtPartControl(QWidget* parent) override;
130 
131 protected slots:
132 
133  void OnPreferencesChanged();
134 
135 private slots:
136 
140  void OnIGIUpdate(const ctkEvent& event);
141 
142 private:
143 
144  const QScopedPointer<IGIVideoOverlayEditorPrivate> d;
145 
146 };
147 
148 } // end namespace
149 
150 #endif
Definition: niftkBaseSegmentorView.h:30
GLboolean enable
Definition: glew.h:2642
void EnableDecorations(bool enable, const QStringList &decorations=QStringList()) override
Definition: niftkIGIVideoOverlayEditor.cxx:209
mitk::SlicesSwiveller * GetSlicesSwiveller() const override
Definition: niftkIGIVideoOverlayEditor.cxx:237
bool IsLinkedNavigationEnabled() const override
Definition: niftkIGIVideoOverlayEditor.cxx:263
berryObjectMacro(IGIVideoOverlayEditor) IGIVideoOverlayEditor()
mitk::Point3D GetSelectedPosition(const QString &id=QString()) const override
Definition: niftkIGIVideoOverlayEditor.cxx:190
Definition: ReceptorMemberCommandTest.cxx:25
static const char * EDITOR_ID
Definition: niftkIGIVideoOverlayEditor.h:42
Simple editor that delegates all functionality to a niftk::IGIVideoOverlayWidget, and most methods ar...
Definition: niftkIGIVideoOverlayEditor.h:35
void OnPreferencesChanged()
Definition: niftkIGIVideoOverlayEditor.cxx:305
A widget that contains 3 niftk::SingleVideoWidget (left video, right video, rendered data only no vid...
Definition: niftkIGIVideoOverlayWidget.h:34
QmitkRenderWindow * GetActiveQmitkRenderWindow() const override
Definition: niftkIGIVideoOverlayEditor.cxx:169
void EnableSlicingPlanes(bool enable) override
Definition: niftkIGIVideoOverlayEditor.cxx:244
QHash< QString, QmitkRenderWindow * > GetQmitkRenderWindows() const override
Definition: niftkIGIVideoOverlayEditor.cxx:176
void EnableLinkedNavigation(bool enable) override
Definition: niftkIGIVideoOverlayEditor.cxx:257
void SetSelectedPosition(const mitk::Point3D &pos, const QString &id=QString()) override
Definition: niftkIGIVideoOverlayEditor.cxx:202
QmitkRenderWindow * GetQmitkRenderWindow(const QString &id) const override
Definition: niftkIGIVideoOverlayEditor.cxx:183
void SetFocus() override
Definition: niftkIGIVideoOverlayEditor.cxx:378
mitk::SlicesRotator * GetSlicesRotator() const override
Definition: niftkIGIVideoOverlayEditor.cxx:230
bool IsSlicingPlanesEnabled() const override
Definition: niftkIGIVideoOverlayEditor.cxx:250
niftk::IGIVideoOverlayWidget * GetIGIVideoOverlayWidget()
Definition: niftkIGIVideoOverlayEditor.cxx:162
void CreateQtPartControl(QWidget *parent) override
Definition: niftkIGIVideoOverlayEditor.cxx:270
cl_event event
Definition: glew.h:3231
bool IsDecorationEnabled(const QString &decoration) const override
Definition: niftkIGIVideoOverlayEditor.cxx:215
Definition: niftkExceptionObject.h:21
QStringList GetDecorations() const override
Definition: niftkIGIVideoOverlayEditor.cxx:222
PIMPL pattern implementation of IGIVideoOverlayEditor.
Definition: niftkIGIVideoOverlayEditor.cxx:54