TuttleOFX  1
BasicKeyerDefinitions.hpp
Go to the documentation of this file.
00001 #ifndef _TUTTLE_PLUGIN_BASICKEYER_DEFINITIONS_HPP_
00002 #define _TUTTLE_PLUGIN_BASICKEYER_DEFINITIONS_HPP_
00003 
00004 #include <tuttle/plugin/global.hpp>
00005 
00006 #include <boost/lexical_cast.hpp>
00007 
00008 namespace tuttle {
00009 namespace plugin {
00010 namespace basicKeyer {
00011 
00012 static const std::string kParamMode         = "mode";
00013 static const std::string kParamModePosition = "position";
00014 static const std::string kParamModeColor    = "color";
00015 enum EParamMode
00016 {
00017         eParamModePosition = 0,
00018         eParamModeColor
00019 };
00020 
00021 static const std::string kParamNbPoints = "nbPoints";
00022 static const unsigned int kMaxNbPoints  = 50;
00023 static const std::string kParamPoint    = "point";
00024 static const std::string kParamColor    = "color";
00025 static const std::string kParamMargin   = "margin";
00026 static const std::string kParamSoftness = "softness";
00027 
00028 inline std::string getPointParamName( const unsigned int i )
00029 {
00030         return kParamPoint + boost::lexical_cast<std::string>( i );
00031 }
00032 
00033 inline std::string getColorParamName( const unsigned int i )
00034 {
00035         return kParamColor + boost::lexical_cast<std::string>( i );
00036 }
00037 
00038 }
00039 }
00040 }
00041 
00042 #endif