19 #include "internal/QmitkCommonActivator.h"
27 #include <ctkServiceTracker.h>
29 class QmitkAbstractRenderEditorPrivate
33 QmitkAbstractRenderEditorPrivate()
35 , m_PrefServiceTracker(QmitkCommonActivator::GetContext())
37 m_PrefServiceTracker.open();
40 ~QmitkAbstractRenderEditorPrivate()
42 delete m_RenderingManagerInterface;
46 ctkServiceTracker<berry::IPreferencesService*> m_PrefServiceTracker;
50 QmitkAbstractRenderEditor::QmitkAbstractRenderEditor()
51 : d(new QmitkAbstractRenderEditorPrivate)
57 if (d->m_Prefs.IsNotNull())
60 (
this, &QmitkAbstractRenderEditor::OnPreferencesChanged ) );
67 throw berry::PartInitException(
"Invalid Input: Must be mitk::DataStorageEditorInput");
73 if (d->m_Prefs.IsNotNull())
76 (
this, &QmitkAbstractRenderEditor::OnPreferencesChanged ) );
85 return input->GetDataStorageReference();
93 if (ref.
IsNotNull())
return ref->GetDataStorage();
100 if (prefService !=
nullptr)
111 return d->m_RenderingManagerInterface;
bool IsDirty() const override
virtual void ForceImmediateUpdateAll(RenderingManager::RequestType type=RenderingManager::REQUEST_UPDATE_ALL)=0
~QmitkAbstractRenderEditor()
IEditorInput::Pointer GetEditorInput() const override
void ForceImmediateUpdate(mitk::RenderingManager::RequestType requestType=mitk::RenderingManager::REQUEST_UPDATE_ALL) override
IRenderingManager * MakeRenderingManagerInterface(RenderingManager::Pointer manager)
virtual mitk::IDataStorageReference::Pointer GetDataStorageReference() const
itk::SmartPointer< Self > Pointer
DataCollection - Class to facilitate loading/accessing structured data.
virtual SmartPointer< IPreferences > GetSystemPreferences()=0
void SetSite(IWorkbenchPartSite::Pointer site)
Controls the selection of the slice the associated BaseRenderer will display.
mitk::SliceNavigationController * GetTimeNavigationController() const override
mitk::IRenderingManager * GetRenderingManager() const override
berry::SmartPointer< Self > Pointer
virtual mitk::DataStorage::Pointer GetDataStorage() const
void Init(berry::IEditorSite::Pointer site, berry::IEditorInput::Pointer input) override
virtual berry::IPreferences::Pointer GetPreferences() const
virtual void RequestUpdateAll(RenderingManager::RequestType type=RenderingManager::REQUEST_UPDATE_ALL)=0
virtual void SetInput(IEditorInput::Pointer input)
SmartPointer< Other > Cast() const
berry::SmartPointer< Self > Pointer
An interface for accessing a mitk::RenderingManager instance.
void RequestUpdate(mitk::RenderingManager::RequestType requestType=mitk::RenderingManager::REQUEST_UPDATE_ALL) override
bool IsSaveAsAllowed() const override
IWorkbenchPartSite::Pointer GetSite() const override
virtual const SliceNavigationController * GetTimeNavigationController() const =0