7 #include <fwAtoms/String.hpp> 8 #include <fwAtoms/Map.hpp> 9 #include <fwAtoms/Numeric.hpp> 10 #include <fwAtoms/Sequence.hpp> 11 #include <fwAtoms/Object.hxx> 12 #include <fwAtomsPatch/StructuralCreatorDB.hpp> 14 #include "fwStructuralPatch/fwData/TransformationMatrix3D/V1ToV2.hpp" 22 namespace TransformationMatrix3D
48 const ::fwAtoms::Object::sptr& current,
49 ::fwAtomsPatch::IPatch::NewVersionsType& newVersions)
51 IStructuralPatch::apply(previous, current, newVersions);
59 ::fwAtoms::Sequence::sptr oldCoefs = previous->getAttribute<
::fwAtoms::Sequence >(
"coefficient");
60 ::fwAtoms::Sequence::sptr newCoefs = ::fwAtoms::Sequence::New();
62 for(
size_t i = 0; i < 16; ++i)
64 newCoefs->push_back((*oldCoefs)[i]);
FWATOMSPATCH_API void updateVersion(std::shared_ptr< ::fwAtoms::Object > current)
Updates the version of the patched object.
FWATOMSPATCH_API void removeAttribute(const std::string &name, conditions::Abstract::sptr condition=conditions::Abstract::New())
Removes an attribute.
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.
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.
Sequence represented a list of meta object.