diff --git a/Modules/Core/Common/wrapping/vnl_c_vector.wrap b/Modules/Core/Common/wrapping/vnl_c_vector.wrap index fac4fe706bf..47d104b071e 100644 --- a/Modules/Core/Common/wrapping/vnl_c_vector.wrap +++ b/Modules/Core/Common/wrapping/vnl_c_vector.wrap @@ -1,7 +1,7 @@ # auto include feature must be disable because the class is not in the file # with the same name set(WRAPPER_AUTO_INCLUDE_HEADERS OFF) -itk_wrap_include("vcl_complex.h") +itk_wrap_include("complex") itk_wrap_include("vnl/vnl_c_vector.h") itk_wrap_class("vnl_c_vector" EXPLICIT_SPECIALIZATION) diff --git a/Modules/Core/Common/wrapping/vnl_diag_matrix.wrap b/Modules/Core/Common/wrapping/vnl_diag_matrix.wrap index c25a7cfd601..0c7b82a1770 100644 --- a/Modules/Core/Common/wrapping/vnl_diag_matrix.wrap +++ b/Modules/Core/Common/wrapping/vnl_diag_matrix.wrap @@ -1,7 +1,7 @@ # auto include feature must be disable because the class is not in the file # with the same name set(WRAPPER_AUTO_INCLUDE_HEADERS OFF) -itk_wrap_include("vcl_complex.h") +itk_wrap_include("complex") itk_wrap_include("vnl/vnl_diag_matrix.h") itk_wrap_class("vnl_diag_matrix" EXPLICIT_SPECIALIZATION) diff --git a/Modules/Core/Common/wrapping/vnl_matrix.wrap b/Modules/Core/Common/wrapping/vnl_matrix.wrap index 6443cc323d4..6ca982d3ae3 100644 --- a/Modules/Core/Common/wrapping/vnl_matrix.wrap +++ b/Modules/Core/Common/wrapping/vnl_matrix.wrap @@ -1,7 +1,7 @@ # auto include feature must be disable because the class is not in the file # with the same name set(WRAPPER_AUTO_INCLUDE_HEADERS OFF) -itk_wrap_include("vcl_complex.h") +itk_wrap_include("complex") itk_wrap_include("vnl/vnl_vector.h") itk_wrap_include("vnl/vnl_matrix.h") diff --git a/Modules/Core/Common/wrapping/vnl_vector.wrap b/Modules/Core/Common/wrapping/vnl_vector.wrap index f23486f8dac..c38d2cc1ac0 100644 --- a/Modules/Core/Common/wrapping/vnl_vector.wrap +++ b/Modules/Core/Common/wrapping/vnl_vector.wrap @@ -1,7 +1,7 @@ # auto include feature must be disable because the class is not in the file # with the same name set(WRAPPER_AUTO_INCLUDE_HEADERS OFF) -itk_wrap_include("vcl_complex.h") +itk_wrap_include("complex") itk_wrap_include("vnl/vnl_matrix.h") itk_wrap_include("vnl/vnl_vector.h") diff --git a/Wrapping/Generators/Python/itkTemplate.py b/Wrapping/Generators/Python/itkTemplate.py index 4d7c21850f5..02404e8a240 100644 --- a/Wrapping/Generators/Python/itkTemplate.py +++ b/Wrapping/Generators/Python/itkTemplate.py @@ -148,11 +148,6 @@ def __add__(self, paramSetString, cl): # itk::Numerics::Sample -> itkSample shortNameSize = len(re.sub(r':.*:', '', self.__name__)) attributeName = cl.__name__[shortNameSize:] - elif cl.__name__.startswith("vcl_complex"): - raise AttributeError('former vcl_complex, handling ' + str(cl.__name__)) - # C++ name is likely to be std::complex here, instead of the - # expected vcl_complex - attributeName = cl.__name__[len("vcl_complex"):] else: shortName = re.sub(r':.*:', '', self.__name__)