9 #include "fwData/config.hpp" 10 #include "fwData/factory/new.hpp" 11 #include "fwData/Object.hpp" 12 #include "fwData/PointList.hpp" 16 fwCampAutoDeclareDataMacro((
fwData)(Tag), FWDATA_API);
38 FWDATA_API
virtual ~
Tag();
46 ::fwData::PointList::sptr& getPointList();
47 const ::fwData::PointList::sptr& getPointList()
const;
48 void setPointList (const ::fwData::PointList::sptr& _pointList);
55 std::string& getType ();
56 const std::string& getType ()
const;
57 void setType (
const std::string& _sType);
65 double getSize ()
const;
66 void setSize (
const double _size);
70 FWDATA_API
void shallowCopy(
const Object::csptr& source )
override;
73 FWDATA_API
void cachedDeepCopy(
const Object::csptr& source, DeepCopyCacheType& cache)
override;
92 return this->m_pointList;
99 return this->m_pointList;
106 this->m_pointList = _pointList;
127 this->m_sType = _sType;
This class represent a tag. A tag contains a list of points.
void setType(const std::string &_sType)
Get/Set value of the Type.
double & getSize()
Get/Set value of the Tag size.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
::fwData::PointList::sptr & getPointList()
Get/Set value of the pointList.
::fwData::PointList::sptr m_pointList
list of points
void setSize(const double _size)
Get/Set value of the Tag size.
std::string m_sType
type of tag
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
void setPointList(const ::fwData::PointList::sptr &_pointList)
Get/Set value of the pointList.
Base class for each data object.
Contains the representation of the data objects used in the framework.
std::string & getType()
Get/Set value of the Type.