Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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 SliceNavigationController *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 {
142 }
143 
144 #endif // MITKIRENDERINGMANAGER_H
virtual void ForceImmediateUpdateAll(RenderingManager::RequestType type=RenderingManager::REQUEST_UPDATE_ALL)=0
virtual void SetShading(bool state, unsigned int lod)=0
virtual void SetLODAbortMechanismEnabled(bool abort)=0
virtual void AbortRendering()=0
virtual QList< vtkRenderWindow * > GetAllRegisteredVtkRenderWindows() const =0
IRenderingManager * MakeRenderingManagerInterface(RenderingManager::Pointer manager)
Organizes the rendering process.
virtual void RequestUpdate(vtkRenderWindow *renderWindow)=0
DataCollection - Class to facilitate loading/accessing structured data.
virtual bool InitializeViews(const BaseGeometry *geometry, RenderingManager::RequestType type=RenderingManager::REQUEST_UPDATE_ALL, bool preserveRoughOrientationInWorldSpace=false)=0
virtual void SetLODIncreaseBlocked(bool blocked)=0
Controls the selection of the slice the associated BaseRenderer will display.
virtual int GetNextLOD(BaseRenderer *renderer) const =0
virtual bool IsRendering() const =0
virtual QList< float > GetShadingValues() const =0
virtual void SetShadingValues(float ambient, float diffuse, float specular, float specpower)=0
virtual void ForceImmediateUpdate(vtkRenderWindow *renderWindow)=0
static T max(T x, T y)
Definition: svm.cpp:56
virtual bool GetLODAbortMechanismEnabled() const =0
virtual bool GetShading(unsigned int lod)=0
virtual void RequestUpdateAll(RenderingManager::RequestType type=RenderingManager::REQUEST_UPDATE_ALL)=0
virtual void SetMaximumLOD(unsigned int max)=0
#define MITK_GUI_COMMON_PLUGIN
virtual bool InitializeView(vtkRenderWindow *renderWindow, const BaseGeometry *geometry, bool initializeGlobalTimeSNC=false)=0
virtual void SetClippingPlaneStatus(bool status)=0
An interface for accessing a mitk::RenderingManager instance.
virtual bool GetLODIncreaseBlocked() const =0
virtual bool GetClippingPlaneStatus()=0
BaseGeometry Describes the geometry of a data object.
virtual const SliceNavigationController * GetTimeNavigationController() const =0