Skip to content

Commit

Permalink
ENH: Reorganizes the WrapITK Libraries to comply with the modular ITK
Browse files Browse the repository at this point in the history
Change-Id: I9733315c0e0deb3f335f82da88d455ee0164f54d
  • Loading branch information
CoSMo-MacPro authored and Ashish Sharma committed Jun 21, 2011
1 parent ebd5f4d commit 6c1ac81
Show file tree
Hide file tree
Showing 716 changed files with 861 additions and 360 deletions.
2 changes: 1 addition & 1 deletion Wrapping/WrapITK/Languages/Java/CMakeLists.txt
Expand Up @@ -138,7 +138,7 @@ macro(END_WRAP_LIBRARY_JAVA)
WRAP_ITK_INSTALL(/Configuration/Typedefs/java
"${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/java/${WRAPPER_LIBRARY_NAME}_ext.i")

set(interface_file "${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/${WRAPPER_LIBRARY_NAME}.i")
set(interface_file "${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/${WRAPPER_LIBRARY_NAME}Module.i")

# create java wrapping binaries
set(lib ${WRAPPER_LIBRARY_NAME}Java)
Expand Down
13 changes: 9 additions & 4 deletions Wrapping/WrapITK/Languages/Python/CMakeLists.txt
Expand Up @@ -361,7 +361,7 @@ macro(END_WRAP_LIBRARY_PYTHON)


# set some var reused later
set(interface_file "${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/${WRAPPER_LIBRARY_NAME}.i")
set(interface_file "${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/${WRAPPER_LIBRARY_NAME}Module.i")
set(lib ${WRAPPER_LIBRARY_NAME}Python)
set(python_file "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${lib}.py")
set(cpp_file "${CMAKE_CURRENT_BINARY_DIR}/${WRAPPER_LIBRARY_NAME}Python.cpp")
Expand Down Expand Up @@ -448,13 +448,13 @@ macro(END_WRAP_MODULE_PYTHON group_name)

set(base_name ${group_name})

if("${group_name}" STREQUAL "itkVectorContainer")
if("${group_name}" STREQUAL "itkVectorContainer")
# add a template definition for the superclass which is not in ITK
set(text )
foreach(d ${WRAP_ITK_DIMS})
foreach(t ${WRAP_ITK_SCALAR})
set(text "${text}%template(vectoritkLevelSetNode${t}${d}) std::vector< itkLevelSetNode${t}${d} >;\n")
ADD_PYTHON_CONFIG_TEMPLATE("vector" "std::vector" "vectoritkLevelSetNode${t}${d}" "${ITKT_LSN${t}${d}}")
#set(text "${text}%template(vectoritkLevelSetNode${t}${d}) std::vector< itkLevelSetNode${t}${d} >;\n")
#ADD_PYTHON_CONFIG_TEMPLATE("vector" "std::vector" "vectoritkLevelSetNode${t}${d}" "${ITKT_LSN${t}${d}}")
endforeach(t)

set(text "${text}%template(vectoritkVectorD${d}) std::vector< itkVectorD${d} >;\n")
Expand Down Expand Up @@ -494,6 +494,11 @@ macro(END_WRAP_MODULE_PYTHON group_name)
# add a template definition for the superclass which is not in ITK
set(text )
foreach(d ${WRAP_ITK_DIMS})
foreach(t ${WRAP_ITK_SCALAR})
set(text "${text}%template(vectoritkLevelSetNode${t}${d}) std::vector< itkLevelSetNode${t}${d} >;\n")
ADD_PYTHON_CONFIG_TEMPLATE("vector" "std::vector" "vectoritkLevelSetNode${t}${d}" "${ITKT_LSN${t}${d}}")
endforeach(t)

set(text "${text}%template(mapULitkQuadEdgeMeshPointF${d}) std::map< unsigned long, itkQuadEdgeMeshPointF${d}, std::less< unsigned long > >;\n")
ADD_PYTHON_CONFIG_TEMPLATE("map" "std::map" "mapULitkQuadEdgeMeshPointF${d}" "unsigned long, itk::QuadEdgeMeshPoint< float, ${d} >")

