Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkIRenderWindowPart.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 mitkIRenderWindowPart_h
14 #define mitkIRenderWindowPart_h
15 
16 #include <QString>
17 #include <QStringList>
18 #include <QHash>
19 #include <QtPlugin>
20 
21 #include <mitkBaseRenderer.h>
22 #include <mitkNumericTypes.h>
23 #include <mitkRenderingManager.h>
24 
26 
27 class QmitkRenderWindow;
28 
29 namespace mitk {
30 
31 struct IRenderingManager;
32 class TimeNavigationController;
33 
55 
56  static const QString DECORATION_BORDER; // = "border"
57  static const QString DECORATION_LOGO; // = "logo"
58  static const QString DECORATION_MENU; // = "menu"
59  static const QString DECORATION_BACKGROUND; // = "background"
60  static const QString DECORATION_CORNER_ANNOTATION; // = "corner annotation"
61 
62  virtual ~IRenderWindowPart();
63 
71  virtual QmitkRenderWindow* GetActiveQmitkRenderWindow() const = 0;
72 
78  virtual QHash<QString,QmitkRenderWindow*> GetQmitkRenderWindows() const = 0;
79 
86  virtual QmitkRenderWindow* GetQmitkRenderWindow(const QString& id) const = 0;
87 
94  virtual QmitkRenderWindow* GetQmitkRenderWindow(const mitk::AnatomicalPlane& orientation) const = 0;
95 
102  virtual mitk::IRenderingManager* GetRenderingManager() const = 0;
103 
110  virtual void RequestUpdate(mitk::RenderingManager::RequestType requestType = mitk::RenderingManager::REQUEST_UPDATE_ALL) = 0;
111 
118  virtual void ForceImmediateUpdate(mitk::RenderingManager::RequestType requestType = mitk::RenderingManager::REQUEST_UPDATE_ALL) = 0;
119 
129  virtual void InitializeViews(const mitk::TimeGeometry* geometry, bool resetCamera) = 0;
130 
141  virtual void SetInteractionReferenceGeometry(const mitk::TimeGeometry* referenceGeometry) = 0;
142 
149  virtual bool HasCoupledRenderWindows() const = 0;
150 
157  virtual mitk::TimeNavigationController* GetTimeNavigationController() const = 0;
158 
166  virtual mitk::Point3D GetSelectedPosition(const QString& id = QString()) const = 0;
167 
175  virtual void SetSelectedPosition(const mitk::Point3D& pos, const QString& id = QString()) = 0;
176 
184  virtual TimePointType GetSelectedTimePoint(const QString& id = QString()) const = 0;
185 
198  virtual void EnableDecorations(bool enable, const QStringList& decorations = QStringList()) = 0;
199 
208  virtual bool IsDecorationEnabled(const QString& decoration) const = 0;
209 
223  virtual QStringList GetDecorations() const = 0;
224 };
225 
226 }
227 
228 Q_DECLARE_INTERFACE(mitk::IRenderWindowPart, "org.mitk.ui.IRenderWindowPart")
229 
230 #endif
mitk::TimeNavigationController
Controls the time-related properties of the time stepper, according to the given input world time geo...
Definition: mitkTimeNavigationController.h:69
mitk::TimeGeometry
Definition: mitkTimeGeometry.h:45
mitk::IRenderWindowPart::DECORATION_BORDER
static const QString DECORATION_BORDER
Definition: mitkIRenderWindowPart.h:56
mitk::IRenderingManager
An interface for accessing a mitk::RenderingManager instance.
Definition: mitkIRenderingManager.h:34
mitk::IRenderWindowPart::DECORATION_CORNER_ANNOTATION
static const QString DECORATION_CORNER_ANNOTATION
Definition: mitkIRenderWindowPart.h:60
QmitkRenderWindow
MITK implementation of the QVTKWidget.
Definition: QmitkRenderWindow.h:38
org_mitk_gui_common_Export.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::IRenderWindowPart
Interface for a MITK Workbench Part providing a render window.
Definition: mitkIRenderWindowPart.h:54
mitk::IRenderWindowPart::DECORATION_MENU
static const QString DECORATION_MENU
Definition: mitkIRenderWindowPart.h:58
mitk::AnatomicalPlane
AnatomicalPlane
Definition: mitkAnatomicalPlanes.h:18
mitk::IRenderWindowPart::DECORATION_BACKGROUND
static const QString DECORATION_BACKGROUND
Definition: mitkIRenderWindowPart.h:59
mitk::Point< ScalarType, 3 >
MITK_GUI_COMMON_PLUGIN
#define MITK_GUI_COMMON_PLUGIN
Definition: org_mitk_gui_common_Export.h:26
mitkNumericTypes.h
mitk::RenderingManager::RequestType
RequestType
Definition: mitkRenderingManager.h:85
mitk::RenderingManager::REQUEST_UPDATE_ALL
@ REQUEST_UPDATE_ALL
Definition: mitkRenderingManager.h:87
mitk::TimePointType
mitk::ScalarType TimePointType
Definition: mitkTimeGeometry.h:26
mitkRenderingManager.h
mitk::IRenderWindowPart::DECORATION_LOGO
static const QString DECORATION_LOGO
Definition: mitkIRenderWindowPart.h:57
mitkBaseRenderer.h