fw4spl
SrcLib/core/fwDataTools/include/fwDataTools/TransferFunction.hpp
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 #ifndef __FWDATATOOLS_TRANSFERFUNCTION_HPP__
8 #define __FWDATATOOLS_TRANSFERFUNCTION_HPP__
9 
10 #include <fwCore/base.hpp>
11 
12 #include <fwData/TransferFunction.hpp>
13 
14 #include "fwDataTools/config.hpp"
15 
16 namespace fwDataTools
17 {
18 
19 
25 {
26 
27 public:
28 
33  FWDATATOOLS_API static void generateDrawingTF(::fwData::TransferFunction::sptr tf);
34 
35 protected:
36 
38  FWDATATOOLS_API static ::fwData::TransferFunction::TFDataType getDrawingTFColors();
39 
40 };
41 
42 
43 } // namespace fwDataTools
44 
45 #endif // __FWDATATOOLS_TRANSFERFUNCTION_HPP__
static FWDATATOOLS_API::fwData::TransferFunction::TFDataType getDrawingTFColors()
Return a map <value, color> used to generate drawing TF.
The namespace fwDataTools contains classes which provide helpers to manipulate fwData::Object. *.
This class contains helper to generate and compare TransferFunction.
static FWDATATOOLS_API void generateDrawingTF(::fwData::TransferFunction::sptr tf)
Generate a drawing tf with value between 0 and 255.