7 #include <fwAtoms/Numeric.hpp> 8 #include <fwAtoms/Numeric.hxx> 9 #include <fwAtoms/String.hpp> 11 #include "fwStructuralPatch/fwData/Reconstruction/V2ToV3.hpp" 19 namespace Reconstruction
46 const ::fwAtoms::Object::sptr& previous,
47 const ::fwAtoms::Object::sptr& current,
48 ::fwAtomsPatch::IPatch::NewVersionsType& newVersions)
50 IStructuralPatch::apply(previous, current, newVersions);
59 helper.
addAttribute(
"volume", ::fwAtoms::Numeric::New<double>(-1.));
FWSTRUCTURALPATCH_API V2ToV3()
Constructor.
FWATOMSPATCH_API void updateVersion(std::shared_ptr< ::fwAtoms::Object > current)
Updates the version of the patched object.
Structural patch to convert a fwData::Reconstruction from version '2' to version '3'.
Contains base functionalities used to transform objects from a version to another.
std::string m_targetClassname
Target type.
FWSTRUCTURALPATCH_API ~V2ToV3()
Destructor.
FWATOMSPATCH_API IStructuralPatch()
Constructor.
virtual FWSTRUCTURALPATCH_API void apply(const ::fwAtoms::Object::sptr &previous, const ::fwAtoms::Object::sptr ¤t,::fwAtomsPatch::IPatch::NewVersionsType &newVersions) override
Applies patch.
std::string m_originClassname
Origin classname of the object.
Contains creators and structural patches.
std::string m_originVersion
Origin version of the object.
FWATOMSPATCH_API void addAttribute(const std::string &name,::fwAtoms::Base::sptr value, conditions::Abstract::sptr condition=conditions::Abstract::New())
Adds a new attribute in the current object.
std::string m_targetVersion
Target version.
Contains the representation of the data objects used in the framework.