20 struct RenderingManagerInterface :
public IRenderingManager
26 QList<vtkRenderWindow*> GetAllRegisteredVtkRenderWindows()
const override
29 QList<vtkRenderWindow*> result;
30 for (
auto i = vec.begin();
38 void RequestUpdate( vtkRenderWindow *renderWindow )
override
40 m_RM->RequestUpdate(renderWindow);
43 void ForceImmediateUpdate( vtkRenderWindow *renderWindow )
override
45 m_RM->ForceImmediateUpdate(renderWindow);
50 m_RM->RequestUpdateAll(type);
55 m_RM->ForceImmediateUpdateAll(type);
58 bool InitializeViews(
const BaseGeometry *geometry,
60 bool preserveRoughOrientationInWorldSpace =
false )
override
62 return m_RM->InitializeViews( geometry, type, preserveRoughOrientationInWorldSpace);
65 bool InitializeViews(
const TimeGeometry *geometry,
67 bool preserveRoughOrientationInWorldSpace =
false )
override
69 return m_RM->InitializeViews( geometry, type, preserveRoughOrientationInWorldSpace);
74 return m_RM->InitializeViews(type);
77 bool InitializeView( vtkRenderWindow *renderWindow,
const BaseGeometry *geometry,
78 bool initializeGlobalTimeSNC =
false)
override
80 return m_RM->InitializeView(renderWindow, geometry, initializeGlobalTimeSNC);
83 bool InitializeView( vtkRenderWindow *renderWindow )
override
85 return m_RM->InitializeView(renderWindow);
88 const SliceNavigationController *GetTimeNavigationController()
const override
90 return m_RM->GetTimeNavigationController();
93 SliceNavigationController *GetTimeNavigationController()
override
95 return m_RM->GetTimeNavigationController();
98 bool IsRendering()
const override
100 return m_RM->IsRendering();
103 void AbortRendering()
override
105 m_RM->AbortRendering();
108 void SetLODIncreaseBlocked(
bool blocked)
override
110 m_RM->SetLODIncreaseBlocked(blocked);
113 bool GetLODIncreaseBlocked()
const override
115 return m_RM->GetLODIncreaseBlocked();
118 void SetLODAbortMechanismEnabled(
bool abort)
override
120 m_RM->SetLODAbortMechanismEnabled(abort);
123 bool GetLODAbortMechanismEnabled()
const override
125 return m_RM->GetLODAbortMechanismEnabled();
128 int GetNextLOD( BaseRenderer* renderer )
const override
130 return m_RM->GetNextLOD(renderer);
133 void SetMaximumLOD(
unsigned int max )
override
135 m_RM->SetMaximumLOD(max);
138 void SetShading(
bool state,
unsigned int lod )
override
140 m_RM->SetShading(state, lod);
143 bool GetShading(
unsigned int lod )
override
145 return m_RM->GetShading(lod);
148 void SetClippingPlaneStatus(
bool status )
override
150 m_RM->SetClippingPlaneStatus(status);
153 bool GetClippingPlaneStatus()
override
155 return m_RM->GetClippingPlaneStatus();
158 void SetShadingValues(
float ambient,
float diffuse,
159 float specular,
float specpower )
override
161 m_RM->SetShadingValues(ambient, diffuse, specular, specpower);
164 QList<float> GetShadingValues()
const override
168 for (
auto i = vec.begin();
171 result.push_back(*i);
181 return new RenderingManagerInterface(manager);
IRenderingManager * MakeRenderingManagerInterface(RenderingManager::Pointer manager)
std::vector< float > FloatVector
DataCollection - Class to facilitate loading/accessing structured data.
itk::SmartPointer< Self > Pointer
std::vector< vtkRenderWindow * > RenderWindowVector
An interface for accessing a mitk::RenderingManager instance.