X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkIO.cxx;h=5c5977baa4fb7326da551a662a1ab44c1cf35459;hb=4288e22b0855b6c201333256629238795536032b;hp=011147d868fedb67d05b17cd3ec5ac15ec1b6135;hpb=e4df7fea16df0710b014c7fd206086e5fdce0aa8;p=clitk.git diff --git a/common/clitkIO.cxx b/common/clitkIO.cxx index 011147d..5c5977b 100644 --- a/common/clitkIO.cxx +++ b/common/clitkIO.cxx @@ -28,22 +28,42 @@ #include "clitkImageCommon.h" #include "clitkDicomRTDoseIOFactory.h" #include "clitkVoxImageIOFactory.h" -#include "clitkHisImageIOFactory.h" #include "clitkVfImageIOFactory.h" #include "clitkXdrImageIOFactory.h" -#include "clitkHndImageIOFactory.h" +#include "rtkHisImageIOFactory.h" +#include "rtkHndImageIOFactory.h" +#include "rtkEdfImageIOFactory.h" +#include "rtkImagXImageIOFactory.h" +#include "rtkXRadImageIOFactory.h" +#include "clitkEsrfHstImageIOFactory.h" #include "clitkGateAsciiImageIOFactory.h" #include "clitkConfiguration.h" #if CLITK_PRIVATE_FEATURES #include "clitkUsfImageIOFactory.h" + #include "clitkUSVoxImageIOFactory.h" + #include "clitkSvlImageIOFactory.h" +#endif +#if ITK_VERSION_MAJOR >= 4 + #include "itkGDCMImageIOFactory.h" #endif //-------------------------------------------------------------------- // Register factories void clitk::RegisterClitkFactories() { +#if ITK_VERSION_MAJOR >= 4 + std::list< itk::ObjectFactoryBase * > fl = itk::GDCMImageIOFactory::GetRegisteredFactories(); + for (std::list< itk::ObjectFactoryBase * >::iterator it = fl.begin(); it != fl.end(); ++it) + if (dynamic_cast(*it)) + { + itk::GDCMImageIOFactory::UnRegisterFactory(*it); + break; + } +#endif #if CLITK_PRIVATE_FEATURES clitk::UsfImageIOFactory::RegisterOneFactory(); + clitk::USVoxImageIOFactory::RegisterOneFactory(); + clitk::SvlImageIOFactory::RegisterOneFactory(); #endif clitk::GateAsciiImageIOFactory::RegisterOneFactory(); clitk::DicomRTDoseIOFactory::RegisterOneFactory(); @@ -52,8 +72,15 @@ void clitk::RegisterClitkFactories() #endif clitk::VoxImageIOFactory::RegisterOneFactory(); clitk::VfImageIOFactory::RegisterOneFactory(); - clitk::HisImageIOFactory::RegisterOneFactory(); clitk::XdrImageIOFactory::RegisterOneFactory(); - clitk::HndImageIOFactory::RegisterOneFactory(); + rtk::HisImageIOFactory::RegisterOneFactory(); + rtk::HndImageIOFactory::RegisterOneFactory(); + rtk::EdfImageIOFactory::RegisterOneFactory(); + rtk::ImagXImageIOFactory::RegisterOneFactory(); + rtk::XRadImageIOFactory::RegisterOneFactory(); + clitk::EsrfHstImageIOFactory::RegisterOneFactory(); +#if ITK_VERSION_MAJOR >= 4 + itk::GDCMImageIOFactory::RegisterOneFactory(); +#endif } ////