7 #include <fwAtoms/String.hpp> 8 #include <fwAtoms/Map.hpp> 9 #include <fwAtomsPatch/StructuralCreatorDB.hpp> 11 #include "fwStructuralPatch/fwData/Mesh/V1ToV3.hpp" 45 const ::fwAtoms::Object::sptr& current,
46 ::fwAtomsPatch::IPatch::NewVersionsType& newVersions)
48 IStructuralPatch::apply(previous, current, newVersions);
55 helper.
addAttribute(
"point_tex_coords", ::fwAtoms::Object::sptr() );
56 helper.
addAttribute(
"cell_tex_coords", ::fwAtoms::Object::sptr() );
57 helper.
addAttribute(
"array_map", ::fwAtoms::Map::New() );
FWSTRUCTURALPATCH_API ~V1ToV3()
Destructor.
FWATOMSPATCH_API void updateVersion(std::shared_ptr< ::fwAtoms::Object > current)
Updates the version of the patched object.
Structural patch to convert a fwData::Mesh from version '1' to version '3'.
Contains base functionalities used to transform objects from a version to another.
std::string m_targetClassname
Target type.
FWATOMSPATCH_API IStructuralPatch()
Constructor.
std::string m_originClassname
Origin classname of the object.
Contains creators and structural patches.
std::string m_originVersion
Origin version of the object.
FWSTRUCTURALPATCH_API V1ToV3()
Constructor.
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.
virtual FWSTRUCTURALPATCH_API void apply(const ::fwAtoms::Object::sptr &previous, const ::fwAtoms::Object::sptr ¤t,::fwAtomsPatch::IPatch::NewVersionsType &newVersions) override
Applies patch.