Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxDepthPeeling.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 #ifndef CXDEPTHPEELING_H_
12 #define CXDEPTHPEELING_H_
13 
14 #include "cxResourceVisualizationExport.h"
15 
16 #include <vtkSphereSource.h>
17 #include <vtkSmartPointer.h>
18 #include <vtkAppendPolyData.h>
19 #include <vtkCamera.h>
20 #include <vtkPolyDataMapper.h>
21 #include <vtkActor.h>
22 #include <vtkRenderer.h>
23 #include <vtkRenderWindow.h>
24 #include <vtkProperty.h>
25 #include <vtkRenderWindowInteractor.h>
26 #include <vtkTimerLog.h>
27 #include <vtkTransform.h>
28 #include <vtkDepthSortPolyData.h>
29 
30 cxResourceVisualization_EXPORT vtkSmartPointer<vtkAppendPolyData> GenerateOverlappingBunchOfSpheres(int theta, int phi);
31 
32 cxResourceVisualization_EXPORT bool SetupEnvironmentForDepthPeeling(vtkSmartPointer<vtkRenderWindow> renderWindow,
33  vtkSmartPointer<vtkRenderer> renderer, int maxNoOfPeels,
34  double occlusionRatio);
35 
36 cxResourceVisualization_EXPORT bool TurnOffDepthPeeling(
37  vtkSmartPointer<vtkRenderWindow> renderWindow,
38  vtkSmartPointer<vtkRenderer> renderer);
39 
40 cxResourceVisualization_EXPORT bool IsDepthPeelingSupported(vtkSmartPointer<vtkRenderWindow> renderWindow,
41  vtkSmartPointer<vtkRenderer> renderer,
42  bool doItOffScreen);
43 
44 #endif /* CXDEPTHPEELING_H_ */
cxResourceVisualization_EXPORT bool SetupEnvironmentForDepthPeeling(vtkSmartPointer< vtkRenderWindow > renderWindow, vtkSmartPointer< vtkRenderer > renderer, int maxNoOfPeels, double occlusionRatio)
cxResourceVisualization_EXPORT vtkSmartPointer< vtkAppendPolyData > GenerateOverlappingBunchOfSpheres(int theta, int phi)
cxResourceVisualization_EXPORT bool TurnOffDepthPeeling(vtkSmartPointer< vtkRenderWindow > renderWindow, vtkSmartPointer< vtkRenderer > renderer)
Turn off depth peeling.
cxResourceVisualization_EXPORT bool IsDepthPeelingSupported(vtkSmartPointer< vtkRenderWindow > renderWindow, vtkSmartPointer< vtkRenderer > renderer, bool doItOffScreen)