Commit 319cf057d7881ea9ace310b61b34415c0a77394b

Authored by Benjamin Renard
1 parent cc495d54

Fix orbitserie in relation with the new series management

src/ParamOutputImpl/Plot/PanelPlotOutput.cc
... ... @@ -2574,9 +2574,6 @@ ParameterAxes* PanelPlotOutput::getParameterAxesByColorSerieId(int colorSerieId)
2574 2574  
2575 2575 ParameterAxes* PanelPlotOutput::getParameterAxesByXSerieId(int xSerieId)
2576 2576 {
2577   - if (xSerieId < 0)
2578   - return NULL;
2579   -
2580 2577 for (ParameterAxesList::iterator it = _parameterAxesList.begin();
2581 2578 it != _parameterAxesList.end(); ++it)
2582 2579 {
... ...
src/ParamOutputImpl/Plot/SeriesNode.hh
... ... @@ -229,12 +229,15 @@ public:
229 229  
230 230 SeriesProperties yserie(defaultProps);
231 231 XSeriesProperties xserie;
  232 + xserie.setId(SeriesProperties::AUTO_SERIES_ID);
  233 + ++SeriesProperties::AUTO_SERIES_ID;
232 234  
233 235 // parse attributes for ySerie
234 236 // ---------------------------------------------------------------------
235 237  
236 238 // read parent attributes
237 239 DrawingPropertiesNode<PlotType>::parseAttributes(pNode_, yserie);
  240 + yserie.setXId(xserie.getId());
238 241  
239 242 // specific series node attributes :
240 243 xmlChar * value = NULL;
... ...
src/ParamOutputImpl/Plot/SeriesProperties.cc
... ... @@ -13,6 +13,8 @@
13 13  
14 14 namespace plot {
15 15  
  16 +int SeriesProperties::AUTO_SERIES_ID = -10000;
  17 +
16 18 std::vector<AMDA::Common::ParameterIndexComponent> SeriesProperties::getIndexList(std::map<std::string, ParameterData> *pParameterValues) {
17 19 std::vector<AMDA::Common::ParameterIndexComponent> indexes;
18 20 if (_index == AMDA::Common::ParameterIndexComponent(-1,-1))
... ...
src/ParamOutputImpl/Plot/SeriesProperties.hh
... ... @@ -26,6 +26,7 @@ namespace plot {
26 26 */
27 27 class SeriesProperties: public DrawingProperties {
28 28 public:
  29 + static int AUTO_SERIES_ID;
29 30  
30 31 friend std::ostream& operator<<(std::ostream& out_,
31 32 const SeriesProperties& lprop_);
... ...