NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkIGIVLVideoOverlayEditor.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 niftkIGIVLVideoOverlayEditor_h
16 #define niftkIGIVLVideoOverlayEditor_h
17 
18 #include <QmitkAbstractRenderEditor.h>
19 #include <mitkILinkedRenderWindowPart.h>
20 
21 namespace niftk
22 {
23 
24 class IGIVLVideoOverlayEditorPrivate;
25 class VLVideoOverlayWidget;
26 
35  : public QmitkAbstractRenderEditor, public mitk::ILinkedRenderWindowPart
36 {
37  Q_OBJECT
38 
39 public:
40 
41  static const char* EDITOR_ID;
42 
44 
46  ~IGIVLVideoOverlayEditor();
47 
49 
50  // ------------------- mitk::IRenderWindowPart ----------------------
51 
55  QmitkRenderWindow* GetActiveQmitkRenderWindow() const override;
56 
60  QHash<QString,QmitkRenderWindow*> GetQmitkRenderWindows() const override;
61 
65  QmitkRenderWindow* GetQmitkRenderWindow(const QString& id) const override;
66 
70  mitk::Point3D GetSelectedPosition(const QString& id = QString()) const override;
71 
75  void SetSelectedPosition(const mitk::Point3D& pos, const QString& id = QString()) override;
76 
80  void EnableDecorations(bool enable, const QStringList& decorations = QStringList()) override;
81 
85  bool IsDecorationEnabled(const QString& decoration) const override;
86 
90  QStringList GetDecorations() const override;
91 
92  // ------------------- mitk::ILinkedRenderWindowPart ----------------------
93 
97  mitk::SlicesRotator* GetSlicesRotator() const override;
98 
102  mitk::SlicesSwiveller* GetSlicesSwiveller() const override;
103 
107  void EnableSlicingPlanes(bool enable) override;
108 
112  bool IsSlicingPlanesEnabled() const override;
113 
117  void EnableLinkedNavigation(bool enable) override;
118 
122  bool IsLinkedNavigationEnabled() const override;
123 
124 protected:
125 
126  void SetFocus() override;
127  void OnPreferencesChanged(const berry::IBerryPreferences*) override;
128  void CreateQtPartControl(QWidget* parent) override;
129 
130 protected slots:
131 
132  void OnPreferencesChanged();
133 
134 private:
135 
136  const QScopedPointer<IGIVLVideoOverlayEditorPrivate> d;
137 
138 };
139 
140 } // end namespace
141 
142 #endif
void EnableSlicingPlanes(bool enable) override
Definition: niftkIGIVLVideoOverlayEditor.cxx:235
Definition: niftkBaseSegmentorView.h:30
GLboolean enable
Definition: glew.h:2642
QmitkRenderWindow * GetQmitkRenderWindow(const QString &id) const override
Definition: niftkIGIVLVideoOverlayEditor.cxx:174
static const char * EDITOR_ID
Definition: niftkIGIVLVideoOverlayEditor.h:41
bool IsDecorationEnabled(const QString &decoration) const override
Definition: niftkIGIVLVideoOverlayEditor.cxx:206
void OnPreferencesChanged()
Definition: niftkIGIVLVideoOverlayEditor.cxx:285
mitk::Point3D GetSelectedPosition(const QString &id=QString()) const override
Definition: niftkIGIVLVideoOverlayEditor.cxx:181
void EnableDecorations(bool enable, const QStringList &decorations=QStringList()) override
Definition: niftkIGIVLVideoOverlayEditor.cxx:200
Definition: ReceptorMemberCommandTest.cxx:25
PIMPL pattern implementation of IGIVLVideoOverlayEditor.
Definition: niftkIGIVLVideoOverlayEditor.cxx:45
niftk::VLVideoOverlayWidget * GetVLVideoOverlayWidget()
Definition: niftkIGIVLVideoOverlayEditor.cxx:153
berryObjectMacro(IGIVLVideoOverlayEditor) IGIVLVideoOverlayEditor()
QmitkRenderWindow * GetActiveQmitkRenderWindow() const override
Definition: niftkIGIVLVideoOverlayEditor.cxx:160
void SetSelectedPosition(const mitk::Point3D &pos, const QString &id=QString()) override
Definition: niftkIGIVLVideoOverlayEditor.cxx:193
Simple editor that delegates all functionality to a niftk::VLVideoOverlayWidget, and most methods are...
Definition: niftkIGIVLVideoOverlayEditor.h:34
mitk::SlicesSwiveller * GetSlicesSwiveller() const override
Definition: niftkIGIVLVideoOverlayEditor.cxx:228
void SetFocus() override
Definition: niftkIGIVLVideoOverlayEditor.cxx:308
QStringList GetDecorations() const override
Definition: niftkIGIVLVideoOverlayEditor.cxx:213
QHash< QString, QmitkRenderWindow * > GetQmitkRenderWindows() const override
Definition: niftkIGIVLVideoOverlayEditor.cxx:167
void EnableLinkedNavigation(bool enable) override
Definition: niftkIGIVLVideoOverlayEditor.cxx:248
Contains 4 coordinated VL views for AR purposes (e.g. liver project).
Definition: niftkVLVideoOverlayWidget.h:45
bool IsLinkedNavigationEnabled() const override
Definition: niftkIGIVLVideoOverlayEditor.cxx:254
mitk::SlicesRotator * GetSlicesRotator() const override
Definition: niftkIGIVLVideoOverlayEditor.cxx:221
Definition: niftkExceptionObject.h:21
void CreateQtPartControl(QWidget *parent) override
Definition: niftkIGIVLVideoOverlayEditor.cxx:261
bool IsSlicingPlanesEnabled() const override
Definition: niftkIGIVLVideoOverlayEditor.cxx:241