7 #include "fwData/registry/macros.hpp" 8 #include "fwData/Exception.hpp" 9 #include "fwData/ResectionDB.hpp" 11 #include <fwCom/Signal.hpp> 12 #include <fwCom/Signal.hxx> 14 #include <fwCore/base.hpp> 28 m_sigResectionAdded = ResectionAddedSignalType::New();
29 m_sigSafePartAdded = SafePartAddedSignalType::New();
45 ResectionDB::csptr other = ResectionDB::dynamicConstCast(_source);
47 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
56 ResectionDB::csptr other = ResectionDB::dynamicConstCast(_source);
58 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
67 return m_resections.size();
74 m_resections.push_back( resection );
static FWDATA_APIconst::fwCom::Signals::SignalKeyType s_SAFE_PART_ADDED_SIG
Key in m_signals map of signal m_sigSafePartAdded.
FWDATA_API ResectionContainerType::size_type getNumberOfResections() const
Get the number of resections.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Implements data exception class.
static FWDATA_APIconst::fwCom::Signals::SignalKeyType s_RESECTION_ADDED_SIG
Key in m_signals map of signal m_sigResectionAdded.
virtual const std::string & getClassname() const override
return full object's classname with its namespace, i.e. fwCore::BaseObject
virtual FWDATA_API ~ResectionDB()
Destructor.
FWDATA_API void fieldDeepCopy(const ::fwData::Object::csptr &source)
A deep copy of fields (objects in m_children)
FWDATA_API ResectionDB(::fwData::Object::Key key)
Constructor.
FWDATA_API void addResection(const ::fwData::Resection::sptr &resection)
add resection
This class defines a resection container.
FWDATA_API void shallowCopy(const Object::csptr &_source) override
Defines shallow copy.
FWDATA_API void cachedDeepCopy(const Object::csptr &_source, DeepCopyCacheType &cache) override
Defines deep copy.
Contains the representation of the data objects used in the framework.
FWDATA_API void fieldShallowCopy(const ::fwData::Object::csptr &source)
A shallow copy of fields (objects in m_children)