Expand Down
2 changes: 1 addition & 1 deletion Wrapping/WrapITK/Languages/Python/PyUtils/CMakeLists.txt
Expand Up @@ -3,7 +3,7 @@

WRAP_LIBRARY("ITKPyUtils" Python)

set(WRAPPER_LIBRARY_DEPENDS Base)
set(WRAPPER_LIBRARY_DEPENDS ITKCommon)
set(WRAPPER_LIBRARY_LINK_LIBRARIES ${ITK_LIBRARIES} ${PYTHON_LIBRARY} )

set(WRAPPER_LIBRARY_CXX_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/itkPyCommand.cxx")
Expand Down
2 changes: 1 addition & 1 deletion Wrapping/WrapITK/Languages/Ruby/CMakeLists.txt
Expand Up @@ -83,7 +83,7 @@ macro(END_WRAP_LIBRARY_RUBY)


# set some var reused later
set(interface_file "${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/${WRAPPER_LIBRARY_NAME}.i")
set(interface_file "${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/${WRAPPER_LIBRARY_NAME}Module.i")
set(lib ${WRAPPER_LIBRARY_NAME}Ruby)
set(cpp_file "${CMAKE_CURRENT_BINARY_DIR}/${WRAPPER_LIBRARY_NAME}Ruby.cpp")

Expand Down
4 changes: 2 additions & 2 deletions Wrapping/WrapITK/Languages/SwigInterface/CMakeLists.txt
Expand Up @@ -121,7 +121,7 @@ macro(END_WRAP_LIBRARY_SWIG_INTERFACE)
set(idx_file "${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/${module}.idx")
set(idx_files ${idx_files} ${idx_file})
set(includes_file "${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/${WRAPPER_LIBRARY_NAME}.includes")
set(module_interface_file "${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/${WRAPPER_LIBRARY_NAME}.i")
set(module_interface_file "${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/${WRAPPER_LIBRARY_NAME}Module.i")
# prepare the options
set(opts )
foreach(dep ${WRAPPER_LIBRARY_DEPENDS})
Expand Down Expand Up @@ -184,7 +184,7 @@ macro(END_WRAP_LIBRARY_SWIG_INTERFACE)
@ONLY IMMEDIATE )
WRAP_ITK_INSTALL("/Configuration/Typedefs" "${mdx_file}")

set(module_interface_file "${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/${WRAPPER_LIBRARY_NAME}.i")
set(module_interface_file "${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/${WRAPPER_LIBRARY_NAME}Module.i")
set(module_interface_ext_file "${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/${WRAPPER_LIBRARY_NAME}_ext.i")
set(deps_imports )
set(deps_includes )
Expand Down
2 changes: 1 addition & 1 deletion Wrapping/WrapITK/Languages/Tcl/CMakeLists.txt
Expand Up @@ -78,7 +78,7 @@ macro(END_WRAP_LIBRARY_TCL)


# set some var reused later
set(interface_file "${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/${WRAPPER_LIBRARY_NAME}.i")
set(interface_file "${WRAPPER_MASTER_INDEX_OUTPUT_DIR}/${WRAPPER_LIBRARY_NAME}Module.i")
set(lib ${WRAPPER_LIBRARY_NAME}Tcl)
set(cpp_file "${CMAKE_CURRENT_BINARY_DIR}/${WRAPPER_LIBRARY_NAME}Tcl.cpp")

Expand Down
116 changes: 81 additions & 35 deletions Wrapping/WrapITK/Libraries/CMakeLists.txt
@@ -1,11 +1,8 @@

set(WRAP_ITK_LIBRARIES
VXLNumerics
Base
)
set(WRAP_ITK_LIBRARIES ITKCommon)

