From: Eduardo Davila Date: Tue, 3 May 2011 11:04:13 +0000 (+0000) Subject: no message X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=df729a61d77f99996f3399da32ca0d1e95718269;p=crea.git no message --- diff --git a/appli/creaNewProject/NewProject/bbtk_mySamplePackage_PKG/src/bbmySamplePackagemySampleBoxWithITK.h b/appli/creaNewProject/NewProject/bbtk_mySamplePackage_PKG/src/bbmySamplePackagemySampleBoxWithITK.h index 6050304..b0532e4 100644 --- a/appli/creaNewProject/NewProject/bbtk_mySamplePackage_PKG/src/bbmySamplePackagemySampleBoxWithITK.h +++ b/appli/creaNewProject/NewProject/bbtk_mySamplePackage_PKG/src/bbmySamplePackagemySampleBoxWithITK.h @@ -2,7 +2,31 @@ #ifndef __bbmySamplePackagemySampleBoxWithITK_h_INCLUDED__ #define __bbmySamplePackagemySampleBoxWithITK_h_INCLUDED__ - +// +// +// To create a new Package with boxes that use itk don't forget 3 steps: +// +// 1. Modify de CMakeList.txt file of the whole project to include cmake itk mechanism. +// 1.1 Put ON the option SET(USE_ITK ON) +// +// 2. Modify de CMakeList.txt file of this package. +// 2.1. Uncomment the line SET(${BBTK_PACKAGE_NAME}_USE_ITK ON) +// 2.2. Add the line: +// ${BBTK_DIR}/../../../include/bbitk +// In the SET(${BBTK_PACKAGE_NAME}_INCLUDE_DIRS section +// +// 3. In the .h file of your box, don't forget: +// 3.1. Define the DIM and the TYPE of the images +// 3.2. Define the ProcessTemplate method with the +// BBTK_TEMPLATE_ITK_IMAGE_SWITCH mechanism. +// +// Note: We use a generic bbtk_itk_pointer to transfere the itkImage.. +// +// + + + +// Definition of the DIM and TYPE of the itkImage .. #define BBTK_ITK_IMAGE_DIM_2 #define BBTK_ITK_IMAGE_DIM_3 #define BBTK_ITK_IMAGE_DIM_4