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 ===========================================================================**/
18 #ifndef clitkGateSimulation2DicomGenericFilter_h
19 #define clitkGateSimulation2DicomGenericFilter_h
21 /* =================================================
22 * @file clitkGateSimulation2DicomGenericFilter.h
28 ===================================================*/
33 #include "clitkImageCommon.h"
34 #include "clitkGateSimulation2Dicom_ggo.h"
37 #include "itkLightObject.h"
38 #include "itkGDCMImageIO.h"
39 #include "itkMetaDataDictionary.h"
40 #include "itkGDCMSeriesFileNames.h"
41 #include "itkImageSeriesReader.h"
42 #include "itkImageSeriesWriter.h"
43 #include "itkImageFileWriter.h"
45 #include <itksys/SystemTools.hxx>
49 template<class args_info_type>
50 class ITK_EXPORT GateSimulation2DicomGenericFilter : public itk::LightObject
53 //----------------------------------------
55 //----------------------------------------
56 typedef GateSimulation2DicomGenericFilter Self;
57 typedef itk::LightObject Superclass;
58 typedef itk::SmartPointer<Self> Pointer;
59 typedef itk::SmartPointer<const Self> ConstPointer;
61 // Method for creation through the object factory
64 // Run-time type information (and related methods)
65 itkTypeMacro( GateSimulation2DicomGenericFilter, LightObject );
68 //----------------------------------------
70 //----------------------------------------
73 //----------------------------------------
75 //----------------------------------------
76 void SetArgsInfo(const args_info_type & a)
79 m_Verbose=m_ArgsInfo.verbose_flag;
80 m_InputFileName=m_ArgsInfo.input_arg;
84 //----------------------------------------
86 //----------------------------------------
91 //----------------------------------------
92 // Constructor & Destructor
93 //----------------------------------------
94 GateSimulation2DicomGenericFilter();
95 ~GateSimulation2DicomGenericFilter() {};
98 //----------------------------------------
100 //----------------------------------------
101 template <unsigned int Dimension> void UpdateWithDim(std::string PixelType);
102 template <unsigned int Dimension, class PixelType> void UpdateWithDimAndPixelType();
105 //----------------------------------------
107 //----------------------------------------
108 args_info_type m_ArgsInfo;
110 std::string m_InputFileName;
115 } // end namespace clitk
117 #ifndef ITK_MANUAL_INSTANTIATION
118 #include "clitkGateSimulation2DicomGenericFilter.txx"
121 #endif // #define clitkGateSimulation2DicomGenericFilter_h