# set Iterators library to OFF by default
# it is currently usable only when applying patches to ITK, and will only
# it is currently usable only when applying patches to , and will only
# take place and time to build
# TODO: remove this line when iterators will be usable without patch
option(WRAP_Iterators "Build Iterators library." OFF)
Expand All @@ -18,39 +15,88 @@ else(USE_FFTWD OR USE_FFTWF)
endif(USE_FFTWD OR USE_FFTWF)

set(optional_libraries
Numerics
Transforms
SpatialObject
BinaryMorphology
Calculators
Compose
Interpolators # is required by DeformableTransforms
Mesh # is required by DeformableTransforms
DeformableTransforms
Denoising
DistanceMap
EdgesAndContours
FFT
FFTW
Filtering
IntensityFilters
IO
Iterators
LevelSet
Morphology
#Patented
PixelMath
Resize # required by Registration
Registration
Review
SegmentationAndThreshold
SegmentationValidation
SimpleFilters
UnaryPixelMath
ITKStatistics
ITKTransform
ITKImageFunction
ITKImageFilterBase
ITKImageGrid
ITKFiniteDifference
ITKCurvatureFlow
ITKAnisotropicSmoothing
ITKMesh
ITKIOBase
ITKSpatialObjects
ITKImageCompose
ITKImageStatistics
ITKPath
ITKImageIntensity
ITKSmoothing
ITKImageGradient
ITKImageFeature
ITKThresholding
ITKConnectedComponents
ITKIOPNG
ITKMathematicalMorphology
ITKNarrowBand
ITKDistanceMap
ITKSignedDistanceFunction
ITKOptimizers
ITKImageCompare
ITKQuadEdgeMesh
ITKFastMarching
ITKLevelSets
ITKAntiAlias
ITKPolynomials
ITKBiasCorrection
ITKBioCell
ITKIORAW
ITKBlox
ITKClassifiers
ITKDeformableMesh
ITKDeformationField
ITKDiffusionTensorImage
ITKEigen
ITKRegistrationCommon
ITKFEM
ITKPDEDeformableRegistration
ITKFEMRegistration
ITKFFT
ITKImageLabel
ITKIOBioRad
ITKIOBMP
ITKIOGDCM
ITKIOIPL
ITKIOGE
ITKIOGIPL
ITKIOJPEG
ITKIOTIFF
ITKIOLSM
ITKIOMeta
ITKIONIFTI
ITKIONRRD
ITKIOSiemens
ITKIOXML
ITKIOSpatialObjects
ITKIOStimulate
ITKIOVTK
ITKKLMRegionGrowing
ITKLabelVoting
ITKMarkovRandomFieldsClassifiers
ITKNeuralNetworks
ITKQuadEdgeMeshFiltering
ITKRegionGrowing
ITKSpatialFunction
ITKVoronoi
ITKVTK
ITKWatersheds
ITKDeprecated
ITKIOHDF5
ITKReview
ITKTestKernel
)

foreach(library ${optional_libraries})
option(WRAP_${library} "Build ${library} library." ON)
option(WRAP_${library} "Build ${library} library." OFF)
mark_as_advanced(WRAP_${library})
if(WRAP_${library})
set(WRAP_ITK_LIBRARIES ${WRAP_ITK_LIBRARIES} ${library})
Expand Down
8 changes: 0 additions & 8 deletions Wrapping/WrapITK/Libraries/Calculators/CMakeLists.txt

This file was deleted.

8 changes: 0 additions & 8 deletions Wrapping/WrapITK/Libraries/Compose/CMakeLists.txt

This file was deleted.

12 changes: 0 additions & 12 deletions Wrapping/WrapITK/Libraries/DeformableTransforms/CMakeLists.txt

This file was deleted.

8 changes: 0 additions & 8 deletions Wrapping/WrapITK/Libraries/DistanceMap/CMakeLists.txt

This file was deleted.

23 changes: 0 additions & 23 deletions Wrapping/WrapITK/Libraries/FFT/CMakeLists.txt

This file was deleted.

14 changes: 0 additions & 14 deletions Wrapping/WrapITK/Libraries/IO/CMakeLists.txt

