Medical Imaging Interaction Toolkit  2018.4.99-6aa36ba9
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 SliceNavigationController;
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::BaseRenderer::ViewDirection& viewDirection) 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 
126  virtual mitk::SliceNavigationController* GetTimeNavigationController() const = 0;
127 
135  virtual mitk::Point3D GetSelectedPosition(const QString& id = QString()) const = 0;
136 
144  virtual void SetSelectedPosition(const mitk::Point3D& pos, const QString& id = QString()) = 0;
145 
158  virtual void EnableDecorations(bool enable, const QStringList& decorations = QStringList()) = 0;
159 
168  virtual bool IsDecorationEnabled(const QString& decoration) const = 0;
169 
183  virtual QStringList GetDecorations() const = 0;
184 };
185 
186 }
187 
188 Q_DECLARE_INTERFACE(mitk::IRenderWindowPart, "org.mitk.ui.IRenderWindowPart")
189 
190 #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
ViewDirection
Possible view directions for render windows.
#define MITK_GUI_COMMON_PLUGIN
static const QString DECORATION_BACKGROUND
An interface for accessing a mitk::RenderingManager instance.