Commit 10a74d7da998a15dc81612dede9cf9e09c63c963

Authored by Benjamin Renard
2 parents 574d7ed3 88e3aa1b

Merge branch 'master' into new-save-plot-request

config/kernel/plotConfig.xml
... ... @@ -55,6 +55,11 @@
55 55 <file index="1">cmap1_blue_red.pal</file>
56 56 <file index="2">cmap1_blue_yellow.pal</file>
57 57 <file index="3">cmap1_gray.pal</file>
  58 + <file index="4">cmap1_amda_default.pal</file>
  59 + <file index="5">cmap1_geowhite.pal</file>
  60 + <file index="6">cmap1_geoblack.pal</file>
  61 + <file index="7">cmap1_dark_violet_yellow.pal</file>
  62 + <file index="8">cmap1_red_blue.pal</file>
58 63 </coloraxis>
59 64 </colormap>
60 65 </root>
... ...
config/kernel/plplot/cmap1_amda_default.pal 0 → 100644
... ... @@ -0,0 +1,10 @@
  1 +v2 rgb
  2 +7
  3 +0.0 0.0 0.0 0.4 1.0 0
  4 +0.15 0.0 0.0 0.75 1.0 0
  5 +0.3 0.0 0.40 0.85 1.0 0
  6 +0.45 0.0 0.7 0.0 1.0 0
  7 +0.66 0.8 0.8 0.0 1.0 0
  8 +0.87 1.0 0.45 0.0 1.0 0
  9 +1.0 0.8 0.0 0.0 1.0 0
  10 +
... ...
config/kernel/plplot/cmap1_dark_violet_yellow.pal 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +v2 rgb
  2 +6
  3 +0 0 0 0.3000 1 0
  4 +0.2000 0 0 1.0000 1 0
  5 +0.4000 0.8500 0 1.0000 1 0
  6 +0.6000 1.0000 0.5000 0 1 0
  7 +0.8000 1.0000 0.9000 0 1 0
  8 +1.0000 1.0000 1.0000 0.9000 1 0
  9 +
... ...
config/kernel/plplot/cmap1_geoblack.pal 0 → 100644
... ... @@ -0,0 +1,11 @@
  1 +v2 rgb
  2 +9
  3 +0.0000 0.0000 0.0000 0.0000 1 0
  4 +0.0039 0.9606 0.7717 1.0000 1 0
  5 +0.2353 0.1929 0.2008 1.0000 1 0
  6 +0.4000 0.0669 0.9764 1.0000 1 0
  7 +0.4863 0.0000 1.0000 0.5157 1 0
  8 +0.5765 0.0236 1.0000 0.0157 1 0
  9 +0.6750 0.8750 1.0000 0.0157 1 0
  10 +0.7529 1.0000 0.9921 0.0394 1 0
  11 +1.0000 1.0000 0.0000 0.0354 1 0
... ...
config/kernel/plplot/cmap1_geowhite.pal 0 → 100644
... ... @@ -0,0 +1,11 @@
  1 +v2 rgb
  2 +9
  3 +0.0000 1.0000 1.0000 1.0000 1 0
  4 +0.0039 0.9606 0.7717 1.0000 1 0
  5 +0.2353 0.1929 0.2008 1.0000 1 0
  6 +0.4000 0.0669 0.9764 1.0000 1 0
  7 +0.4863 0.0000 1.0000 0.5157 1 0
  8 +0.5765 0.0236 1.0000 0.0157 1 0
  9 +0.6750 0.8750 1.0000 0.0157 1 0
  10 +0.7529 1.0000 0.9921 0.0394 1 0
  11 +1.0000 1.0000 0.0000 0.0354 1 0
... ...
config/kernel/plplot/cmap1_red_blue.pal 0 → 100644
... ... @@ -0,0 +1,6 @@
  1 +v2 rgb
  2 +4
  3 +0.0000 0.0000 0.0000 1.0000 1 0
  4 +0.4950 0.0000 1.0000 1.0000 1 0
  5 +0.5050 1.0000 1.0000 0.0000 1 0
  6 +1.0000 1.0000 0.0000 0.0000 1 0
