Blame view

src/ParamOutputImpl/Plot/HistoPlot/HistoPlot.hh 2.33 KB
4c693aae   Erdogan Furkan   For now
1
2
3
4
5
6
7
8
9
10
11
12
/*
 * HistoPlot.hh
 *
 *  Created on: 29 oct. 2013
 *      Author: CS
 */

#ifndef HISTOPLOT_HH_
#define HISTOPLOT_HH_

#include "NodeCfg.hh"
#include "HistoPlotNode.hh"
c122311f   Erdogan Furkan   Histo 1D&2D worki...
13
#include "PanelPlotOutput.hh"
4c693aae   Erdogan Furkan   For now
14
15
16
17
18
19
20


namespace plot {

/**
 *  @brief Plot that draws f(x).
 */
7c94ae0d   Erdogan Furkan   For now, histo1d ...
21
class HistoPlot: public PanelPlotOutput {
4c693aae   Erdogan Furkan   For now
22
23
public:
	HistoPlot(AMDA::Parameters::ParameterManager& manager,
7c94ae0d   Erdogan Furkan   For now, histo1d ...
24
			boost::shared_ptr<Panel> panel);
4c693aae   Erdogan Furkan   For now
25
26
	virtual ~HistoPlot(){};

7c94ae0d   Erdogan Furkan   For now, histo1d ...
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
	/**
	 * @overload plot::PanelPlotOutput
	 */
	virtual const std::string typeName() {
		return HISTOPLOT_NODENAME;
	}

	/**
	 * @overload plot::PanelPlotOutput
	 */
	virtual const std::string subTypeName() {
		return HISTOPLOT_NODENAME;
	}

	/**
	 * @brief Configure params legend for a plot.
	 * @overload plot::PanelPlotOutput
	 */
	//virtual void configureParamsLegend(double startTime, double stopTime, int intervalIndex);
4c693aae   Erdogan Furkan   For now
46

4c693aae   Erdogan Furkan   For now
47
48
49
50

	// /**
	//  * @overload plot::PanelPlotOutput::preparePlotArea()
	//  */
7c94ae0d   Erdogan Furkan   For now, histo1d ...
51
	virtual void preparePlotArea(double startTime, double stopTime, int intervalIndex);
4c693aae   Erdogan Furkan   For now
52
53


c122311f   Erdogan Furkan   Histo 1D&2D worki...
54
55
56
57
	void getUsedParameters(AMDA::Parameters::ParameterSPtr originalXParam_,AMDA::Parameters::ParameterSPtr originalYParam_,
							AMDA::Parameters::ParameterSPtr originalZParam_, ResamplingProperties &resamplingProperties_,
							int maxResolution_,AMDA::Parameters::ParameterSPtr &usedXParam_,
							AMDA::Parameters::ParameterSPtr &usedYParam_,AMDA::Parameters::ParameterSPtr &usedZParam_);
4c693aae   Erdogan Furkan   For now
58
59
60
	// /**
	//  * @overload plot::PanelPlotOutput::createParameters()
	//  */
7c94ae0d   Erdogan Furkan   For now, histo1d ...
61
	virtual void createParameters(std::list<std::string>& usedParametersId_);
4c693aae   Erdogan Furkan   For now
62

8c2fc628   Erdogan Furkan   EVerything ok now
63
64
65
66
67
	/**
	 * @overload PanelPlotOutput::resetPlot - reset plot
	 */
	virtual void resetPlot();

1248af2b   Erdogan Furkan   Refactored, all w...
68
protected:
4c693aae   Erdogan Furkan   For now
69

1248af2b   Erdogan Furkan   Refactored, all w...
70
	void histo1DUtils(double startDate, double stopDate, HistogramSeriesProperties &pHistogramProperties,
9e457aa4   Erdogan Furkan   For now
71
								std::vector<std::pair<double,double>> &grid, double &xBinSize, bool resetCache=FALSE);
4c693aae   Erdogan Furkan   For now
72

9e457aa4   Erdogan Furkan   For now
73
74
	virtual void drawHistogram(double startDate, double stopDate, std::string pParamId, 
								HistogramSeriesProperties &pHistogramProperties, bool isSuperposed);
4c693aae   Erdogan Furkan   For now
75

4c693aae   Erdogan Furkan   For now
76
77
78
79
80

	private:
	// /**
	//  * @brief Configure series color (symbols and line) and range of axis (depending of parameters series to draw).
	//  */
7c94ae0d   Erdogan Furkan   For now, histo1d ...
81
	void configureSeriesAxis(double startTime, double stopTime);
4c693aae   Erdogan Furkan   For now
82
83
84
85

	// /**
	//  * @brief Configure axis legend with paramInfo.
	//  */
7c94ae0d   Erdogan Furkan   For now, histo1d ...
86
	void configureAxisLegend();
4c693aae   Erdogan Furkan   For now
87
88
89
90
};

} /* namespace plot */
#endif /* HISTOPLOT_HH_ */