1 #-----------------------------------
2 # Configuration of the buid-in MITK pixel types
3 #-----------------------------------
5 # create a list of types for template instantiations of itk image access functions
9 string(REPLACE "," ";" _pixeltypes "${TYPES}
")
10 foreach(_pixeltype ${_pixeltypes})
11 set(_seq "${_seq}(${_pixeltype})
")
12 set(_seq_dim "${_seq_dim}((${_pixeltype},dim))
")
14 set(${seq_var} "${_seq}
" PARENT_SCOPE)
15 set(${seqdim_var} "${_seq_dim}
" PARENT_SCOPE)
18 macro(mitkMacroConfigureItkPixelTypes)
20 set(MITK_ACCESSBYITK_PIXEL_TYPES )
21 set(MITK_ACCESSBYITK_PIXEL_TYPES_SEQ )
22 set(MITK_ACCESSBYITK_TYPES_DIMN_SEQ )
24 # concatenate only the simple pixel types to the MITK_ACCESSBYITK_PIXEL_TYPE_SEQ list
25 # see Bug 12682 for detailed information
26 foreach(_type INTEGRAL FLOATING)
27 set(_typelist "${MITK_ACCESSBYITK_${_type}_PIXEL_TYPES}
")
29 if(MITK_ACCESSBYITK_PIXEL_TYPES)
32 set(MITK_ACCESSBYITK_PIXEL_TYPES "${_typelist}
")
36 _create_type_seq("${_typelist}
"
37 MITK_ACCESSBYITK_${_type}_PIXEL_TYPES_SEQ
38 MITK_ACCESSBYITK_${_type}_TYPES_DIMN_SEQ)
43 # separate processing of the COMPOSITE list to avoid its concatenation to the global list
44 _create_type_seq(${MITK_ACCESSBYITK_COMPOSITE_PIXEL_TYPES}
45 MITK_ACCESSBYITK_COMPOSITE_PIXEL_TYPES_SEQ
46 MITK_ACCESSBYITK_COMPOSITE_TYPES_DIMN_SEQ)
48 # separate processing of the VECTOR list to avoid its concatenation to the global list
49 _create_type_seq(${MITK_ACCESSBYITK_VECTOR_PIXEL_TYPES}
50 MITK_ACCESSBYITK_VECTOR_PIXEL_TYPES_SEQ
51 MITK_ACCESSBYITK_VECTOR_TYPES_DIMN_SEQ)
53 set(MITK_ACCESSBYITK_DIMENSIONS_SEQ )
55 foreach(_dimension ${_dimensions})
#define MITK_ACCESSBYITK_PIXEL_TYPES
#define MITK_ACCESSBYITK_DIMENSIONS_SEQ
#define MITK_ACCESSBYITK_PIXEL_TYPES_SEQ
#define MITK_ACCESSBYITK_DIMENSIONS
_create_type_seq(TYPES, seq_var, seqdim_var)
#define MITK_ACCESSBYITK_TYPES_DIMN_SEQ(dim)