diff --git a/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php b/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php index d998dd1..66f8901 100644 --- a/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php +++ b/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php @@ -720,7 +720,11 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass case 'ispectro' : $paramNode = $plotNode->getParams()->getParamById($paramInfo['id']); $this->unmarshallInstantSpectro($paramData->{'param-drawing-object'}, $plotNode, $paramNode, $paramInfo['indexes']); - break; + break; + case 'intervals' : + $paramNode = $plotNode->getParams()->getParamById($paramInfo['id']); + $this->unmarshallIntervals($paramData->{'param-drawing-object'}, $paramNode); + break; default : throw new Exception('Drawing type not implemented.'); } @@ -1012,6 +1016,11 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass foreach ($indexes as $index) $paramNode->addStatusBar($index); } + + protected function unmarshallIntervals($paramDrawingData, $paramNode) + { + $paramNode->addIntervals(); + } protected function unmarshallTickBar($paramDrawingData, $paramNode, $indexes) { diff --git a/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotParamsNodeClass.php b/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotParamsNodeClass.php index 1a21048..1604f99 100644 --- a/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotParamsNodeClass.php +++ b/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotParamsNodeClass.php @@ -38,6 +38,8 @@ define ("REQUESTOUTPUTPLOTSTATUSBAR_INDEX", "index"); define ("REQUESTOUTPUTPLOTTICKBAR_NAME", "serie"); define ("REQUESTOUTPUTPLOTTICKBAR_INDEX", "index"); +define ("REQUESTOUTPUTPLOTINTERVALS_NAME", "intervals"); + /** * @class RequestOutputPlotParamNodeClass * @brief Definition of a param for a plot of a plot request @@ -177,6 +179,13 @@ class RequestOutputPlotParamNodeClass extends NodeClass $this->addChild($tickBarNode); return $tickBarNode; } + + public function addIntervals() + { + $intervalsNode = new NodeClass(REQUESTOUTPUTPLOTINTERVALS_NAME); + $this->addChild($intervalsNode); + return $intervalsNode; + } public function loadFromNode($xmlNode) { -- libgit2 0.21.2