File: itkFunctionBase.wrap

package info (click to toggle)
insighttoolkit5 5.4.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 704,384 kB
  • sloc: cpp: 783,592; ansic: 628,724; xml: 44,704; fortran: 34,250; python: 22,874; sh: 4,078; pascal: 2,636; lisp: 2,158; makefile: 464; yacc: 328; asm: 205; perl: 203; lex: 146; tcl: 132; javascript: 98; csh: 81
file content (42 lines) | stat: -rw-r--r-- 1,764 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
itk_wrap_class("itk::FunctionBase" POINTER)
foreach(d ${ITK_WRAP_IMAGE_DIMS})

  if(ITK_WRAP_float)
    itk_wrap_template("${ITKM_IF${d}}${ITKM_D}" "${ITKT_IF${d}},${ITKT_D}")
  endif()
  if(ITK_WRAP_unsigned_short)
    itk_wrap_template("${ITKM_IUS${d}}${ITKM_D}" "${ITKT_IUS${d}},${ITKT_D}")
  endif()

  unique(real_types "D;${WRAP_ITK_REAL}")
  foreach(t ${real_types})
    itk_wrap_template("${ITKM_PD${d}}${ITKM_${t}}" "${ITKT_PD${d}}, ${ITKT_${t}}")
    itk_wrap_template("${ITKM_PF${d}}${ITKM_${t}}" "${ITKT_PF${d}}, ${ITKT_${t}}")
  endforeach()
  itk_wrap_template("${ITKM_CIF${d}}${ITKM_AD}" "${ITKT_CIF${d}} ,${ITKT_AD}")
  itk_wrap_template("${ITKM_CID${d}}${ITKM_AD}" "${ITKT_CID${d}} ,${ITKT_AD}")
  itk_wrap_template("${ITKM_PD${d}}${ITKM_VD${d}}" "${ITKT_PD${d}}, ${ITKT_VD${d}}")
  itk_wrap_template("${ITKM_PD${d}}${ITKM_CVD${d}}" "${ITKT_PD${d}}, ${ITKT_CVD${d}}")
  itk_wrap_template("${ITKM_VF${d}}${ITKM_D}" "${ITKT_VF${d}} ,${ITKT_D}")

  # Required by InterpolateImageFunction
  foreach(t ${WRAP_ITK_COLOR})
    itk_wrap_template("${ITKM_PD${d}}${ITKM_${t}}" "${ITKT_PD${d}},${ITKT_${t}}")
  endforeach()
  itk_wrap_template("${ITKM_PD${d}}RGBD" "${ITKT_PD${d}},itk::RGBPixel< double >")
  itk_wrap_template("${ITKM_PD${d}}RGBAD" "${ITKT_PD${d}},itk::RGBAPixel< double >")

  # Required by BSplineInterpolationWeightFunction
  # Wrapping for spline order 3, components = (SplineOrder + 1)^SpaceDimension
  set(comp 1)
  foreach(i RANGE 1 ${d})
    math(EXPR comp "${comp}*4")
  endforeach()
  itk_wrap_template("${ITKM_CID${d}}${ITKM_FAD${comp}}" "${ITKT_CID${d}}, ${ITKT_FAD${comp}}")

endforeach()

foreach(r ${WRAP_ITK_REAL})
  itk_wrap_template("${ITKM_${r}}${ITKM_${r}}" "${ITKT_${r}},${ITKT_${r}}")
endforeach()
itk_end_wrap_class()