Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
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 (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 
14 #ifndef QmitkAbstractRenderEditor_h
15 #define QmitkAbstractRenderEditor_h
16 
17 #include <berryQtEditorPart.h>
18 
19 #include "mitkIRenderWindowPart.h"
20 
22 #include <mitkDataStorage.h>
23 
25 
26 class QmitkAbstractRenderEditorPrivate;
27 
28 namespace mitk
29 {
30  class IPreferences;
31 }
32 
62  public virtual mitk::IRenderWindowPart
63 {
64  Q_OBJECT
65  Q_INTERFACES(mitk::IRenderWindowPart)
66 
67 public:
68 
70 
76  mitk::TimePointType GetSelectedTimePoint(const QString& id = QString()) const override;
77 
79  ~QmitkAbstractRenderEditor() override;
80 
81 protected:
82 
89 
93  virtual mitk::IDataStorageReference::Pointer GetDataStorageReference() const;
94 
98  virtual mitk::DataStorage::Pointer GetDataStorage() const;
99 
103  virtual mitk::IPreferences* GetPreferences() const;
104 
112 
123 
134 
143 
145  void DoSave() override;
146 
148  void DoSaveAs() override;
149 
151  bool IsDirty() const override;
152 
154  bool IsSaveAsAllowed() const override;
155 
156 private:
157 
158  virtual void OnPreferencesChanged(const mitk::IPreferences*);
159 
160 private:
161 
162  QScopedPointer<QmitkAbstractRenderEditorPrivate> d;
163 
164 };
165 
166 #endif
berry::EditorPart::IsSaveAsAllowed
bool IsSaveAsAllowed() const override=0
MITK_QT_COMMON
#define MITK_QT_COMMON
Definition: org_mitk_gui_qt_common_Export.h:26
mitk::IRenderingManager
An interface for accessing a mitk::RenderingManager instance.
Definition: mitkIRenderingManager.h:34
QmitkAbstractRenderEditor
A convenient base class for MITK render window BlueBerry Editors.
Definition: QmitkAbstractRenderEditor.h:61
mitkDataStorage.h
berry::SmartPointer< Self >
berryQtEditorPart.h
berry::EditorPart::DoSaveAs
void DoSaveAs() override=0
itk::SmartPointer< Self >
berry::EditorPart::IsDirty
bool IsDirty() const override=0
berry::QtEditorPart::berryObjectMacro
berryObjectMacro(QtEditorPart, EditorPart)
mitk::SliceNavigationController
Controls the selection of the slice the associated BaseRenderer will display.
Definition: mitkSliceNavigationController.h:132
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::IRenderWindowPart
Interface for a MITK Workbench Part providing a render window.
Definition: mitkIRenderWindowPart.h:54
mitk::IRenderWindowPart::GetRenderingManager
virtual mitk::IRenderingManager * GetRenderingManager() const =0
mitkIRenderWindowPart.h
berry::QtEditorPart
Definition: berryQtEditorPart.h:24
mitk::IRenderWindowPart::ForceImmediateUpdate
virtual void ForceImmediateUpdate(mitk::RenderingManager::RequestType requestType=mitk::RenderingManager::REQUEST_UPDATE_ALL)=0
berry::EditorPart::DoSave
void DoSave() override=0
mitk::IRenderWindowPart::RequestUpdate
virtual void RequestUpdate(mitk::RenderingManager::RequestType requestType=mitk::RenderingManager::REQUEST_UPDATE_ALL)=0
mitk::RenderingManager::RequestType
RequestType
Definition: mitkRenderingManager.h:85
mitk::IRenderWindowPart::GetSelectedTimePoint
virtual TimePointType GetSelectedTimePoint(const QString &id=QString()) const =0
mitk::IRenderWindowPart::GetTimeNavigationController
virtual mitk::SliceNavigationController * GetTimeNavigationController() const =0
mitk::RenderingManager::REQUEST_UPDATE_ALL
@ REQUEST_UPDATE_ALL
Definition: mitkRenderingManager.h:87
mitk::TimePointType
mitk::ScalarType TimePointType
Definition: mitkTimeGeometry.h:26
mitk::IPreferences
Interface to application preferences.
Definition: mitkIPreferences.h:50
berry::EditorPart::Init
void Init(IEditorSite::Pointer site, IEditorInput::Pointer input) override=0
mitkIDataStorageReference.h
org_mitk_gui_qt_common_Export.h