9 #include "fwData/Color.hpp" 10 #include "fwData/factory/new.hpp" 11 #include "fwData/Object.hpp" 13 fwCampAutoDeclareDataMacro((
fwData)(StructureTraits), FWDATA_API);
33 ::fwData::factory::New< StructureTraits >);
51 typedef std::vector<Category> CategoryContainer;
52 typedef std::string ROIExpression;
73 FWDATA_API
virtual ~StructureTraits();
79 std::string& getType ();
80 const std::string& getType ()
const;
81 void setType (
const std::string& _type);
88 CategoryContainer& getCategories ();
89 const CategoryContainer& getCategories ()
const;
90 void setCategories (
const CategoryContainer& _categories);
97 StructureClass& getClass ();
98 const StructureClass& getClass ()
const;
99 void setClass (
const StructureClass& _class);
106 ROIExpression& getNativeExp ();
107 const ROIExpression& getNativeExp ()
const;
108 void setNativeExp (
const ROIExpression& _nativeExp);
115 ROIExpression& getNativeGeometricExp ();
116 const ROIExpression& getNativeGeometricExp ()
const;
117 void setNativeGeometricExp (
const ROIExpression& _nativeGeometricExp);
124 std::string& getAttachmentType ();
125 const std::string& getAttachmentType ()
const;
126 void setAttachmentType (
const std::string& _attachmentType);
133 ::fwData::Color::sptr& getColor();
134 const ::fwData::Color::sptr& getColor()
const;
135 void setColor (const ::fwData::Color::sptr& _color);
142 std::string& getAnatomicRegion ();
143 const std::string& getAnatomicRegion ()
const;
144 void setAnatomicRegion (
const std::string& _anatomicRegion);
151 std::string& getPropertyCategory ();
152 const std::string& getPropertyCategory ()
const;
153 void setPropertyCategory (
const std::string& _propertyCategory);
161 std::string& getPropertyType ();
162 const std::string& getPropertyType ()
const;
163 void setPropertyType (
const std::string& _propertyType);
167 FWDATA_API
void cachedDeepCopy(
const Object::csptr& _source, DeepCopyCacheType& cache)
override;
175 CategoryContainer m_categories;
178 ::fwData::Color::sptr m_color;
181 StructureClass m_class;
184 ROIExpression m_nativeExp;
187 ROIExpression m_nativeGeometricExp;
190 std::string m_attachmentType;
193 std::string m_anatomicRegion;
196 std::string m_propertyCategory;
199 std::string m_propertyType;
241 m_categories = _categories;
283 m_nativeExp = _nativeExp;
290 return m_nativeGeometricExp;
297 return m_nativeGeometricExp;
304 m_nativeGeometricExp = _nativeGeometricExp;
311 return m_attachmentType;
318 return m_attachmentType;
325 m_attachmentType = _attachmentType;
353 return m_anatomicRegion;
360 return m_anatomicRegion;
367 m_anatomicRegion = _anatomicRegion;
374 return m_propertyCategory;
381 return m_propertyCategory;
388 m_propertyCategory = _propertyCategory;
395 return m_propertyType;
402 return m_propertyType;
409 m_propertyType = _propertyType;
std::string & getAnatomicRegion()
Get/Set value of the anatomicRegion.
StructureClass & getClass()
Get/Set value of the class.
Category
Defines structure categories.
ROIExpression & getNativeGeometricExp()
Get/Set value of the nativeGeometricExp.
void setClass(const StructureClass &_class)
Get/Set value of the class.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
StructureClass
Defines structure class.
CategoryContainer & getCategories()
Get/Set value of the categories.
ROIExpression & getNativeExp()
Get/Set value of the nativeExp.
void setNativeExp(const ROIExpression &_nativeExp)
Get/Set value of the nativeExp.
std::string & getAttachmentType()
Get/Set value of the attachmentType.
void setAnatomicRegion(const std::string &_anatomicRegion)
Get/Set value of the anatomicRegion.
void setType(const std::string &_type)
Get/Set value of the structure type.
void setCategories(const CategoryContainer &_categories)
Get/Set value of the categories.
std::string & getType()
Get/Set value of the structure type.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
std::string & getPropertyType()
Get/Set value of the propertyType.
::fwData::Color::sptr & getColor()
Get/Set value of the color.
std::string & getPropertyCategory()
Get/Set value of the propertyCategory.
Base class for each data object.
void setNativeGeometricExp(const ROIExpression &_nativeGeometricExp)
Get/Set value of the nativeGeometricExp.
void setColor(const ::fwData::Color::sptr &_color)
Get/Set value of the color.
void setAttachmentType(const std::string &_attachmentType)
Get/Set value of the attachmentType.
Contains the representation of the data objects used in the framework.
This class defines structure traits.
void setPropertyCategory(const std::string &_propertyCategory)
Get/Set value of the propertyCategory.
void setPropertyType(const std::string &_propertyType)
Get/Set value of the propertyType.