fw4spl
Material/V2ToV3.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_MATERIAL_V2TOV3_HPP__
8 #define __FWSTRUCTURALPATCH_FWDATA_MATERIAL_V2TOV3_HPP__
9 
10 #include "fwStructuralPatch/config.hpp"
11 
12 #include <fwAtoms/Boolean.hpp>
13 
14 #include <fwAtomsPatch/IStructuralPatch.hpp>
15 
16 namespace fwStructuralPatch
17 {
18 
19 namespace fwData
20 {
21 
22 namespace Material
23 {
24 
26 class FWSTRUCTURALPATCH_CLASS_API V2ToV3 : public ::fwAtomsPatch::IStructuralPatch
27 {
28 public:
31 
33  FWSTRUCTURALPATCH_API V2ToV3();
34 
36  FWSTRUCTURALPATCH_API ~V2ToV3();
37 
39  FWSTRUCTURALPATCH_API V2ToV3( const V2ToV3& cpy );
40 
46  FWSTRUCTURALPATCH_API virtual void apply(
47  const ::fwAtoms::Object::sptr& previous,
48  const ::fwAtoms::Object::sptr& current,
49  ::fwAtomsPatch::IPatch::NewVersionsType& newVersions) override;
50 
51 };
52 
53 } // namespace Material
54 
55 } // namespace fwData
56 
57 } // namespace fwStructuralPatch
58 
59 #endif /* __FWSTRUCTURALPATCH_FWDATA_MATERIAL_V2TOV3_HPP__ */
60 
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.