13 #ifndef MITKGPUVOLUMEMAPPER3D_H_HEADER_INCLUDED 14 #define MITKGPUVOLUMEMAPPER3D_H_HEADER_INCLUDED 24 #include <vtkFixedPointVolumeRayCastMapper.h> 25 #include <vtkGPUVolumeRayCastMapper.h> 26 #include <vtkImageChangeInformation.h> 27 #include <vtkSmartPointer.h> 28 #include <vtkVersionMacros.h> 29 #include <vtkVolumeProperty.h> 52 itkFactorylessNewMacro(
Self);
66 bool IsLODEnabled(
BaseRenderer *renderer =
nullptr)
const override;
98 void CreateDefaultTransferFunctions();
136 m_VtkRenderWindow =
nullptr;
138 m_cpuInitialized =
false;
140 m_gpuInitialized =
false;
141 m_gpuSupported =
true;
143 m_rayInitialized =
false;
144 m_raySupported =
true;
149 if (m_cpuInitialized && m_MapperCPU && m_VtkRenderWindow)
150 m_MapperCPU->ReleaseGraphicsResources(m_VtkRenderWindow);
152 if (m_rayInitialized && m_MapperRAY && m_VtkRenderWindow)
153 m_MapperRAY->ReleaseGraphicsResources(m_VtkRenderWindow);
vtkSmartPointer< vtkImageChangeInformation > m_UnitSpacingImageFilter
vtkRenderWindow * m_VtkRenderWindow
Base class for mapper specific rendering ressources.
#define MITKMAPPEREXT_EXPORT
vtkSmartPointer< vtkPiecewiseFunction > m_DefaultOpacityTransferFunction
vtkSmartPointer< vtkGPUVolumeRayCastMapper > m_MapperRAY
vtkSmartPointer< vtkVolumeProperty > m_VolumePropertyGPU
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
vtkSmartPointer< vtkVolume > m_VolumeGPU
Base class of all Vtk Mappers in order to display primitives by exploiting Vtk functionality.
Base class of all mappers, Vtk as well as OpenGL mappers.
vtkSmartPointer< vtkVolumeProperty > m_VolumePropertyRAY
vtkSmartPointer< vtkPiecewiseFunction > m_DefaultGradientTransferFunction
vtkSmartPointer< vtkVolume > m_VolumeRAY
vtkSmartPointer< vtkVolumeProperty > m_VolumePropertyCPU
vtkSmartPointer< vtkPiecewiseFunction > m_BinaryOpacityTransferFunction
#define mitkClassMacro(className, SuperClassName)
Image class for storing images.
vtkSmartPointer< vtkVolume > m_Volumenullptr
mitk::LocalStorageHandler< LocalStorage > m_LSH
Vtk-based mapper for VolumeData.
vtkSmartPointer< vtkColorTransferFunction > m_DefaultColorTransferFunction
vtkSmartPointer< vtkVolume > m_VolumeCPU
vtkSmartPointer< vtkColorTransferFunction > m_BinaryColorTransferFunction
Class for nodes of the DataTree.
vtkSmartPointer< vtkPiecewiseFunction > m_BinaryGradientTransferFunction
vtkSmartPointer< vtkFixedPointVolumeRayCastMapper > m_MapperCPU