Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
Medical Imaging Interaction Toolkit
mitkOclDataSetToDataSetFilter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef __mitkOclDataSetToDataSetFilter_h
14 #define __mitkOclDataSetToDataSetFilter_h
15 
16 #include "mitkOclDataSetFilter.h"
17 
18 namespace mitk
19 {
20 class OclDataSetFilter;
21 class OclDataSetToDataSetFilter;
22 
26 class MITKOPENCL_EXPORT OclDataSetToDataSetFilter: public OclDataSetFilter
27 {
28 public:
32  void* GetOutput();
33 
40  mitk::OclDataSet::Pointer GetGPUOutput();
41 
42 protected:
47 
49  virtual ~OclDataSetToDataSetFilter();
50 
52  mitk::OclDataSet::Pointer m_Output;
53 
55  virtual void Update() = 0;
56 
63  bool InitExec(cl_kernel ckKernel, unsigned int* dimensions, size_t outputDataSize, unsigned int outputBpE);
64 
65  bool InitExecNoInput(cl_kernel ckKernel, unsigned int* dimensions, size_t outputDataSize, unsigned int outputBpE);
66 
68  virtual int GetBytesPerElem();
69 
70  unsigned int m_CurrentSizeOutput;
71 
72 private:
74  unsigned int m_BlockDims[3];
75 };
76 }
77 #endif // __mitkOclDataSetToDataSetFilter_h
static void Update(vtkPolyData *)
Definition: mitkSurface.cpp:31
DataCollection - Class to facilitate loading/accessing structured data.
The OclDataSetFilter is the topmost class for all filter which take DataSets as input.
The OclDataSetToDataSetFilter is the base class for all OpenCL DataSet filter generating DataSets...