2268 if (conf.
Has(
"mappingFile"))
2275 if (conf.
Has(
"color.range"))
2277 vector<double> value = conf.
Vec<
double>(
"color.range");
2278 if (value.size() != 5)
2280 cout <<
"Error, colorRange option should have exactly 5 double values" << endl;
2283 for (
int i=0;
i<5;
i++)
2284 canvas->
ss[
i] = value[
i];
2287 if (conf.
Has(
"color.red"))
2289 vector<double> value = conf.
Vec<
double>(
"color.red");
2290 if (value.size() != 5)
2292 cout <<
"Error, colorRed option should have exactly 5 double values" << endl;
2295 for (
int i=0;
i<5;
i++)
2296 canvas->
rr[
i] = value[
i];
2299 if (conf.
Has(
"color.green"))
2301 vector<double> value = conf.
Vec<
double>(
"color.green");
2302 if (value.size() != 5)
2304 cout <<
"Error, colorGreen option should have exactly 5 double values" << endl;
2307 for (
int i=0;
i<5;
i++)
2308 canvas->
gg[
i] = value[
i];
2311 if (conf.
Has(
"color.blue"))
2313 vector<double> value = conf.
Vec<
double>(
"color.blue");
2314 if (value.size() != 5)
2316 cout <<
"Error, colorBlue option should have exactly 5 double values" << endl;
2319 for (
int i=0;
i<5;
i++)
2320 canvas->
bb[
i] = value[
i];
2323 colorRange0->setValue(canvas->
ss[0]);
2324 colorRange1->setValue(canvas->
ss[1]);
2325 colorRange2->setValue(canvas->
ss[2]);
2326 colorRange3->setValue(canvas->
ss[3]);
2327 colorRange4->setValue(canvas->
ss[4]);
2328 redValue0->setValue(canvas->
rr[0]);
2329 redValue1->setValue(canvas->
rr[1]);
2330 redValue2->setValue(canvas->
rr[2]);
2331 redValue3->setValue(canvas->
rr[3]);
2332 redValue4->setValue(canvas->
rr[4]);
2333 greenValue0->setValue(canvas->
gg[0]);
2334 greenValue1->setValue(canvas->
gg[1]);
2335 greenValue2->setValue(canvas->
gg[2]);
2336 greenValue3->setValue(canvas->
gg[3]);
2337 greenValue4->setValue(canvas->
gg[4]);
2338 blueValue0->setValue(canvas->
bb[0]);
2339 blueValue1->setValue(canvas->
bb[1]);
2340 blueValue2->setValue(canvas->
bb[2]);
2341 blueValue3->setValue(canvas->
bb[3]);
2342 blueValue4->setValue(canvas->
bb[4]);
2344 if (conf.
Has(
"drs"))
2346 const QString qstr(conf.
Get<
string>(
"drs").c_str());
2350 if (conf.
Has(
"file"))
2352 const QString qstr(conf.
Get<
string>(
"file").c_str());
void assignPixelMapFile(const string &map="")
void fileSelected(QString file)
T Get(const std::string &var)
std::vector< T > Vec(const std::string &var)
void calibFileSelected(QString file)
bool Has(const std::string &var)