NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkVLStandardDisplayEditor.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 niftkVLStandardDisplayEditor_h
16 #define niftkVLStandardDisplayEditor_h
17 
18 #include <QmitkAbstractRenderEditor.h>
19 #include <mitkILinkedRenderWindowPart.h>
20 
21 namespace niftk
22 {
23 
24 class VLStandardDisplayEditorPrivate;
25 class VLStandardDisplayWidget;
26 
35  : public QmitkAbstractRenderEditor, public mitk::ILinkedRenderWindowPart
36 {
37  Q_OBJECT
38 
39 public:
40 
41  static const char* EDITOR_ID;
42 
44 
46  ~VLStandardDisplayEditor();
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<VLStandardDisplayEditorPrivate> d;
137 
138 };
139 
140 } // end namespace
141 
142 #endif
Definition: niftkBaseSegmentorView.h:30
GLboolean enable
Definition: glew.h:2642
Contains 4 coordinated VL views for radiological viewing purposes (e.g. EpiNav project).
Definition: niftkVLStandardDisplayWidget.h:44
QHash< QString, QmitkRenderWindow * > GetQmitkRenderWindows() const override
Definition: niftkVLStandardDisplayEditor.cxx:165
bool IsSlicingPlanesEnabled() const override
Definition: niftkVLStandardDisplayEditor.cxx:239
mitk::Point3D GetSelectedPosition(const QString &id=QString()) const override
Definition: niftkVLStandardDisplayEditor.cxx:179
Simple editor that delegates all functionality to a niftk::VLStandardDisplayWidget, 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: niftkVLStandardDisplayEditor.h:34
mitk::SlicesSwiveller * GetSlicesSwiveller() const override
Definition: niftkVLStandardDisplayEditor.cxx:226
Definition: ReceptorMemberCommandTest.cxx:25
QmitkRenderWindow * GetQmitkRenderWindow(const QString &id) const override
Definition: niftkVLStandardDisplayEditor.cxx:172
mitk::SlicesRotator * GetSlicesRotator() const override
Definition: niftkVLStandardDisplayEditor.cxx:219
QmitkRenderWindow * GetActiveQmitkRenderWindow() const override
Definition: niftkVLStandardDisplayEditor.cxx:158
PIMPL pattern implementation of VLStandardDisplayEditor.
Definition: niftkVLStandardDisplayEditor.cxx:43
void OnPreferencesChanged()
Definition: niftkVLStandardDisplayEditor.cxx:283
bool IsLinkedNavigationEnabled() const override
Definition: niftkVLStandardDisplayEditor.cxx:252
void CreateQtPartControl(QWidget *parent) override
Definition: niftkVLStandardDisplayEditor.cxx:259
void EnableSlicingPlanes(bool enable) override
Definition: niftkVLStandardDisplayEditor.cxx:233
void EnableLinkedNavigation(bool enable) override
Definition: niftkVLStandardDisplayEditor.cxx:246
berryObjectMacro(VLStandardDisplayEditor) VLStandardDisplayEditor()
void SetSelectedPosition(const mitk::Point3D &pos, const QString &id=QString()) override
Definition: niftkVLStandardDisplayEditor.cxx:191
QStringList GetDecorations() const override
Definition: niftkVLStandardDisplayEditor.cxx:211
bool IsDecorationEnabled(const QString &decoration) const override
Definition: niftkVLStandardDisplayEditor.cxx:204
static const char * EDITOR_ID
Definition: niftkVLStandardDisplayEditor.h:41
niftk::VLStandardDisplayWidget * GetVLStandardDisplayWidget()
Definition: niftkVLStandardDisplayEditor.cxx:151
void SetFocus() override
Definition: niftkVLStandardDisplayEditor.cxx:303
Definition: niftkExceptionObject.h:21
void EnableDecorations(bool enable, const QStringList &decorations=QStringList()) override
Definition: niftkVLStandardDisplayEditor.cxx:198