28 #include "WStringUtils.h"
29 #include "WPropertyTypes.h"
30 #include "WTransferFunction.h"
38 out <<
"PV_TRIGGER_TRIGGERED";
41 out <<
"PV_TRIGGER_READY";
53 if( s ==
"PV_TRIGGER_TRIGGERED" )
77 namespace PROPERTY_TYPE_HELPER
83 std::vector< std::string > tokens;
87 while( idx < tokens.size() )
89 std::vector< std::string > innerTokens;
93 if( innerTokens[ 0 ] ==
"c" )
95 tf.
addColor( string_utils::fromString< double >( innerTokens[ 1 ].c_str() ),
96 WColor( string_utils::fromString< double >( innerTokens[ 2 ].c_str() ),
97 string_utils::fromString< double >( innerTokens[ 3 ].c_str() ),
98 string_utils::fromString< double >( innerTokens[ 4 ].c_str() ),
102 else if( innerTokens[ 0 ] ==
"a" )
104 tf.
addAlpha( string_utils::fromString< double >( innerTokens[ 1 ].c_str() ),
105 string_utils::fromString< double >( innerTokens[ 2 ].c_str() ) );
115 std::ostringstream out;
117 for(
size_t i = 0; i < numColors; ++i )
121 out <<
"c:" << iso <<
":" << c[ 0 ] <<
":" << c[ 1 ] <<
":" << c[ 2 ] <<
";";
124 for(
size_t i = 0; i < numAlphas; ++i )
128 out <<
"a:" << iso <<
":" << alpha;
129 if( i != numAlphas-1 )