1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
28 #include "clitkImageCommon.h"
29 #include "clitkDicomRTDoseIOFactory.h"
30 #include "clitkVoxImageIOFactory.h"
31 #include "clitkVfImageIOFactory.h"
32 #include "clitkXdrImageIOFactory.h"
33 #include "rtkHisImageIOFactory.h"
34 #include "rtkHndImageIOFactory.h"
35 #include "rtkEdfImageIOFactory.h"
36 #include "rtkImagXImageIOFactory.h"
37 #include "rtkXRadImageIOFactory.h"
38 #include "clitkEsrfHstImageIOFactory.h"
39 #include "clitkGateAsciiImageIOFactory.h"
40 #include "clitkConfiguration.h"
41 #if CLITK_PRIVATE_FEATURES
42 #include "clitkUsfImageIOFactory.h"
43 #include "clitkUSVoxImageIOFactory.h"
44 #include "clitkSvlImageIOFactory.h"
46 #if ITK_VERSION_MAJOR >= 4
47 #include "itkGDCMImageIOFactory.h"
50 //--------------------------------------------------------------------
52 void clitk::RegisterClitkFactories()
54 #if ITK_VERSION_MAJOR >= 4
55 std::list< itk::ObjectFactoryBase * > fl = itk::GDCMImageIOFactory::GetRegisteredFactories();
56 for (std::list< itk::ObjectFactoryBase * >::iterator it = fl.begin(); it != fl.end(); ++it)
57 if (dynamic_cast<itk::GDCMImageIOFactory *>(*it))
59 itk::GDCMImageIOFactory::UnRegisterFactory(*it);
63 #if CLITK_PRIVATE_FEATURES
64 clitk::UsfImageIOFactory::RegisterOneFactory();
65 clitk::USVoxImageIOFactory::RegisterOneFactory();
66 clitk::SvlImageIOFactory::RegisterOneFactory();
68 clitk::GateAsciiImageIOFactory::RegisterOneFactory();
69 clitk::DicomRTDoseIOFactory::RegisterOneFactory();
70 #if ITK_VERSION_MAJOR <= 3
71 itk::ImageIOFactory::RegisterBuiltInFactories();
73 clitk::VoxImageIOFactory::RegisterOneFactory();
74 clitk::VfImageIOFactory::RegisterOneFactory();
75 clitk::XdrImageIOFactory::RegisterOneFactory();
76 rtk::HisImageIOFactory::RegisterOneFactory();
77 rtk::HndImageIOFactory::RegisterOneFactory();
78 rtk::EdfImageIOFactory::RegisterOneFactory();
79 rtk::ImagXImageIOFactory::RegisterOneFactory();
80 rtk::XRadImageIOFactory::RegisterOneFactory();
81 clitk::EsrfHstImageIOFactory::RegisterOneFactory();
82 #if ITK_VERSION_MAJOR >= 4
83 itk::GDCMImageIOFactory::RegisterOneFactory();