Source
57
57
const String PlotMSDBusApp::PARAM_AXIS_Y_LOCATION = "yAxisLocation";
58
58
const String PlotMSDBusApp::PARAM_SHOWATM = "showatm";
59
59
const String PlotMSDBusApp::PARAM_SHOWTSKY = "showtsky";
60
60
const String PlotMSDBusApp::PARAM_GRIDROWS = "gridRows";
61
61
const String PlotMSDBusApp::PARAM_GRIDCOLS = "gridCols";
62
62
const String PlotMSDBusApp::PARAM_SHOWLEGEND = "showLegend";
63
63
const String PlotMSDBusApp::PARAM_LEGENDPOSITION = "legendPosition";
64
64
const String PlotMSDBusApp::PARAM_CLEARSELECTIONS = "clearSelections";
65
65
const String PlotMSDBusApp::PARAM_DATACOLUMN_X = "xDataColumn";
66
66
const String PlotMSDBusApp::PARAM_DATACOLUMN_Y = "yDataColumn";
67
+
const String PlotMSDBusApp::PARAM_FRAME_X = "xFrame";
68
+
const String PlotMSDBusApp::PARAM_FRAME_Y = "yFrame";
69
+
const String PlotMSDBusApp::PARAM_INTERP_X = "xInterp";
70
+
const String PlotMSDBusApp::PARAM_INTERP_Y = "yInterp";
67
71
const String PlotMSDBusApp::PARAM_DATA_INDEX = "overplotDataIndex";
68
72
const String PlotMSDBusApp::PARAM_FILENAME = "filename";
69
73
const String PlotMSDBusApp::PARAM_FLAGGING = "flagging";
70
74
const String PlotMSDBusApp::PARAM_HEIGHT = "height";
71
75
const String PlotMSDBusApp::PARAM_ITERATE = "iterate";
72
76
const String PlotMSDBusApp::PARAM_PLOTINDEX = "plotIndex";
73
77
const String PlotMSDBusApp::PARAM_PRIORITY = "priority";
74
78
const String PlotMSDBusApp::PARAM_SELECTION = "selection";
75
79
const String PlotMSDBusApp::PARAM_TRANSFORMATIONS = "transformations";
76
80
const String PlotMSDBusApp::PARAM_CALIBRATION = "calibration";
573
577
ppcache->setXDataColumn(dc, dataIndex );
574
578
}
575
579
}
576
580
if(parameters.isDefined(PARAM_DATACOLUMN_Y) &&
577
581
parameters.dataType(PARAM_DATACOLUMN_Y) == TpString) {
578
582
dc = PMS::dataColumn(parameters.asString(PARAM_DATACOLUMN_Y), &ok);
579
583
if(ok){
580
584
ppcache->setYDataColumn(dc, dataIndex);
581
585
}
582
586
}
587
+
PMS::CoordSystem cs;
588
+
if(parameters.isDefined(PARAM_FRAME_X) &&
589
+
parameters.dataType(PARAM_FRAME_X) == TpString) {
590
+
cs = PMS::coordSystem(parameters.asString(PARAM_FRAME_X), &ok);
591
+
if(ok){
592
+
ppcache->setXFrame(cs, dataIndex);
593
+
}
594
+
}
595
+
if(parameters.isDefined(PARAM_FRAME_Y) &&
596
+
parameters.dataType(PARAM_FRAME_Y) == TpString) {
597
+
cs = PMS::coordSystem(parameters.asString(PARAM_FRAME_Y), &ok);
598
+
if(ok){
599
+
ppcache->setYFrame(cs, dataIndex);
600
+
}
601
+
}
602
+
PMS::InterpMethod im;
603
+
if(parameters.isDefined(PARAM_INTERP_X) &&
604
+
parameters.dataType(PARAM_INTERP_X) == TpString) {
605
+
im = PMS::interpMethod(parameters.asString(PARAM_INTERP_X), &ok);
606
+
if(ok){
607
+
ppcache->setXInterp(im, dataIndex);
608
+
}
609
+
}
610
+
if(parameters.isDefined(PARAM_INTERP_Y) &&
611
+
parameters.dataType(PARAM_INTERP_Y) == TpString) {
612
+
im = PMS::interpMethod(parameters.asString(PARAM_INTERP_Y), &ok);
613
+
if(ok){
614
+
ppcache->setYInterp(im, dataIndex);
615
+
}
616
+
}
617
+
583
618
if(parameters.isDefined(PARAM_SHOWATM) &&
584
619
parameters.dataType(PARAM_SHOWATM) == TpBool) {
585
620
bool show = parameters.asBool(PARAM_SHOWATM);
586
621
ppcache->setShowAtm(show);
587
622
}
588
-
589
623
if(parameters.isDefined(PARAM_SHOWTSKY) &&
590
624
parameters.dataType(PARAM_SHOWTSKY) == TpBool) {
591
625
bool show = parameters.asBool(PARAM_SHOWTSKY);
592
626
ppcache->setShowTsky(show);
593
627
}
594
628
595
629
596
630
if(parameters.isDefined(PARAM_CANVASTITLE) &&
597
631
parameters.dataType(PARAM_CANVASTITLE) == TpString) {
598
632
String S = parameters.asString(PARAM_CANVASTITLE);