Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

mitkCUDADepthBuffer.h

00001 /*=========================================================================
00002 
00003   Program:   3DMed
00004   Date:      $Date: 2014-02-25 18:30:00 +0800 $
00005   Version:   $Version: 4.6.0 $
00006   Copyright: MIPG, Institute of Automation, Chinese Academy of Sciences
00007 
00008 =========================================================================*/
00009 
00010 #ifndef __mitkCUDADepthBuffer_h
00011 #define __mitkCUDADepthBuffer_h
00012 
00013 #include "mitkCUDAVolumeRenderingIncludes.h"
00014 
00015 struct cudaGraphicsResource;
00016 
00017 class MITK_CUDA_VOLUME_RENDERING_API mitkCUDADepthBuffer
00018 {
00019 public:
00020     int m_Size[2];
00021     int m_Origin[2];
00022     unsigned m_pbo;
00023     cudaGraphicsResource *m_pbo_cuda;
00024     float *m_d_DepthData;
00025 
00026     mitkCUDADepthBuffer();
00027     ~mitkCUDADepthBuffer();
00028 
00029     void Allocate();
00030     void PrepareForCUDAOP();
00031     void ClearAfterCUDAOP();
00032 
00033     void Read() const;
00034 
00035 };
00036 
00037 #endif
00038 

Generated on Tue Feb 25 15:00:36 2014 for MITK (Medical Imaging ToolKit) by  doxygen 1.4.3