fw4spl
StructureTraitsHelper.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 
8 #include "fwData/StructureTraitsHelper.hpp"
9 
10 #include <boost/assign.hpp>
11 
12 namespace fwData
13 {
14 
15 //------------------------------------------------------------------------------
16 
17 const StructureTraitsHelper::CategoryTranslatorType StructureTraitsHelper::s_CATEGORYTRANSLATOR =
18  ::boost::assign::list_of< StructureTraitsHelper::CategoryTranslatorType::relation >
19  ( ::fwData::StructureTraits::BODY, std::string("Body"))
20  ( ::fwData::StructureTraits::HEAD, std::string("Head"))
21  ( ::fwData::StructureTraits::NECK, std::string("Neck"))
22  ( ::fwData::StructureTraits::THORAX, std::string("Thorax"))
23  ( ::fwData::StructureTraits::ABDOMEN, std::string("Abdomen"))
24  ( ::fwData::StructureTraits::PELVIS, std::string("Pelvis"))
25  ( ::fwData::StructureTraits::ARM, std::string("Arm"))
26  ( ::fwData::StructureTraits::LEG, std::string("Leg"))
27  ( ::fwData::StructureTraits::LIVER_SEGMENTS, std::string("Liver_segments"))
28  ( ::fwData::StructureTraits::OTHER, std::string("Other"));
29 
30 //------------------------------------------------------------------------------
31 
32 const StructureTraitsHelper::ClassTranslatorType StructureTraitsHelper::s_CLASSTRANSLATOR =
33  ::boost::assign::list_of< StructureTraitsHelper::ClassTranslatorType::relation >
34  ( ::fwData::StructureTraits::TOOL, std::string("Tool"))
35  ( ::fwData::StructureTraits::ENVIRONMENT, std::string("Environment"))
36  ( ::fwData::StructureTraits::VESSEL, std::string("Vessel"))
37  ( ::fwData::StructureTraits::LESION, std::string("Lesion"))
38  ( ::fwData::StructureTraits::ORGAN, std::string("Organ"))
39  ( ::fwData::StructureTraits::FUNCTIONAL, std::string("Functional"))
40  ( ::fwData::StructureTraits::NO_CONSTRAINT, std::string("No_constraint"));
41 
42 //------------------------------------------------------------------------------
43 
44 } // namespace fwData
45 
46 
static FWDATA_API const ClassTranslatorType s_CLASSTRANSLATOR
Map to translate structure class (string vs enum)
static FWDATA_API const CategoryTranslatorType s_CATEGORYTRANSLATOR
Map to translate structure categories (string vs enum)
Contains the representation of the data objects used in the framework.