9 #include "fwData/config.hpp" 10 #include "fwData/factory/new.hpp" 11 #include "fwData/Object.hpp" 15 fwCampAutoDeclareDataMacro((
fwData)(Point), FWDATA_API);
27 typedef double PointCoordType;
28 typedef std::array<double, 3> PointCoordArrayType;
31 ((::fwData::factory::New< Point >, () ))
32 ((PointFactory, ((
float))((
float)(0.0f)) ((
float) (0.0f)) ))
33 ((PointFactory, ((
double))((
double)(0.0)) ((
double) (0.0)) ))
34 ((PointFactory, ((
const PointCoordArrayType&)) ))
35 ((PointFactory, ((Point::sptr)) ))
47 FWDATA_API
virtual ~
Point();
50 FWDATA_API
void shallowCopy(
const Object::csptr& _source )
override;
53 FWDATA_API
void cachedDeepCopy(
const Object::csptr& _source, DeepCopyCacheType& cache)
override;
57 PointCoordArrayType& getCoord ();
58 const PointCoordArrayType& getCoord()
const;
59 void setCoord(
const PointCoordArrayType& _vCoord);
65 FWDATA_API
static Point::sptr PointFactory(
float x,
float y,
float z);
66 FWDATA_API
static Point::sptr PointFactory(
double x,
double y,
double z);
67 FWDATA_API
static Point::sptr PointFactory(
const PointCoordArrayType& coord);
68 FWDATA_API
static Point::sptr PointFactory(Point::sptr p);
79 return this->m_vCoord;
86 return this->m_vCoord;
93 this->m_vCoord = _vCoord;
#define fwCoreClassDefinitionsWithNFactoriesMacro(_classinfo_, _factories_args_)
Generate common construction methods for classes with several factories.
This class define a 3D point.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
PointCoordArrayType & getCoord()
get/set point coordinates
Base class for each data object.
Contains the representation of the data objects used in the framework.
void setCoord(const PointCoordArrayType &_vCoord)
get/set point coordinates
PointCoordArrayType m_vCoord
point coordinates