Medical Imaging Interaction Toolkit  2023.12.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 
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::AnatomicalPlane& orientation) const override;
65  void InitializeViews(const mitk::TimeGeometry* geometry, bool resetCamera) override;
69  void SetInteractionReferenceGeometry(const mitk::TimeGeometry* referenceGeometry) override;
73  bool HasCoupledRenderWindows() const override;
77  virtual mitk::Point3D GetSelectedPosition(const QString& id = QString()) const override;
81  virtual void SetSelectedPosition(const mitk::Point3D& pos, const QString& id = QString()) override;
85  virtual void EnableDecorations(bool enable, const QStringList& decorations = QStringList()) override;
89  virtual bool IsDecorationEnabled(const QString& decoration) const override;
93  virtual QStringList GetDecorations() const 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
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:43
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
mitk::AnatomicalPlane
AnatomicalPlane
Definition: mitkAnatomicalPlanes.h:18
QmitkAbstractMultiWidgetEditor::EDITOR_ID
static const QString EDITOR_ID
Definition: QmitkAbstractMultiWidgetEditor.h:41
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 withing a render window.
mitk::IRenderWindowPart::EnableDecorations
virtual void EnableDecorations(bool enable, const QStringList &decorations=QStringList())=0
QmitkAbstractMultiWidgetEditor
Definition: QmitkAbstractMultiWidgetEditor.h:33