Skip to content

Commit

Permalink
COMP: Fix duplicate wrapping warnings. Closes #51.
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Mar 1, 2022
1 parent 1c383c7 commit 893b043
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 66 deletions.
1 change: 1 addition & 0 deletions wrapping/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
itk_wrap_module(BoneMorphometry)

set(WRAPPER_SUBMODULE_ORDER
itkBoneCommon
itkBoneMorphometryFeaturesFilter
itkBoneMorphometryFeaturesImageFilter
itkReplaceFeatureMapNanInfImageFilter)
Expand Down
25 changes: 25 additions & 0 deletions wrapping/itkBoneCommon.wrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
set(OutputVectorDim 5)

WRAP_TYPE("itk::Image" "I" "itkImage.h")
ADD_TEMPLATE("V${ITKM_F}${OutputVectorDim}3" "itk::Vector<${ITKT_F},${OutputVectorDim}>,3")
END_WRAP_TYPE()

itk_wrap_class("itk::Image" POINTER)
itk_wrap_template("V${ITKM_F}${OutputVectorDim}3" "itk::Vector<${ITKT_F},${OutputVectorDim}>,3")
itk_end_wrap_class()

itk_wrap_class("itk::ImageSource" POINTER)
itk_wrap_template("IV${ITKM_F}${OutputVectorDim}3" "itk::Image<itk::Vector<${ITKT_F},${OutputVectorDim}>,3>")
itk_end_wrap_class()

itk_wrap_simple_class("itk::ImageIOBase" )

itk_wrap_class("itk::ImageFileReader" POINTER)
itk_wrap_template("IV${ITKM_F}${OutputVectorDim}3"
"itk::Image<itk::Vector<${ITKT_F},${OutputVectorDim}>,3>")
itk_end_wrap_class()

itk_wrap_class("itk::ImageFileWriter" POINTER)
itk_wrap_template("IV${ITKM_F}${OutputVectorDim}3"
"itk::Image<itk::Vector<${ITKT_F},${OutputVectorDim}>,3>")
itk_end_wrap_class()
31 changes: 0 additions & 31 deletions wrapping/itkBoneMorphometryFeaturesImageFilter.wrap
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
set(OutputVectorDim 5)
itk_wrap_class("itk::FixedArray")
itk_wrap_template("${ITKM_F}${OutputVectorDim}" "${ITKT_F},${OutputVectorDim}")
itk_end_wrap_class()

itk_wrap_class("itk::Vector")
itk_wrap_template("${ITKM_F}${OutputVectorDim}" "${ITKT_F},${OutputVectorDim}")
itk_end_wrap_class()

WRAP_TYPE("itk::Image" "I" "itkImage.h")
ADD_TEMPLATE("V${ITKM_F}${OutputVectorDim}3" "itk::Vector<${ITKT_F},${OutputVectorDim}>,3")
END_WRAP_TYPE()

itk_wrap_class("itk::Image" POINTER)
itk_wrap_template("V${ITKM_F}${OutputVectorDim}3" "itk::Vector<${ITKT_F},${OutputVectorDim}>,3")
itk_end_wrap_class()

itk_wrap_class("itk::ImageSource" POINTER)
itk_wrap_template("IV${ITKM_F}${OutputVectorDim}3" "itk::Image<itk::Vector<${ITKT_F},${OutputVectorDim}>,3>")
itk_end_wrap_class()

itk_wrap_class("itk::ImageToImageFilter" POINTER)
foreach(t ${WRAP_ITK_SCALAR})
Expand All @@ -26,18 +7,6 @@ itk_wrap_class("itk::ImageToImageFilter" POINTER)
endforeach()
itk_end_wrap_class()

itk_wrap_simple_class("itk::ImageIOBase" )

itk_wrap_class("itk::ImageFileReader" POINTER)
itk_wrap_template("IV${ITKM_F}${OutputVectorDim}3"
"itk::Image<itk::Vector<${ITKT_F},${OutputVectorDim}>,3>")
itk_end_wrap_class()

itk_wrap_class("itk::ImageFileWriter" POINTER)
itk_wrap_template("IV${ITKM_F}${OutputVectorDim}3"
"itk::Image<itk::Vector<${ITKT_F},${OutputVectorDim}>,3>")
itk_end_wrap_class()

itk_wrap_class("itk::BoneMorphometryFeaturesImageFilter" POINTER)
foreach(t ${WRAP_ITK_SCALAR})
itk_wrap_template("${ITKM_I${t}3}IV${ITKM_F}${OutputVectorDim}3"
Expand Down
37 changes: 2 additions & 35 deletions wrapping/itkReplaceFeatureMapNanInfImageFilter.wrap
Original file line number Diff line number Diff line change
@@ -1,41 +1,8 @@
set(OutputVectorDim 5)
itk_wrap_class("itk::FixedArray")
itk_wrap_template("${ITKM_F}${OutputVectorDim}" "${ITKT_F},${OutputVectorDim}")
itk_end_wrap_class()

itk_wrap_class("itk::Vector")
itk_wrap_template("${ITKM_F}${OutputVectorDim}" "${ITKT_F},${OutputVectorDim}")
itk_end_wrap_class()

WRAP_TYPE("itk::Image" "I" "itkImage.h")
ADD_TEMPLATE("V${ITKM_F}${OutputVectorDim}3" "itk::Vector<${ITKT_F},${OutputVectorDim}>,3")
END_WRAP_TYPE()

itk_wrap_class("itk::Image" POINTER)
itk_wrap_template("V${ITKM_F}${OutputVectorDim}3" "itk::Vector<${ITKT_F},${OutputVectorDim}>,3")
itk_end_wrap_class()

itk_wrap_class("itk::ImageSource" POINTER)
itk_wrap_template("IV${ITKM_F}${OutputVectorDim}3" "itk::Image<itk::Vector<${ITKT_F},${OutputVectorDim}>,3>")
itk_end_wrap_class()

itk_wrap_class("itk::ImageToImageFilter" POINTER)
foreach(t ${WRAP_ITK_SCALAR})
itk_wrap_template("IV${ITKM_F}${OutputVectorDim}3IV${ITKM_F}${OutputVectorDim}3"
"itk::Image<itk::Vector<${ITKT_F},${OutputVectorDim}>,3>, itk::Image<itk::Vector<${ITKT_F},${OutputVectorDim}>,3>")
endforeach()
itk_end_wrap_class()

itk_wrap_simple_class("itk::ImageIOBase" )

itk_wrap_class("itk::ImageFileReader" POINTER)
itk_wrap_template("IV${ITKM_F}${OutputVectorDim}3"
"itk::Image<itk::Vector<${ITKT_F},${OutputVectorDim}>,3>")
itk_end_wrap_class()

itk_wrap_class("itk::ImageFileWriter" POINTER)
itk_wrap_template("IV${ITKM_F}${OutputVectorDim}3"
"itk::Image<itk::Vector<${ITKT_F},${OutputVectorDim}>,3>")
itk_wrap_template("IV${ITKM_F}${OutputVectorDim}3IV${ITKM_F}${OutputVectorDim}3"
"itk::Image<itk::Vector<${ITKT_F},${OutputVectorDim}>,3>, itk::Image<itk::Vector<${ITKT_F},${OutputVectorDim}>,3>")
itk_end_wrap_class()

itk_wrap_class("itk::ReplaceFeatureMapNanInfImageFilter" POINTER)
Expand Down

0 comments on commit 893b043

Please sign in to comment.