fw4spl
fwAtomConversion::mapper::Landmarks Class Reference

Specific mapper used to convert a fwData::Landmarks. More...

#include <Landmarks.hpp>

+ Inheritance diagram for fwAtomConversion::mapper::Landmarks:
+ Collaboration diagram for fwAtomConversion::mapper::Landmarks:

Public Member Functions

virtual FWATOMCONVERSION_API std::shared_ptr< ::fwAtoms::Objectconvert (std::shared_ptr< ::fwData::Object > object, DataVisitor::AtomCacheType &cache)
 Convert a fwData::Object to a fwAtoms::Object. More...
 
virtual FWATOMCONVERSION_API std::shared_ptr< ::fwData::Objectconvert (std::shared_ptr< ::fwAtoms::Object > atom, AtomVisitor::DataCacheType &cache, const AtomVisitor::IReadPolicy &uuidPolicy)
 Convert a fwAtoms::Object to a fwData::Object (which represent a fwData::Landmarks). More...
 

Detailed Description

Specific mapper used to convert a fwData::Landmarks.

The attribute ::fwData::Landmarks::m_landmarks is represented in fwAtoms world like a fwAtoms::Map that contains fwAtoms::Object with five attributes "color", "size", "shape", "visibility" and "points". The points are store in a fwAtoms::Sequence.

Definition at line 36 of file fwAtomConversion/include/fwAtomConversion/mapper/Landmarks.hpp.

Member Function Documentation

virtual FWATOMCONVERSION_API std::shared_ptr< ::fwAtoms::Object > fwAtomConversion::mapper::Landmarks::convert ( std::shared_ptr< ::fwData::Object object,
DataVisitor::AtomCacheType &  cache 
)
virtual

Convert a fwData::Object to a fwAtoms::Object.

Parameters
objectdata to convert. It must be a fwData::Landmarks.
cachecache to register the data already converted, used when a data is referenced multiple times.

Implements fwAtomConversion::mapper::Base.

virtual FWATOMCONVERSION_API std::shared_ptr< ::fwData::Object > fwAtomConversion::mapper::Landmarks::convert ( std::shared_ptr< ::fwAtoms::Object atom,
AtomVisitor::DataCacheType &  cache,
const AtomVisitor::IReadPolicy uuidPolicy 
)
virtual

Convert a fwAtoms::Object to a fwData::Object (which represent a fwData::Landmarks).

Parameters
atomatom to convert
cachecache to register the atoms already converted, used when an atom is referenced multiple times.
uuidPolicyAtomVisitor policy

Implements fwAtomConversion::mapper::Base.


The documentation for this class was generated from the following file: