9 #include "fwData/config.hpp" 10 #include "fwData/factory/new.hpp" 11 #include "fwData/Resection.hpp" 13 #include <fwCom/Signal.hpp> 14 #include <fwCom/Signals.hpp> 16 fwCampAutoDeclareDataMacro((
fwData)(ResectionDB), FWDATA_API);
30 ::fwData::factory::New< ResectionDB >);
43 FWDATA_API
void shallowCopy(
const Object::csptr& _source )
override;
46 FWDATA_API
void cachedDeepCopy(
const Object::csptr& _source, DeepCopyCacheType& cache)
override;
48 typedef std::vector< ::fwData::Resection::sptr > ResectionContainerType;
53 FWDATA_API ResectionContainerType::size_type getNumberOfResections()
const;
58 FWDATA_API
void addResection(const ::fwData::Resection::sptr& resection );
64 const ResectionContainerType& getResections ()
const;
65 void setResections (
const ResectionContainerType& val);
72 ::fwData::Resection::sptr& getSafeResection();
73 const ::fwData::Resection::sptr& getSafeResection()
const;
74 void setSafeResection(const ::fwData::Resection::sptr& _safeResection);
100 ::fwData::Resection::sptr m_safeResection;
102 ResectionContainerType m_resections;
107 SafePartAddedSignalType::sptr m_sigSafePartAdded;
110 ResectionAddedSignalType::sptr m_sigResectionAdded;
131 return m_safeResection;
138 return m_safeResection;
145 m_safeResection = _safeResection;
static FWDATA_APIconst::fwCom::Signals::SignalKeyType s_SAFE_PART_ADDED_SIG
Key in m_signals map of signal m_sigSafePartAdded.
::fwData::Resection::sptr & getSafeResection()
Get/Set value of the safe resection.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
static FWDATA_APIconst::fwCom::Signals::SignalKeyType s_RESECTION_ADDED_SIG
Key in m_signals map of signal m_sigResectionAdded.
::fwCom::Signal< void() > SafePartAddedSignalType
Type of signal when the safe part is added.
void setSafeResection(const ::fwData::Resection::sptr &_safeResection)
Get/Set value of the safe resection.
void setResections(const ResectionContainerType &val)
Get/Set value of the resections.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
This class defines a resection container.
::fwCom::Signal< void() > ResectionAddedSignalType
Type of signal when a resection is added.
const ResectionContainerType & getResections() const
Get/Set value of the resections.
Base class for each data object.
Contains the representation of the data objects used in the framework.