fw4spl
amp/src/fwDataCamp/StructureTraits.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include <fwCamp/UserObject.hpp>
8 #include "fwDataCamp/StructureTraits.hpp"
9 
10 fwCampImplementDataMacro((fwData)(StructureTraits))
11 {
12  builder
13  .tag("object_version", "1")
14  .tag("lib_name", "fwData")
15  .base< ::fwData::Object>()
16  .property("property_type", &::fwData::StructureTraits::m_propertyType)
17  .property("type", &::fwData::StructureTraits::m_type)
18  .property("categories", &::fwData::StructureTraits::m_categories)
19  .property("color", &::fwData::StructureTraits::m_color)
20  .property("class", &::fwData::StructureTraits::m_class)
21  .property("native_exp", &::fwData::StructureTraits::m_nativeExp)
22  .property("native_geomertic_exp", &::fwData::StructureTraits::m_nativeGeometricExp)
23  .property("attachment_type", &::fwData::StructureTraits::m_attachmentType)
24  .property("anatomic_region", &::fwData::StructureTraits::m_anatomicRegion)
25  .property("property_category", &::fwData::StructureTraits::m_propertyCategory)
26  ;
27 }
28 
29 fwCampImplementEnumMacro((fwData)(StructureTraits)(Category))
30 {
31  builder
32  .value("BODY", ::fwData::StructureTraits::BODY)
33  .value("HEAD", ::fwData::StructureTraits::HEAD )
34  .value("NECK", ::fwData::StructureTraits::NECK)
35  .value("THORAX", ::fwData::StructureTraits::THORAX)
36  .value("ABDOMEN", ::fwData::StructureTraits::ABDOMEN)
37  .value("PELVIS", ::fwData::StructureTraits::PELVIS)
38  .value("ARM", ::fwData::StructureTraits::ARM)
39  .value("LEG", ::fwData::StructureTraits::LEG)
40  .value("LIVER_SEGMENTS", ::fwData::StructureTraits::LIVER_SEGMENTS)
41  .value("OTHER", ::fwData::StructureTraits::OTHER)
42  ;
43 }
44 
45 fwCampImplementEnumMacro((fwData)(StructureTraits)(StructureClass))
46 {
47  builder
48  .value("TOOL", ::fwData::StructureTraits::TOOL)
49  .value("ENVIRONMENT", ::fwData::StructureTraits::ENVIRONMENT )
50  .value("VESSEL", ::fwData::StructureTraits::VESSEL)
51  .value("LESION", ::fwData::StructureTraits::LESION)
52  .value("ORGAN", ::fwData::StructureTraits::ORGAN)
53  .value("FUNCTIONAL", ::fwData::StructureTraits::FUNCTIONAL)
54  .value("NO_CONSTRAINT", ::fwData::StructureTraits::NO_CONSTRAINT)
55  ;
56 }
Base class for each data object.
Contains the representation of the data objects used in the framework.