fw4spl
ools/include/fwDataTools/Color.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2014-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_COLOR_HPP__
8 #define __FWDATATOOLS_COLOR_HPP__
9 
10 #include "fwDataTools/config.hpp"
11 
12 #include <string>
13 #include <cstdint>
14 
15 namespace fwDataTools
16 {
17 
22 class Color
23 {
24 public:
25 
31  FWDATATOOLS_API static void hexaStringToRGBA( const std::string& _hexaColor, std::uint8_t _rgba[4] );
32 };
33 
34 } // end namespace fwDataTools
35 
36 #endif // __FWDATATOOLS_COLOR_HPP__
static FWDATATOOLS_API void hexaStringToRGBA(const std::string &_hexaColor, std::uint8_t _rgba[4])
Convert a color coded as an hexadecimal string into an array of four bytes (RGBA) ...
The namespace fwDataTools contains classes which provide helpers to manipulate fwData::Object. *.
This class contains helper to manipulate colors.