From 2c18297830c7e4f78d560089757caa8de15f0eae Mon Sep 17 00:00:00 2001 From: Furkan Erdogan Date: Wed, 13 Jul 2022 15:00:29 +0000 Subject: [PATCH] First step --- config/xsd/request/plot.xsd | 1 + src/ParamOutputImpl/Plot/IntervalsNode.hh | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/config/xsd/request/plot.xsd b/config/xsd/request/plot.xsd index ab90d0b..2ffafee 100644 --- a/config/xsd/request/plot.xsd +++ b/config/xsd/request/plot.xsd @@ -874,6 +874,7 @@ + diff --git a/src/ParamOutputImpl/Plot/IntervalsNode.hh b/src/ParamOutputImpl/Plot/IntervalsNode.hh index 308a620..e960bf9 100644 --- a/src/ParamOutputImpl/Plot/IntervalsNode.hh +++ b/src/ParamOutputImpl/Plot/IntervalsNode.hh @@ -57,7 +57,23 @@ public: intervalsPropsPtr->setIndexDef((const char*) value); xmlFree(value); } - + // -- color + Color color(255, 0, 0); + value = xmlGetProp(pNode_, (const xmlChar *)"color"); + if (value) + { + try + { + std::string strValue((const char *)value); + createColor(color, strValue); + } + catch (std::logic_error &e) + { + LOG4CXX_WARN(gLogger, "Intervals Color : " << e.what()); + } + xmlFree(value); + } + intervalsPropsPtr->setColor(color); // add intervals definition to parameter plotOutput->getParameter((const char*)name).addIntervalsProperties(intervalsPropsPtr); } -- libgit2 0.21.2