9 #include "fwData/config.hpp" 10 #include "fwData/factory/new.hpp" 11 #include "fwData/Object.hpp" 12 #include "fwData/Point.hpp" 17 fwCampAutoDeclareDataMacro((
fwData)(Line), FWDATA_API);
29 (()), ::fwData::factory::New< Line >);
38 FWDATA_API
virtual ~
Line();
43 FWDATA_API
void shallowCopy(
const Object::csptr& _source )
override;
46 FWDATA_API
void cachedDeepCopy(
const Object::csptr& _source, DeepCopyCacheType& cache)
override;
48 FWDATA_API
void setValue(const ::fwData::Point::sptr& _position, const ::fwData::Point::sptr& _direction);
53 ::fwData::Point::sptr& getPosition();
54 const ::fwData::Point::sptr& getPosition()
const;
55 void setPosition(const ::fwData::Point::sptr& _position);
61 ::fwData::Point::sptr& getDirection();
62 const ::fwData::Point::sptr& getDirection()
const;
63 void setDirection (const ::fwData::Point::sptr& _direction);
70 ::fwData::Point::sptr m_direction;
78 return this->m_position;
85 return this->m_position;
92 this->m_position = _position;
99 return this->m_direction;
106 return this->m_direction;
113 this->m_direction = _direction;
void setPosition(const ::fwData::Point::sptr &_position)
get/set point position
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
::fwData::Point::sptr m_position
Points container.
::fwData::Point::sptr & getDirection()
get/set point direction
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Base class for each data object.
::fwData::Point::sptr & getPosition()
get/set point position
void setDirection(const ::fwData::Point::sptr &_direction)
get/set point direction
Contains the representation of the data objects used in the framework.
This class defines a Line defined by two points.