Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKIRENDERWINDOWPART_H
18 #define MITKIRENDERWINDOWPART_H
19 
20 #include <QString>
21 #include <QStringList>
22 #include <QHash>
23 #include <QtPlugin>
24 
25 #include <mitkNumericTypes.h>
26 #include <mitkRenderingManager.h>
27 
29 
30 class QmitkRenderWindow;
31 
32 namespace mitk {
33 
34 struct IRenderingManager;
35 class SliceNavigationController;
36 
64 
65  static const QString DECORATION_BORDER; // = "border"
66  static const QString DECORATION_LOGO; // = "logo"
67  static const QString DECORATION_MENU; // = "menu"
68  static const QString DECORATION_BACKGROUND; // = "background"
69  static const QString DECORATION_CORNER_ANNOTATION; // = "corner annotation"
70 
71  virtual ~IRenderWindowPart();
72 
80  virtual QmitkRenderWindow* GetActiveQmitkRenderWindow() const = 0;
81 
87  virtual QHash<QString,QmitkRenderWindow*> GetQmitkRenderWindows() const = 0;
88 
95  virtual QmitkRenderWindow* GetQmitkRenderWindow(const QString& id) const = 0;
96 
103  virtual mitk::IRenderingManager* GetRenderingManager() const = 0;
104 
111  virtual void RequestUpdate(mitk::RenderingManager::RequestType requestType = mitk::RenderingManager::REQUEST_UPDATE_ALL) = 0;
112 
119  virtual void ForceImmediateUpdate(mitk::RenderingManager::RequestType requestType = mitk::RenderingManager::REQUEST_UPDATE_ALL) = 0;
120 
127  virtual mitk::SliceNavigationController* GetTimeNavigationController() const = 0;
128 
136  virtual mitk::Point3D GetSelectedPosition(const QString& id = QString()) const = 0;
137 
145  virtual void SetSelectedPosition(const mitk::Point3D& pos, const QString& id = QString()) = 0;
146 
159  virtual void EnableDecorations(bool enable, const QStringList& decorations = QStringList()) = 0;
160 
169  virtual bool IsDecorationEnabled(const QString& decoration) const = 0;
170 
184  virtual QStringList GetDecorations() const = 0;
185 };
186 
187 }
188 
189 Q_DECLARE_INTERFACE(mitk::IRenderWindowPart, "org.mitk.ui.IRenderWindowPart")
190 
191 #endif // MITKIRENDERWINDOWPART_H
Interface for a MITK Workbench Part providing a render window.
DataCollection - Class to facilitate loading/accessing structured data.
Controls the selection of the slice the associated BaseRenderer will display.
static const QString DECORATION_MENU
MITK implementation of the QVTKWidget.
static const QString DECORATION_CORNER_ANNOTATION
static const QString DECORATION_BORDER
static const QString DECORATION_LOGO
#define MITK_GUI_COMMON_PLUGIN
static const QString DECORATION_BACKGROUND
An interface for accessing a mitk::RenderingManager instance.