TuttleOFX  1
ColorGradientDefinitions.hpp
Go to the documentation of this file.
00001 #ifndef _TUTTLE_PLUGIN_COLORGRADIENT_DEFINITIONS_HPP_
00002 #define _TUTTLE_PLUGIN_COLORGRADIENT_DEFINITIONS_HPP_
00003 
00004 #include <tuttle/plugin/global.hpp>
00005 #include <tuttle/plugin/context/GeneratorDefinition.hpp>
00006 
00007 #include <boost/lexical_cast.hpp>
00008 
00009 namespace tuttle {
00010 namespace plugin {
00011 namespace colorGradient {
00012 
00013 static const unsigned int kMaxNbPoints = 50;
00014 static const std::string kPoint        = "point";
00015 static const std::string kColor        = "color";
00016 
00017 static const std::string kGradientType         = "type";
00018 static const std::string kGradientType1DLinear = "1dLinear";
00019 static const std::string kGradientType1DRadial = "1dRadial";
00020 static const std::string kGradientType2D       = "2d";
00021 
00022 enum EGradientType
00023 {
00024         eGradientType1DLinear = 0,
00025         eGradientType1DRadial,
00026         eGradientType2D
00027 };
00028 
00029 static const std::string kNbPoints = "nbPoints";
00030 
00031 inline std::string getPointParamName( const unsigned int i )
00032 {
00033         return kPoint + boost::lexical_cast<std::string>( i );
00034 }
00035 
00036 inline std::string getColorParamName( const unsigned int i )
00037 {
00038         return kColor + boost::lexical_cast<std::string>( i );
00039 }
00040 
00041 }
00042 }
00043 }
00044 
00045 #endif