This file was deleted.

12 changes: 12 additions & 0 deletions Wrapping/WrapITK/Libraries/ITKAnisotropicSmoothing/CMakeLists.txt
@@ -0,0 +1,12 @@
WRAP_LIBRARY(ITKAnisotropicSmoothing)

set(WRAPPER_LIBRARY_GROUPS
)

set(WRAPPER_LIBRARY_DEPENDS ITKCommon ITKStatistics ITKTransform ITKImageFunction ITKImageFilterBase ITKImageGrid ITKFiniteDifference ITKCurvatureFlow)

set(WRAPPER_LIBRARY_LINK_LIBRARIES ${ITK_LIBRARIES})

AUTO_INCLUDE_MODULES()

END_WRAP_LIBRARY()
12 changes: 12 additions & 0 deletions Wrapping/WrapITK/Libraries/ITKAntiAlias/CMakeLists.txt
@@ -0,0 +1,12 @@
WRAP_LIBRARY(ITKAntiAlias)

set(WRAPPER_LIBRARY_GROUPS
)

set(WRAPPER_LIBRARY_DEPENDS ITKCommon ITKStatistics ITKTransform ITKImageFunction ITKImageFilterBase ITKImageGrid ITKFiniteDifference ITKCurvatureFlow ITKAnisotropicSmoothing ITKMesh ITKIO-Base ITKSpatialObjects ITKImageCompose ITKImageStatistics ITKPath ITKImageIntensity ITKSmoothing ITKImageGradient ITKImageFeature ITKThresholding ITKConnectedComponents ITKIO-PNG ITKMathematicalMorphology ITKNarrowBand ITKDistanceMap ITKSignedDistanceFunction ITKOptimizers ITKImageCompare ITKQuadEdgeMesh ITKFastMarching ITKLevelSets)

set(WRAPPER_LIBRARY_LINK_LIBRARIES ${ITK_LIBRARIES})

AUTO_INCLUDE_MODULES()

END_WRAP_LIBRARY()
@@ -1,12 +1,12 @@
WRAP_LIBRARY(Resize)
WRAP_LIBRARY(ITKAnisotropicSmoothing)

set(WRAPPER_LIBRARY_GROUPS
itkExtractImageFilter
)

set(WRAPPER_LIBRARY_DEPENDS VXLNumerics Base)
set(WRAPPER_LIBRARY_DEPENDS ITKCommon)

set(WRAPPER_LIBRARY_LINK_LIBRARIES ${ITK_LIBRARIES})

AUTO_INCLUDE_MODULES()

END_WRAP_LIBRARY()
12 changes: 12 additions & 0 deletions Wrapping/WrapITK/Libraries/ITKClassifiers/CMakeLists.txt
@@ -0,0 +1,12 @@
WRAP_LIBRARY(ITKClassifiers)

set(WRAPPER_LIBRARY_GROUPS
)

set(WRAPPER_LIBRARY_DEPENDS ITKCommon ITKStatistics ITKTransform ITKImageFunction ITKImageFilterBase ITKImageGrid ITKFiniteDifference ITKCurvatureFlow ITKAnisotropicSmoothing ITKMesh ITKIO-Base ITKSpatialObjects ITKImageCompose ITKImageStatistics ITKPath ITKImageIntensity ITKSmoothing ITKImageGradient ITKImageFeature ITKThresholding ITKConnectedComponents ITKIO-PNG ITKMathematicalMorphology ITKNarrowBand ITKDistanceMap ITKSignedDistanceFunction ITKOptimizers ITKImageCompare ITKQuadEdgeMesh ITKFastMarching ITKLevelSets ITKAntiAlias ITKPolynomials ITKBiasCorrection ITKBioCell ITKIO-RAW ITKBlox)

set(WRAPPER_LIBRARY_LINK_LIBRARIES ${ITK_LIBRARIES})

AUTO_INCLUDE_MODULES()

END_WRAP_LIBRARY()

0 comments on commit 6c1ac81

Please sign in to comment.