00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __mitkCUDAGridPartition_h
00011 #define __mitkCUDAGridPartition_h
00012
00013 #include "mitkCUDAVolumeRenderingIncludes.h"
00014
00015 class mitkCUDAVolumeTexture;
00016 struct cudaArray;
00017 struct cudaPitchedPtr;
00018 class MITK_CUDA_VOLUME_RENDERING_API mitkCUDAGridPartition
00019 {
00020 public:
00021 int m_bsizeX,m_bsizeY,m_bsizeZ;
00022 int m_bnumX,m_bnumY,m_bnumZ;
00023
00024 cudaArray *m_d_MinMaxArray;
00025
00026 mitkCUDAGridPartition();
00027 ~mitkCUDAGridPartition();
00028
00029 void Init(mitkCUDAVolumeTexture *volume, int bsizeX, int bsizeY, int bsizeZ);
00030 void Init(mitkCUDAVolumeTexture *volume, float blockLogRate);
00031
00032 private:
00033 void _calculateMinMax(cudaPitchedPtr d_MinMax,mitkCUDAVolumeTexture *volume);
00034 };
00035
00036
00037 #endif