Medical Imaging Interaction Toolkit  2024.06.99-bf8fb9c0
Medical Imaging Interaction Toolkit
mitkIRenderingManager.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 mitkIRenderingManager_h
14 #define mitkIRenderingManager_h
15 
16 #include <mitkRenderingManager.h>
17 
19 
20 #include <QList>
21 #include <QtPlugin>
22 
23 namespace mitk {
35  virtual ~IRenderingManager() {}
36 
38  virtual QList<vtkRenderWindow*> GetAllRegisteredVtkRenderWindows() const = 0;
39 
44  virtual void RequestUpdate( vtkRenderWindow *renderWindow ) = 0;
45 
47  virtual void ForceImmediateUpdate( vtkRenderWindow *renderWindow ) = 0;
48 
55 
62 
64  virtual bool InitializeViews( const BaseGeometry *geometry,
66  bool preserveRoughOrientationInWorldSpace = false ) = 0;
67  virtual bool InitializeViews( const TimeGeometry *geometry,
69  bool preserveRoughOrientationInWorldSpace = false ) = 0;
70 
76 
82  virtual bool InitializeView( vtkRenderWindow *renderWindow, const BaseGeometry *geometry,
83  bool initializeGlobalTimeSNC = false) = 0;
84 
89  virtual bool InitializeView( vtkRenderWindow *renderWindow ) = 0;
90 
92  virtual const TimeNavigationController*GetTimeNavigationController() const = 0;
93 
96 
97  virtual bool IsRendering() const = 0;
98 
99  virtual void AbortRendering() = 0;
100 
102  virtual void SetLODIncreaseBlocked(bool blocked) = 0;
103 
105  virtual bool GetLODIncreaseBlocked() const = 0;
106 
108  virtual void SetLODAbortMechanismEnabled(bool abort) = 0;
109 
111  virtual bool GetLODAbortMechanismEnabled() const = 0;
112 
113  virtual int GetNextLOD( BaseRenderer* renderer ) const = 0;
114 
116  virtual void SetMaximumLOD( unsigned int max ) = 0;
117 
118  virtual void SetShading( bool state, unsigned int lod ) = 0;
119  virtual bool GetShading( unsigned int lod ) = 0;
120 
121  virtual void SetClippingPlaneStatus( bool status ) = 0;
122  virtual bool GetClippingPlaneStatus() = 0;
123 
124  virtual void SetShadingValues( float ambient, float diffuse,
125  float specular, float specpower ) = 0;
126 
127  virtual QList<float> GetShadingValues() const = 0;
128 };
129 }
130 
131 Q_DECLARE_INTERFACE(mitk::IRenderingManager, "org.mitk.ui.IRenderingManager")
132 
133 namespace mitk {
141 MITK_GUI_COMMON_PLUGIN IRenderingManager* MakeRenderingManagerInterface(RenderingManager::Pointer manager);
142 }
143 
144 #endif
mitk::IRenderingManager::GetClippingPlaneStatus
virtual bool GetClippingPlaneStatus()=0
mitk::TimeNavigationController
Controls the time-related properties of the time stepper, according to the given input world time geo...
Definition: mitkTimeNavigationController.h:69
mitk::TimeGeometry
Definition: mitkTimeGeometry.h:45
mitk::IRenderingManager::ForceImmediateUpdateAll
virtual void ForceImmediateUpdateAll(RenderingManager::RequestType type=RenderingManager::REQUEST_UPDATE_ALL)=0
mitk::IRenderingManager::InitializeViews
virtual bool InitializeViews(const BaseGeometry *geometry, RenderingManager::RequestType type=RenderingManager::REQUEST_UPDATE_ALL, bool preserveRoughOrientationInWorldSpace=false)=0
mitk::IRenderingManager::GetLODIncreaseBlocked
virtual bool GetLODIncreaseBlocked() const =0
mitk::IRenderingManager::SetLODAbortMechanismEnabled
virtual void SetLODAbortMechanismEnabled(bool abort)=0
mitk::IRenderingManager
An interface for accessing a mitk::RenderingManager instance.
Definition: mitkIRenderingManager.h:34
mitk::IRenderingManager::GetAllRegisteredVtkRenderWindows
virtual QList< vtkRenderWindow * > GetAllRegisteredVtkRenderWindows() const =0
mitk::MakeRenderingManagerInterface
MITK_GUI_COMMON_PLUGIN IRenderingManager * MakeRenderingManagerInterface(RenderingManager::Pointer manager)
mitk::IRenderingManager::AbortRendering
virtual void AbortRendering()=0
mitk::IRenderingManager::SetLODIncreaseBlocked
virtual void SetLODIncreaseBlocked(bool blocked)=0
org_mitk_gui_common_Export.h
mitk::IRenderingManager::RequestUpdate
virtual void RequestUpdate(vtkRenderWindow *renderWindow)=0
mitk::IRenderingManager::GetShadingValues
virtual QList< float > GetShadingValues() const =0
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::IRenderingManager::GetNextLOD
virtual int GetNextLOD(BaseRenderer *renderer) const =0
mitk::IRenderingManager::IsRendering
virtual bool IsRendering() const =0
mitk::BaseGeometry
BaseGeometry Describes the geometry of a data object.
Definition: mitkBaseGeometry.h:94
mitk::IRenderingManager::GetLODAbortMechanismEnabled
virtual bool GetLODAbortMechanismEnabled() const =0
mitk::IRenderingManager::SetMaximumLOD
virtual void SetMaximumLOD(unsigned int max)=0
mitk::IRenderingManager::~IRenderingManager
virtual ~IRenderingManager()
Definition: mitkIRenderingManager.h:35
MITK_GUI_COMMON_PLUGIN
#define MITK_GUI_COMMON_PLUGIN
Definition: org_mitk_gui_common_Export.h:26
mitk::IRenderingManager::ForceImmediateUpdate
virtual void ForceImmediateUpdate(vtkRenderWindow *renderWindow)=0
mitk::IRenderingManager::SetShadingValues
virtual void SetShadingValues(float ambient, float diffuse, float specular, float specpower)=0
mitk::RenderingManager::RequestType
RequestType
Definition: mitkRenderingManager.h:85
mitk::IRenderingManager::GetShading
virtual bool GetShading(unsigned int lod)=0
mitk::IRenderingManager::GetTimeNavigationController
virtual const TimeNavigationController * GetTimeNavigationController() const =0
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitk::RenderingManager::REQUEST_UPDATE_ALL
@ REQUEST_UPDATE_ALL
Definition: mitkRenderingManager.h:87
mitkRenderingManager.h
mitk::IRenderingManager::RequestUpdateAll
virtual void RequestUpdateAll(RenderingManager::RequestType type=RenderingManager::REQUEST_UPDATE_ALL)=0
mitk::IRenderingManager::InitializeView
virtual bool InitializeView(vtkRenderWindow *renderWindow, const BaseGeometry *geometry, bool initializeGlobalTimeSNC=false)=0
mitk::IRenderingManager::SetShading
virtual void SetShading(bool state, unsigned int lod)=0
mitk::IRenderingManager::SetClippingPlaneStatus
virtual void SetClippingPlaneStatus(bool status)=0