Skip to content

Commit

Permalink
Merge branch 'transformbasetemplate-wrapping'
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Dec 8, 2019
2 parents 7357263 + 2be5579 commit 7fd3e40
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions Modules/Core/Transform/wrapping/itkTransformBase.wrap
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
UNIQUE(types "D;${WRAP_ITK_REAL}")

set(WRAPPER_AUTO_INCLUDE_HEADERS OFF)
itk_wrap_include("itkTransformBase.h")
itk_wrap_class("itk::TransformBaseTemplate" POINTER_WITH_CONST_POINTER)
foreach(t ${types})
itk_wrap_template("${ITKM_${t}}" "${ITKT_${t}}")
endforeach()
itk_end_wrap_class()

set(WRAPPER_AUTO_INCLUDE_HEADERS ON)
itk_wrap_class("itk::Transform" POINTER)
foreach(d1 ${ITK_WRAP_IMAGE_DIMS})
foreach(d2 ${ITK_WRAP_IMAGE_DIMS})
Expand All @@ -23,11 +33,3 @@ itk_wrap_class("itk::DataObjectDecorator" POINTER)
endforeach()
endforeach()
itk_end_wrap_class()

set(WRAPPER_AUTO_INCLUDE_HEADERS OFF)
itk_wrap_include("itkTransformBase.h")
itk_wrap_class("itk::TransformBaseTemplate" POINTER_WITH_CONST_POINTER)
foreach(t ${types})
itk_wrap_template("${ITKM_${t}}" "${ITKT_${t}}")
endforeach()
itk_end_wrap_class()
2 changes: 1 addition & 1 deletion Wrapping/Generators/Python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ macro(itk_wrap_simple_type_python wrap_class swig_name)

if("${cpp_name}" STREQUAL "itk::TransformBaseTemplate" AND NOT "${ext_def}" MATCHES "Pointer")
set(ITK_WRAP_PYTHON_SWIG_EXT "${ITK_WRAP_PYTHON_SWIG_EXT}%template(list${swig_name}_Pointer) std::list< ${swig_name}_Pointer >;\n")
ADD_PYTHON_CONFIG_TEMPLATE("list" "std::list" "list${swig_name}_Pointer" "${cpp_name}< ${template_params}> >")
ADD_PYTHON_CONFIG_TEMPLATE("list" "std::list" "list${swig_name}_Pointer" "${cpp_name}< ${template_params}>")
endif()

if("${cpp_name}" STREQUAL "itk::SpatialObjectPoint")
Expand Down

0 comments on commit 7fd3e40

Please sign in to comment.