Blame view

src/ParamOutputImpl/Plot/AxisLegendManager.hh 1.99 KB
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
/*
 * AxisLegendManager.hh
 *
 *  Created on: 23 jan. 2015
 *      Author: AKKA
 */

#ifndef AXISLEGENDMANAGER_HH_
#define AXISLEGENDMANAGER_HH_

#include "PanelPlotOutput.hh"
#include "XYPlot.hh"
c2fa3b5d   Benjamin Renard   Rework of legend ...
13
14
15
#include "ParamMgr.hh"

using namespace AMDA::Info;
fbe3c2bb   Benjamin Renard   First commit
16
17
18
19
20

namespace plot {

class AxisLegendManager {
	public:
5ee90a58   Benjamin Renard   Use AxisLegendMan...
21
22
		typedef std::map<std::string, std::list<AMDA::Common::ParameterIndexComponent> > AxisParamsComponents;

c2fa3b5d   Benjamin Renard   Rework of legend ...
23
24
		static void configureYAxisLegendForSpectro(PanelPlotOutput* plot);

fbe3c2bb   Benjamin Renard   First commit
25
26
		static void configureYAxisLegendForSeries(PanelPlotOutput* plot);

c2fa3b5d   Benjamin Renard   Rework of legend ...
27
28
		static void configureColorAxisLegendForSpectro(PanelPlotOutput* plot);

fbe3c2bb   Benjamin Renard   First commit
29
30
31
		static void configureColorAxisLegendForSeries(PanelPlotOutput* plot);

		static void configureXAxisLegendForSeries(XYPlot* plot);
c2fa3b5d   Benjamin Renard   Rework of legend ...
32

5ee90a58   Benjamin Renard   Use AxisLegendMan...
33
		static void setAxisLegendForSeries(PanelPlotOutput* plot, boost::shared_ptr<Axis>& pAxis, AxisParamsComponents& axisParamsComponents);
c2fa3b5d   Benjamin Renard   Rework of legend ...
34

5ee90a58   Benjamin Renard   Use AxisLegendMan...
35
36
37
38
39
		static void setAxisLegendForSpectro(PanelPlotOutput* plot, boost::shared_ptr<Axis>& pAxis, std::string originalParamId);

		static void setAxisLegendForTable(PanelPlotOutput* plot, boost::shared_ptr<Axis>& pAxis, std::string originalParamId, std::string paramId, AMDA::Common::ParameterIndexComponentList& indexes, int relatedDim);

	private:
c2fa3b5d   Benjamin Renard   Rework of legend ...
40
41
42
43
44
45
46
47
48
49
50
51
		static void addInfoPart(std::string& legend, std::string info);

		static void addIndexPart(std::string& legend, AMDA::Common::ParameterIndexComponent& index);

		static void addIndexPart(std::string& legend, int index);

		static void addBoundsPart(std::string& legend, PLFLT min, PLFLT max);

		static void addBreakLine(std::string& legend);

		static void pushComponentInList(std::string paramId, AMDA::Common::ParameterIndexComponent& index, AxisParamsComponents& axisParamsComponents);

c2fa3b5d   Benjamin Renard   Rework of legend ...
52
53
		static std::string getParamLegend(AMDA::Info::ParamInfoSPtr paramInfo, AMDA::Common::ParameterIndexComponent& index);

5ee90a58   Benjamin Renard   Use AxisLegendMan...
54
		//static std::string getParamLegend(AMDA::Info::ParamInfoSPtr paramInfo, int index);
8c8ac7bf   Benjamin Renard   Write mission/ins...
55
56

		static std::string getMissionInstrumentInfo(AMDA::Info::ParamInfoSPtr paramInfo);
fbe3c2bb   Benjamin Renard   First commit
57
58
59
60
61
};

}

#endif