fw4spl
SrcLib/core/fwDataCamp/src/fwDataCamp/TransferFunction.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 <fwData/camp/mapper.hpp>
8 
9 #include <fwCamp/UserObject.hpp>
10 #include "fwDataCamp/TransferFunction.hpp"
11 
12 fwCampImplementDataMacro((fwData)(TransferFunction))
13 {
14  builder
15  .tag("object_version", "1")
16  .tag("lib_name", "fwData")
17  .base< ::fwData::Object>()
18  .property("level", &::fwData::TransferFunction::m_level)
19  .property("window", &::fwData::TransferFunction::m_window)
20  .property("name", &::fwData::TransferFunction::m_name)
21  .property("background_color", &::fwData::TransferFunction::m_backgroundColor)
22  .property("tf_data", &::fwData::TransferFunction::m_tfData)
23  .property("interpolation_mode", &::fwData::TransferFunction::m_interpolationMode)
24  .property("is_clamped", &::fwData::TransferFunction::m_isClamped)
25  ;
26 }
27 
28 fwCampImplementEnumMacro((fwData)(TransferFunction)(InterpolationMode))
29 {
30  builder
31  .value("LINEAR", ::fwData::TransferFunction::LINEAR)
32  .value("NEAREST", ::fwData::TransferFunction::NEAREST)
33  ;
34 }
Base class for each data object.
Contains the representation of the data objects used in the framework.