Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkAbstractRenderEditor.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 
18 #ifndef QMITKABSTRACTRENDEREDITOR_H
19 #define QMITKABSTRACTRENDEREDITOR_H
20 
21 #include <berryQtEditorPart.h>
22 #include <berryIBerryPreferences.h>
23 
24 #include "mitkIRenderWindowPart.h"
25 
27 #include <mitkDataStorage.h>
28 
30 
31 class QmitkAbstractRenderEditorPrivate;
32 
62  public virtual mitk::IRenderWindowPart
63 {
64  Q_OBJECT
65  Q_INTERFACES(mitk::IRenderWindowPart)
66 
67 public:
68 
70 
73 
74 protected:
75 
82 
86  virtual mitk::IDataStorageReference::Pointer GetDataStorageReference() const;
87 
92 
96  virtual berry::IPreferences::Pointer GetPreferences() const;
97 
105 
116 
127 
136 
138  void DoSave() override;
139 
141  void DoSaveAs() override;
142 
144  bool IsDirty() const override;
145 
147  bool IsSaveAsAllowed() const override;
148 
149 private:
150 
151  virtual void OnPreferencesChanged(const berry::IBerryPreferences*);
152 
153 private:
154 
155  QScopedPointer<QmitkAbstractRenderEditorPrivate> d;
156 
157 };
158 
159 #endif // QMITKABSTRACTRENDEREDITOR_H
virtual void RequestUpdate(mitk::RenderingManager::RequestType requestType=mitk::RenderingManager::REQUEST_UPDATE_ALL)=0
virtual mitk::IRenderingManager * GetRenderingManager() const =0
berryObjectMacro(QtEditorPart, EditorPart) void CreatePartControl(QWidget *parent) override
virtual void ForceImmediateUpdate(mitk::RenderingManager::RequestType requestType=mitk::RenderingManager::REQUEST_UPDATE_ALL)=0
Interface for a MITK Workbench Part providing a render window.
virtual void DoSaveAs() override=0
static mitk::DataStorage::Pointer GetDataStorage()
virtual bool IsSaveAsAllowed() const override=0
Controls the selection of the slice the associated BaseRenderer will display.
virtual mitk::SliceNavigationController * GetTimeNavigationController() const =0
A convenient base class for MITK render window BlueBerry Editors.
#define MITK_QT_COMMON
An interface for accessing a mitk::RenderingManager instance.
virtual bool IsDirty() const override=0
virtual void Init(IEditorSite::Pointer site, IEditorInput::Pointer input) override=0
virtual void DoSave() override=0