7 #include "fwData/registry/macros.hpp" 8 #include "fwData/Exception.hpp" 9 #include "fwData/Point.hpp" 11 #include <fwCore/base.hpp> 31 Point::sptr
point = ::fwData::Point::New();
32 point->m_vCoord[0] = x;
33 point->m_vCoord[1] = y;
34 point->m_vCoord[2] = z;
42 Point::sptr
point = ::fwData::Point::New();
43 point->m_vCoord[0] = x;
44 point->m_vCoord[1] = y;
45 point->m_vCoord[2] = z;
53 Point::sptr
point = ::fwData::Point::New();
54 point->m_vCoord = coord;
62 Point::sptr
point = ::fwData::Point::New();
63 point->m_vCoord[0] = p->m_vCoord[0];
64 point->m_vCoord[1] = p->m_vCoord[1];
65 point->m_vCoord[2] = p->m_vCoord[2];
79 Point::csptr other = Point::dynamicConstCast(_source);
81 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
91 Point::csptr other = Point::dynamicConstCast(_source);
93 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
FWDATA_API Point(::fwData::Object::Key key)
Constructor.
FWDATA_API void shallowCopy(const Object::csptr &_source) override
Defines shallow copy.
This class define a 3D point.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Implements data exception class.
static FWDATA_API Point::sptr PointFactory(float x, float y, float z)
Point factory.
virtual FWDATA_API ~Point()
Destructor.
FWDATA_API void fieldDeepCopy(const ::fwData::Object::csptr &source)
A deep copy of fields (objects in m_children)
virtual const std::string & getClassname() const override
return full object's classname with its namespace, i.e. fwCore::BaseObject
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 cachedDeepCopy(const Object::csptr &_source, DeepCopyCacheType &cache) override
Defines deep copy.
PointCoordArrayType m_vCoord
point coordinates