fw4spl
fwData/Image/V1ToV2.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
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 #ifndef __FWSTRUCTURALPATCH_FWDATA_IMAGE_V1TOV2_HPP__
8 #define __FWSTRUCTURALPATCH_FWDATA_IMAGE_V1TOV2_HPP__
9 
10 #include "fwStructuralPatch/config.hpp"
11 
12 #include <fwAtomsPatch/IStructuralPatch.hpp>
13 
14 namespace fwStructuralPatch
15 {
16 
17 namespace fwData
18 {
19 
20 namespace Image
21 {
22 
24 class FWSTRUCTURALPATCH_CLASS_API V1ToV2 : public ::fwAtomsPatch::IStructuralPatch
25 {
26 public:
29 
31  FWSTRUCTURALPATCH_API V1ToV2();
32 
34  FWSTRUCTURALPATCH_API ~V1ToV2();
35 
37  FWSTRUCTURALPATCH_API V1ToV2( const V1ToV2& cpy );
38 
44  FWSTRUCTURALPATCH_API virtual void apply(
45  const ::fwAtoms::Object::sptr& previous,
46  const ::fwAtoms::Object::sptr& current,
47  ::fwAtomsPatch::IPatch::NewVersionsType& newVersions) override;
48 
49 };
50 
51 } // namespace Image
52 
53 } // namespace fwData
54 
55 } // namespace fwStructuralPatch
56 
57 #endif /* __FWSTRUCTURALPATCH_FWDATA_IMAGE_V1TOV2_HPP__ */
58 
Structural patch to convert a fwData::Image from version &#39;1&#39; to version &#39;2&#39;.
Contains creators and structural patches.
Definition: Landmarks1.hpp:13
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Base class of all structural patches.
Contains the representation of the data objects used in the framework.