NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkIGIUltrasoundOverlayEditor.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 IGIUltrasoundOverlayEditor_h
16 #define IGIUltrasoundOverlayEditor_h
17 
18 #include <QmitkAbstractRenderEditor.h>
19 #include <mitkILinkedRenderWindowPart.h>
20 #include <service/event/ctkEvent.h>
21 
22 namespace niftk
23 {
24 
25 class IGIUltrasoundOverlayEditorPrivate;
26 class IGIUltrasoundOverlayWidget;
27 
36  : public QmitkAbstractRenderEditor, public mitk::ILinkedRenderWindowPart
37 {
38  Q_OBJECT
39 
40 public:
41 
42  static const char* EDITOR_ID;
43 
45 
47  ~IGIUltrasoundOverlayEditor();
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  void WriteCurrentConfig(const QString& directory) const;
132 
133 protected slots:
134 
135  void OnPreferencesChanged();
136 
137 private slots:
138 
142  void OnIGIUpdate(const ctkEvent& event);
143 
144 private:
145 
146  const QScopedPointer<IGIUltrasoundOverlayEditorPrivate> d;
147 
148 };
149 
150 } // end namespace
151 
152 #endif
A widget that contains a niftk::SingleVideoWidget and a QmitkRenderWindow, (all set to render 3D mode...
Definition: niftkIGIUltrasoundOverlayWidget.h:33
Definition: niftkBaseSegmentorView.h:30
void SetSelectedPosition(const mitk::Point3D &pos, const QString &id=QString()) override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:202
niftk::IGIUltrasoundOverlayWidget * GetIGIUltrasoundOverlayWidget()
Definition: niftkIGIUltrasoundOverlayEditor.cxx:162
GLboolean enable
Definition: glew.h:2642
bool IsLinkedNavigationEnabled() const override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:263
QmitkRenderWindow * GetQmitkRenderWindow(const QString &id) const override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:183
void EnableSlicingPlanes(bool enable) override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:244
bool IsDecorationEnabled(const QString &decoration) const override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:215
PIMPL pattern implementation of IGIUltrasoundOverlayEditor.
Definition: niftkIGIUltrasoundOverlayEditor.cxx:54
bool IsSlicingPlanesEnabled() const override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:250
Definition: ReceptorMemberCommandTest.cxx:25
Simple editor that delegates all functionality to a niftk::IGIUltrasoundOverlayWidget, and most methods are dummy or do-nothing implementations, as the widget is for a very specific purpose and most of the mitk::ILinkedRenderWindowPart are not needed.
Definition: niftkIGIUltrasoundOverlayEditor.h:35
QStringList GetDecorations() const override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:222
void WriteCurrentConfig(const QString &directory) const
mitk::Point3D GetSelectedPosition(const QString &id=QString()) const override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:190
QHash< QString, QmitkRenderWindow * > GetQmitkRenderWindows() const override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:176
void OnPreferencesChanged()
Definition: niftkIGIUltrasoundOverlayEditor.cxx:304
QmitkRenderWindow * GetActiveQmitkRenderWindow() const override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:169
berryObjectMacro(IGIUltrasoundOverlayEditor) IGIUltrasoundOverlayEditor()
cl_event event
Definition: glew.h:3231
mitk::SlicesSwiveller * GetSlicesSwiveller() const override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:237
void CreateQtPartControl(QWidget *parent) override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:270
void EnableDecorations(bool enable, const QStringList &decorations=QStringList()) override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:209
void EnableLinkedNavigation(bool enable) override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:257
void SetFocus() override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:375
Definition: niftkExceptionObject.h:21
mitk::SlicesRotator * GetSlicesRotator() const override
Definition: niftkIGIUltrasoundOverlayEditor.cxx:230
static const char * EDITOR_ID
Definition: niftkIGIUltrasoundOverlayEditor.h:42