Medical Imaging Interaction Toolkit  2016.11.0
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,
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 #ifndef MITKIRENDERINGMANAGER_H
18 #define MITKIRENDERINGMANAGER_H
19 
20 #include <mitkRenderingManager.h>
21 
23 
24 #include <QList>
25 #include <QtPlugin>
26 
27 namespace mitk {
39  virtual ~IRenderingManager() {}
40 
42  virtual QList<vtkRenderWindow*> GetAllRegisteredVtkRenderWindows() const = 0;
43 
48  virtual void RequestUpdate( vtkRenderWindow *renderWindow ) = 0;
49 
51  virtual void ForceImmediateUpdate( vtkRenderWindow *renderWindow ) = 0;
52 
59 
66 
68  virtual bool InitializeViews( const BaseGeometry *geometry,
70  bool preserveRoughOrientationInWorldSpace = false ) = 0;
71  virtual bool InitializeViews( const TimeGeometry *geometry,
73  bool preserveRoughOrientationInWorldSpace = false ) = 0;
74 
80 
86  virtual bool InitializeView( vtkRenderWindow *renderWindow, const BaseGeometry *geometry,
87  bool initializeGlobalTimeSNC = false) = 0;
88 
93  virtual bool InitializeView( vtkRenderWindow *renderWindow ) = 0;
94 
96  virtual const SliceNavigationController *GetTimeNavigationController() const = 0;
97 
100 
101  virtual bool IsRendering() const = 0;
102 
103  virtual void AbortRendering() = 0;
104 
106  virtual void SetLODIncreaseBlocked(bool blocked) = 0;
107 
109  virtual bool GetLODIncreaseBlocked() const = 0;
110 
112  virtual void SetLODAbortMechanismEnabled(bool abort) = 0;
113 
115  virtual bool GetLODAbortMechanismEnabled() const = 0;
116 
117  virtual int GetNextLOD( BaseRenderer* renderer ) const = 0;
118 
120  virtual void SetMaximumLOD( unsigned int max ) = 0;
121 
122  virtual void SetShading( bool state, unsigned int lod ) = 0;
123  virtual bool GetShading( unsigned int lod ) = 0;
124 
125  virtual void SetClippingPlaneStatus( bool status ) = 0;
126  virtual bool GetClippingPlaneStatus() = 0;
127 
128  virtual void SetShadingValues( float ambient, float diffuse,
129  float specular, float specpower ) = 0;
130 
131  virtual QList<float> GetShadingValues() const = 0;
132 };
133 }
134 
135 Q_DECLARE_INTERFACE(mitk::IRenderingManager, "org.mitk.ui.IRenderingManager")
136 
137 namespace mitk {
146 }
147 
148 #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
itk::SmartPointer< Self > Pointer
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:70
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