... ...
src/InputOutput/IHMImpl/Tools/IHMParamManagerClass.php
... ... @@ -333,7 +333,7 @@ class IHMParamManagerClass
333 333 $res["param"]["info"]["viId"], $res["param"]["info"]["realVar"],
334 334 $res["param"]["info"]["minSampling"], $res["param"]["info"]["maxSampling"],
335 335 $res["param"]["info"]["type"],$res["param"]["info"]["size"],
336   - $res["param"]["dateModif"],true);
  336 + NULL,$res["param"]["dateModif"],true);
337 337  
338 338 $newParamNode->getInfo()->setName($res["param"]["info"]['name']);
339 339 $newParamNode->getInfo()->setShortName($res["param"]["info"]['name']);
... ... @@ -407,7 +407,7 @@ class IHMParamManagerClass
407 407 $res["param"]["info"]["viId"], $res["param"]["info"]["realVar"],
408 408 $res["param"]["info"]["minSampling"], $res["param"]["info"]["maxSampling"],
409 409 $res["param"]["info"]["type"],$res["param"]["info"]["size"],
410   - $res["param"]["dateModif"]);
  410 + $res["param"]["info"]["fillValue"],$res["param"]["dateModif"]);
411 411  
412 412 if (!empty($res["param"]["info"]["yTitle"])) {
413 413 $newParamNode->getInfo()->setName($res["param"]["info"]['yTitle']);
... ...
src/InputOutput/IHMImpl/Tools/IHMUserParamLoaderClass.php
... ... @@ -37,6 +37,7 @@ class IHMUserParamLoaderClass
37 37 private static $infoUploadedTypeNode = 'type';
38 38 private static $infoUploadedSizeNode = 'size';
39 39 private static $infoUploadedVIIdNode = 'vi';
  40 + private static $infoUploadedFillValNode = 'fillvalue';
40 41 private static $infoUploadedPlotTypeNode = 'plottype';
41 42 private static $infoUploadedTableDefNode = 'tableDef';
42 43 private static $infoUploadedUnitsNode = 'units';
... ... @@ -350,6 +351,12 @@ class IHMUserParamLoaderClass
350 351 $plotTypeNodes = $dom->getElementsByTagName(self::$infoUploadedPlotTypeNode);
351 352 if ($plotTypeNodes->length > 0)
352 353 $result["plotType"] = $plotTypeNodes->item(0)->nodeValue;
  354 +
  355 + //get parameter fil value
  356 + $result["fillValue"] = NULL;
  357 + $fillValueNodes = $dom->getElementsByTagName(self::$infoUploadedFillValNode);
  358 + if (($fillValueNodes->length > 0) && ($fillValueNodes->item(0)->nodeValue != ''))
  359 + $result["fillValue"] = $fillValueNodes->item(0)->nodeValue;
353 360  
354 361 //get parameter y units
355 362 $unitsNodes = $dom->getElementsByTagName(self::$infoUploadedUnitsNode);
... ...
src/Request/ParamsRequestImpl/ParamsRequestDataClass.php
... ... @@ -224,12 +224,15 @@ class ParamsRequestDataClass extends ProcessRequestDataClass
224 224 return $this->localParamsToCreateAndCopy;
225 225 }
226 226  
227   - public function addLocalParamToCreate($paramId, $viId, $realVarId, $minSampling, $maxSampling, $type, $size, $dateModif, $isImpex = false)
  227 + public function addLocalParamToCreate($paramId, $viId, $realVarId, $minSampling, $maxSampling, $type, $size, $fillValue, $dateModif, $isImpex = false)
228 228 {
229 229 $newParam = new ParamNodeClass();
230 230 $newParam->setId($paramId);
231 231  
232   - $newParam->getInfo();
  232 + $infoNode = $newParam->getInfo();
  233 + if (isset($fillValue)) {
  234 + $infoNode->setFillVal($fillValue);
  235 + }
233 236  
234 237 $localParamNode = $newParam->addParamGet(ParamGetTypeEnum::LOCALBASE);
235 238 $localParamNode->setVIId($viId);
... ...