9 #include "fwData/config.hpp" 10 #include "fwData/factory/new.hpp" 11 #include "fwData/Point.hpp" 13 #include <fwCom/Signal.hpp> 14 #include <fwCom/Signals.hpp> 18 fwCampAutoDeclareDataMacro((
fwData)(Plane), FWDATA_API);
33 typedef std::array< ::fwData::Point::sptr, 3> PointContainer;
42 FWDATA_API
virtual ~
Plane();
45 FWDATA_API
void shallowCopy(
const Object::csptr& _source )
override;
48 FWDATA_API
void cachedDeepCopy(
const Object::csptr& _source, DeepCopyCacheType& cache)
override;
51 FWDATA_API
void setValue(::fwData::Point::sptr _point1, ::fwData::Point::sptr _point2,
52 ::fwData::Point::sptr _point3);
57 PointContainer& getPoints();
58 const PointContainer& getPoints()
const;
59 void setPoints(
const PointContainer& _vPoints);
65 bool getIsIntersection ()
const;
66 void setIsIntersection(
bool _isIntersection);
94 return this->m_vPoints;
101 return this->m_vPoints;
108 this->m_vPoints = _vPoints;
115 return m_isIntersection;
122 this->m_isIntersection = _isIntersection;
void setPoints(const PointContainer &_vPoints)
get/set points container
This class defines a plane defined by tree points.
PointContainer m_vPoints
Points container.
bool m_isIntersection
flag if the plane is an intersection (else an union)
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
void setIsIntersection(bool _isIntersection)
get/set flag if the plane is an intersection one (else an union one)
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Base class for each data object.
static FWDATA_APIconst::fwCom::Signals::SignalKeyType s_SELECTED_SIG
Signal emitted when plane is selected/deselected.
Contains the representation of the data objects used in the framework.
bool getIsIntersection() const
get/set flag if the plane is an intersection one (else an union one)
PointContainer & getPoints()
get/set points container