fw4spl
Mesh/V2ToV3.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2015-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_MESH_V2TOV3_HPP__
8 #define __FWSTRUCTURALPATCH_FWDATA_MESH_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 Mesh
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 Mesh
52 
53 } // namespace fwData
54 
55 } // namespace fwStructuralPatch
56 
57 #endif /* __FWSTRUCTURALPATCH_FWDATA_MESH_V2TOV3_HPP__ */
58 
Contains creators and structural patches.
Definition: Landmarks1.hpp:13
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Structural patch to convert a fwData::Mesh from version &#39;2&#39; to version &#39;3&#39;.
Definition: Mesh/V2ToV3.hpp:24
Base class of all structural patches.
Contains the representation of the data objects used in the framework.