7 #include "fwData/registry/macros.hpp" 8 #include "fwData/Exception.hpp" 9 #include "fwData/Line.hpp" 11 #include <fwCore/base.hpp> 36 Line::csptr other = Line::dynamicConstCast(_source);
38 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
42 m_direction = other->m_direction;
49 Line::csptr other = Line::dynamicConstCast(_source);
51 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
60 void Line::setValue(const ::fwData::Point::sptr& _position, const ::fwData::Point::sptr& _direction)
63 m_direction = _direction;
virtual const std::string & getClassname() const override
return full object's classname with its namespace, i.e. fwCore::BaseObject
#define SLM_TRACE_FUNC()
Trace contextual function signature.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
FWDATA_API void cachedDeepCopy(const Object::csptr &_source, DeepCopyCacheType &cache) override
Defines deep copy.
Implements data exception class.
::fwData::Point::sptr m_position
Points container.
FWDATA_API void fieldDeepCopy(const ::fwData::Object::csptr &source)
A deep copy of fields (objects in m_children)
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.
virtual FWDATA_API ~Line()
Destructor.
FWDATA_API void shallowCopy(const Object::csptr &_source) override
Defines shallow copy.
Contains the representation of the data objects used in the framework.
This class defines a Line defined by two points.
FWDATA_API void fieldShallowCopy(const ::fwData::Object::csptr &source)
A shallow copy of fields (objects in m_children)
FWDATA_API Line(::fwData::Object::Key key)
Constructor.