18 #ifndef __mitkOclFilter_h
19 #define __mitkOclFilter_h
27 #include <MitkOpenCLExports.h>
46 void AddSourceFile(
const char*
filename);
54 void SetCompilerFlags(
const char* flags);
59 virtual bool IsInitialized();
97 size_t m_LocalWorkSize[3];
100 size_t m_GlobalWorkSize[3];
103 void SetWorkingSize(
unsigned int locx,
unsigned int dimx,
104 unsigned int locy = 1,
unsigned int dimy = 1,
105 unsigned int locz = 1,
unsigned int dimz = 1);
109 bool ExecuteKernel( cl_kernel kernel,
unsigned int workSizeDim );
125 void CompileSource();
133 void SetSourcePreambel(
const char* preambel);
146 void LoadSourceFiles(CStringList &SourceCodeList, ClSizeList &SourceCodeSizeList);
149 #endif // __mitkOclFilter_h
std::string m_FilterID
Unique ID of the filter, needs to be specified in the constructor of the derived class.
bool m_Initialized
status of the filter
cl_program m_ClProgram
The compiled OpenCL program.
const char * m_Preambel
source preambel for e.g. #define commands to be inserted into the OpenCL source
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< const char * > CStringList
static const std::string filename
std::vector< vcl_size_t > ClSizeList
CStringList m_ClFiles
List of sourcefiles that will be compiled for this filter.
cl_command_queue m_CommandQue
Command queue for the filter.
Superclass for all OpenCL based filter.
const char * m_ClCompilerFlags
String that contains the compiler flags.