7 #include "fwData/PointList.hpp" 9 #include "fwData/Exception.hpp" 10 #include "fwData/registry/macros.hpp" 12 #include <fwCom/Signal.hpp> 13 #include <fwCom/Signal.hxx> 15 #include <fwCore/base.hpp> 43 PointList::csptr other = PointList::dynamicConstCast(_source);
45 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
56 PointList::csptr other = PointList::dynamicConstCast(_source);
58 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
63 for(
const PointListContainer::value_type&
point : other->m_vPoints )
65 Point::sptr newPoint = Point::New();
PointListContainer m_vPoints
Points container.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Implements data exception class.
virtual FWDATA_API ~PointList()
Destructor.
static FWDATA_APIconst::fwCom::Signals::SignalKeyType s_POINT_ADDED_SIG
Signal emitted when a Point is added.
virtual const std::string & getClassname() const override
return full object's classname with its namespace, i.e. fwCore::BaseObject
FWDATA_API void fieldDeepCopy(const ::fwData::Object::csptr &source)
A deep copy of fields (objects in m_children)
FWDATA_API PointList(::fwData::Object::Key _key)
Constructor.
static FWDATA_API::fwData::Object::sptr copy(const ::fwData::Object::csptr &source)
return a copy of the source. if source is a null pointer, return a null pointer.
FWDATA_API void cachedDeepCopy(const Object::csptr &_source, DeepCopyCacheType &cache) override
Defines deep copy.
This class defines a list of points.
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)
FWDATA_API void shallowCopy(const Object::csptr &_source) override
Defines shallow copy.
static FWDATA_APIconst::fwCom::Signals::SignalKeyType s_POINT_REMOVED_SIG
Signal emitted when a Point is added.