7 #include "fwData/registry/macros.hpp" 8 #include "fwData/Exception.hpp" 9 #include "fwData/ROITraits.hpp" 11 #include <fwCore/base.hpp> 34 m_maskOpNode = maskOpNode;
41 ::fwData::Node::sptr opNode;
42 if ( m_evaluatedExp !=
"W" )
44 opNode = m_maskOpNode;
53 m_structureTraits = structureTraits;
60 return m_structureTraits;
67 ROITraits::csptr other = ROITraits::dynamicConstCast(source);
69 "Unable to copy" + (source ? source->getClassname() : std::string(
"<NULL>"))
FWDATA_API::fwData::Node::sptr getMaskOpNode()
Get the ROI mask node used for ROI, the only case where sptr can be null is when m_evaluatedExp corre...
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Implements data exception class.
FWDATA_API void cachedDeepCopy(const Object::csptr &_source, DeepCopyCacheType &cache) override
Defines deep copy.
virtual FWDATA_API ~ROITraits()
destructor
FWDATA_API::fwData::StructureTraits::sptr getStructureTraits()
Get the associated structure traits.
FWDATA_API void fieldDeepCopy(const ::fwData::Object::csptr &source)
A deep copy of fields (objects in m_children)
FWDATA_API void setMaskOpNode(const ::fwData::Node::sptr &maskOpNode)
Set the ROI mask node used for ROI.
FWDATA_API ROITraits(::fwData::Object::Key key)
Constructor.
#define OSLM_FATAL(message)
FWDATA_API void setStructureTraits(const ::fwData::StructureTraits::sptr &structureTraits)
Set the associated structure traits.
Contains the representation of the data objects used in the framework.
This class defines ROI traits.
virtual const std::string & getClassname() const override
return full object's classname with its namespace, i.e. fwCore::BaseObject