fw4spl
patch/fwStructuralPatch/src/fwStructuralPatch/autoload.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include "fwStructuralPatch/fwData/Acquisition/V1ToFwMedDataImageSeriesV1.hpp"
8 #include "fwStructuralPatch/fwData/Image/V1ToV2.hpp"
9 #include "fwStructuralPatch/fwData/Material/V1ToV2.hpp"
10 #include "fwStructuralPatch/fwData/Material/V2ToV3.hpp"
11 #include "fwStructuralPatch/fwData/Material/V3ToV4.hpp"
12 #include "fwStructuralPatch/fwData/Material/V4ToV3.hpp"
13 #include "fwStructuralPatch/fwData/Mesh/V1ToV2.hpp"
14 #include "fwStructuralPatch/fwData/Mesh/V1ToV3.hpp"
15 #include "fwStructuralPatch/fwData/Mesh/V2ToV3.hpp"
16 #include "fwStructuralPatch/fwData/Patient/V1ToFwMedDataPatientV1.hpp"
17 #include "fwStructuralPatch/fwData/Reconstruction/V1ToV2.hpp"
18 #include "fwStructuralPatch/fwData/Reconstruction/V2ToV3.hpp"
19 #include "fwStructuralPatch/fwData/Study/V1ToFwMedDataStudyV1.hpp"
20 #include "fwStructuralPatch/fwData/TransformationMatrix3D/V1ToV2.hpp"
21 #include "fwStructuralPatch/fwMedData/ImageSeries/V1ToV2.hpp"
22 #include "fwStructuralPatch/fwMedData/ImageSeries/V2ToV1.hpp"
23 #include "fwStructuralPatch/fwMedData/ModelSeries/V1ToV2.hpp"
24 #include "fwStructuralPatch/fwMedData/ModelSeries/V2ToV1.hpp"
25 
26 #include <fwAtomsPatch/StructuralPatchDB.hpp>
27 
28 namespace fwStructuralPatch
29 {
30 
32 struct runner
33 {
34  runner()
35  {
36  ::fwAtomsPatch::StructuralPatchDB::sptr structuralPatches = ::fwAtomsPatch::StructuralPatchDB::getDefault();
37  structuralPatches->registerPatch(::fwStructuralPatch::fwData::Reconstruction::V1ToV2::New());
38  structuralPatches->registerPatch(::fwStructuralPatch::fwData::Reconstruction::V2ToV3::New());
39  structuralPatches->registerPatch(::fwStructuralPatch::fwData::Patient::V1ToFwMedDataPatientV1::New());
40  structuralPatches->registerPatch(::fwStructuralPatch::fwData::Study::V1ToFwMedDataStudyV1::New());
41  structuralPatches->registerPatch(::fwStructuralPatch::fwData::Acquisition::V1ToFwMedDataImageSeriesV1::New());
42  structuralPatches->registerPatch(::fwStructuralPatch::fwData::Image::V1ToV2::New());
43  structuralPatches->registerPatch(::fwStructuralPatch::fwData::Material::V1ToV2::New());
44  structuralPatches->registerPatch(::fwStructuralPatch::fwData::Material::V2ToV3::New());
45  structuralPatches->registerPatch(::fwStructuralPatch::fwData::Material::V3ToV4::New());
46  structuralPatches->registerPatch(::fwStructuralPatch::fwData::Material::V4ToV3::New());
47  structuralPatches->registerPatch(::fwStructuralPatch::fwData::Mesh::V1ToV2::New());
48  structuralPatches->registerPatch(::fwStructuralPatch::fwData::Mesh::V1ToV3::New());
49  structuralPatches->registerPatch(::fwStructuralPatch::fwData::Mesh::V2ToV3::New());
50  structuralPatches->registerPatch(::fwStructuralPatch::fwData::TransformationMatrix3D::V1ToV2::New());
51  structuralPatches->registerPatch(::fwStructuralPatch::fwMedData::ImageSeries::V1ToV2::New());
52  structuralPatches->registerPatch(::fwStructuralPatch::fwMedData::ImageSeries::V2ToV1::New());
53  structuralPatches->registerPatch(::fwStructuralPatch::fwMedData::ModelSeries::V1ToV2::New());
54  structuralPatches->registerPatch(::fwStructuralPatch::fwMedData::ModelSeries::V2ToV1::New());
55  }
56 
57  static runner r;
58 };
59 runner runner::r;
60 
61 } // namespace fwStructuralPatch
Registers structural patches dedicated to data conversions.
Contains creators and structural patches.
Definition: Landmarks1.hpp:13
::fwAtomsPatch::StructuralPatchDB::sptr getDefault()
Returns default instance.