fw4spl
Reconstruction/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_RECONSTRUCTION_V2TOV3_HPP__
8 #define __FWSTRUCTURALPATCH_FWDATA_RECONSTRUCTION_V2TOV3_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 Reconstruction
21 {
22 
24 class FWSTRUCTURALPATCH_CLASS_API V2ToV3 : public ::fwAtomsPatch::IStructuralPatch
25 {
26 public:
29 
31  FWSTRUCTURALPATCH_API V2ToV3();
32 
34  FWSTRUCTURALPATCH_API ~V2ToV3();
35 
37  FWSTRUCTURALPATCH_API V2ToV3( const V2ToV3& 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 Reconstruction
52 
53 } // namespace fwData
54 
55 } // namespace fwStructuralPatch
56 
57 #endif /* __FWSTRUCTURALPATCH_FWDATA_RECONSTRUCTION_V2TOV3_HPP__ */
58 
Structural patch to convert a fwData::Reconstruction from version &#39;2&#39; to version &#39;3&#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.