Medical Imaging Interaction Toolkit  2024.06.00
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 
33 
35 {
36  Q_OBJECT
37 
38 public:
39 
41 
42  static const QString EDITOR_ID;
43 
45  virtual ~QmitkAbstractMultiWidgetEditor() override;
46 
50  virtual QmitkRenderWindow* GetActiveQmitkRenderWindow() const override;
54  virtual QHash<QString, QmitkRenderWindow*> GetQmitkRenderWindows() const override;
58  virtual QmitkRenderWindow* GetQmitkRenderWindow(const QString& id) const override;
62  virtual QmitkRenderWindow* GetQmitkRenderWindow(const mitk::AnatomicalPlane& orientation) const override;
66  void InitializeViews(const mitk::TimeGeometry* geometry, bool resetCamera) override;
70  void SetInteractionReferenceGeometry(const mitk::TimeGeometry* referenceGeometry) override;
74  bool HasCoupledRenderWindows() const override;
78  virtual mitk::Point3D GetSelectedPosition(const QString& id = QString()) const override;
82  virtual void SetSelectedPosition(const mitk::Point3D& pos, const QString& id = QString()) override;
86  virtual void EnableDecorations(bool enable, const QStringList& decorations = QStringList()) override;
90  virtual bool IsDecorationEnabled(const QString& decoration) const override;
94  virtual QStringList GetDecorations() const override;
98  virtual QmitkRenderWindow* GetQmitkRenderWindowByIndex(int index) const;
102  virtual QmitkRenderWindow* GetQmitkRenderWindowByIndex(int row, int column) const;
106  virtual void SetMultiWidget(QmitkAbstractMultiWidget* multiWidget);
110  virtual QmitkAbstractMultiWidget* GetMultiWidget() const;
114  virtual int GetRowCount() const;
118  virtual int GetColumnCount() const;
119 
120  virtual QmitkLevelWindowWidget* GetLevelWindowWidget() const = 0;
121 
122 public Q_SLOTS:
129  virtual void OnLayoutSet(int row, int column);
130  virtual void OnSynchronize(bool synchronized);
131  virtual void OnInteractionSchemeChanged(mitk::InteractionSchemeSwitcher::InteractionScheme scheme);
132 
133 protected:
134  QmitkMultiWidgetDecorationManager* GetDecorationManager() const;
135 
136 private:
137 
138  struct Impl;
139  std::unique_ptr<Impl> m_Impl;
140 
141 };
142 
143 #endif
QmitkLevelWindowWidget
Definition: QmitkLevelWindowWidget.h:28
MITK_QT_COMMON
#define MITK_QT_COMMON
Definition: org_mitk_gui_qt_common_Export.h:26
mitk::InteractionSchemeSwitcher::InteractionScheme
InteractionScheme
Definition: mitkInteractionSchemeSwitcher.h:114
berryIPartListener.h
mitk::TimeGeometry
Definition: mitkTimeGeometry.h:45
QmitkAbstractRenderEditor
A convenient base class for MITK render window BlueBerry Editors.
Definition: QmitkAbstractRenderEditor.h:61
mitkInteractionSchemeSwitcher.h
QmitkRenderWindow
MITK implementation of the QVTKWidget.
Definition: QmitkRenderWindow.h:38
QmitkAbstractRenderEditor::berryObjectMacro
berryObjectMacro(QmitkAbstractRenderEditor, QtEditorPart, mitk::IRenderWindowPart)
mitk::IRenderWindowPart::GetQmitkRenderWindow
virtual QmitkRenderWindow * GetQmitkRenderWindow(const QString &id) const =0
mitk::IRenderWindowPart::GetDecorations
virtual QStringList GetDecorations() const =0
berry::IPartListener
Definition: berryIPartListener.h:34
mitk::IRenderWindowPart::InitializeViews
virtual void InitializeViews(const mitk::TimeGeometry *geometry, bool resetCamera)=0
Initialize the render windows of this render window part to the given geometry.
mitk::IRenderWindowPart::GetSelectedPosition
virtual mitk::Point3D GetSelectedPosition(const QString &id=QString()) const =0
QmitkMultiWidgetDecorationManager
Definition: QmitkMultiWidgetDecorationManager.h:45
mitk::AnatomicalPlane
AnatomicalPlane
Definition: mitkAnatomicalPlanes.h:18
QmitkAbstractMultiWidgetEditor::EDITOR_ID
static const QString EDITOR_ID
Definition: QmitkAbstractMultiWidgetEditor.h:42
mitk::IRenderWindowPart::IsDecorationEnabled
virtual bool IsDecorationEnabled(const QString &decoration) const =0
mitk::Point< ScalarType, 3 >
mitk::IRenderWindowPart::SetSelectedPosition
virtual void SetSelectedPosition(const mitk::Point3D &pos, const QString &id=QString())=0
QmitkAbstractRenderEditor.h
mitk::IRenderWindowPart::GetQmitkRenderWindows
virtual QHash< QString, QmitkRenderWindow * > GetQmitkRenderWindows() const =0
QmitkAbstractMultiWidget
The 'QmitkAbstractMultiWidget' is a 'QWidget' that can be subclassed to display multiple render windo...
Definition: QmitkAbstractMultiWidget.h:53
mitk::IRenderWindowPart::GetActiveQmitkRenderWindow
virtual QmitkRenderWindow * GetActiveQmitkRenderWindow() const =0
mitk::IRenderWindowPart::HasCoupledRenderWindows
virtual bool HasCoupledRenderWindows() const =0
Returns true if the render windows are coupled; false if not.
org_mitk_gui_qt_common_Export.h
mitk::IRenderWindowPart::SetInteractionReferenceGeometry
virtual void SetInteractionReferenceGeometry(const mitk::TimeGeometry *referenceGeometry)=0
Define the reference geometry for interaction within a render window.
mitk::IRenderWindowPart::EnableDecorations
virtual void EnableDecorations(bool enable, const QStringList &decorations=QStringList())=0
QmitkAbstractMultiWidgetEditor
Definition: QmitkAbstractMultiWidgetEditor.h:34