Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
Medical Imaging Interaction Toolkit
QmitkAbstractMultiWidgetEditor.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QMITKABSTRACTMULTIWIDGETEDITOR_H
14 #define QMITKABSTRACTMULTIWIDGETEDITOR_H
15 
17 
18 // org mitk gui qt common plugin
20 
21 // mitk core
23 
24 // berry
25 #include <berryIPartListener.h>
26 
27 // c++
28 #include <memory>
29 
32 
34 {
35  Q_OBJECT
36 
37 public:
38 
40 
41  static const QString EDITOR_ID;
42 
44  virtual ~QmitkAbstractMultiWidgetEditor() override;
45 
49  virtual QmitkRenderWindow* GetActiveQmitkRenderWindow() const override;
53  virtual QHash<QString, QmitkRenderWindow*> GetQmitkRenderWindows() const override;
57  virtual QmitkRenderWindow* GetQmitkRenderWindow(const QString& id) const override;
61  virtual QmitkRenderWindow* GetQmitkRenderWindow(const mitk::BaseRenderer::ViewDirection& viewDirection) const override;
65  virtual mitk::Point3D GetSelectedPosition(const QString& id = QString()) const override;
69  virtual void SetSelectedPosition(const mitk::Point3D& pos, const QString& id = QString()) override;
73  virtual void EnableDecorations(bool enable, const QStringList& decorations = QStringList()) override;
77  virtual bool IsDecorationEnabled(const QString& decoration) const override;
81  virtual QStringList GetDecorations() const override;
85  virtual berry::IPartListener::Events::Types GetPartEventTypes() const override;
89  virtual void PartOpened(const berry::IWorkbenchPartReference::Pointer& partRef) override;
93  virtual void PartClosed(const berry::IWorkbenchPartReference::Pointer& partRef) override;
97  virtual QmitkRenderWindow* GetQmitkRenderWindowByIndex(int index) const;
101  virtual QmitkRenderWindow* GetQmitkRenderWindowByIndex(int row, int column) const;
105  virtual void SetMultiWidget(QmitkAbstractMultiWidget* multiWidget);
109  virtual QmitkAbstractMultiWidget* GetMultiWidget() const;
113  virtual int GetRowCount() const;
117  virtual int GetColumnCount() const;
118 
119  virtual QmitkLevelWindowWidget* GetLevelWindowWidget() const = 0;
120 
121 public Q_SLOTS:
128  virtual void OnLayoutSet(int row, int column);
129  virtual void OnSynchronize(bool synchronized);
130  virtual void OnInteractionSchemeChanged(mitk::InteractionSchemeSwitcher::InteractionScheme scheme);
131 
132 private:
133 
134  struct Impl;
135  std::unique_ptr<Impl> m_Impl;
136 
137 };
138 
139 #endif // QMITKABSTRACTMULTIWIDGETEDITOR_H
virtual QmitkRenderWindow * GetQmitkRenderWindow(const QString &id) const =0
virtual QHash< QString, QmitkRenderWindow * > GetQmitkRenderWindows() const =0
virtual void PartOpened(const IWorkbenchPartReference::Pointer &)
virtual bool IsDecorationEnabled(const QString &decoration) const =0
virtual void SetSelectedPosition(const mitk::Point3D &pos, const QString &id=QString())=0
berryObjectMacro(QmitkAbstractRenderEditor, QtEditorPart, mitk::IRenderWindowPart)
virtual QmitkRenderWindow * GetActiveQmitkRenderWindow() const =0
MITK implementation of the QVTKWidget.
virtual QStringList GetDecorations() const =0
virtual mitk::Point3D GetSelectedPosition(const QString &id=QString()) const =0
virtual void PartClosed(const IWorkbenchPartReference::Pointer &)
ViewDirection
Possible view directions for render windows.
A convenient base class for MITK render window BlueBerry Editors.
#define MITK_QT_COMMON
The &#39;QmitkAbstractMultiWidget&#39; is a &#39;QWidget&#39; that can be subclassed to display multiple render windo...
virtual Events::Types GetPartEventTypes() const =0
virtual void EnableDecorations(bool enable, const QStringList &decorations=QStringList())=0