HistoPlot.hh
2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*
* HistoPlot.hh
*
* Created on: 29 oct. 2013
* Author: CS
*/
#ifndef HISTOPLOT_HH_
#define HISTOPLOT_HH_
#include "NodeCfg.hh"
#include "HistoPlotNode.hh"
#include "PanelPlotOutput.hh"
namespace plot {
/**
* @brief Plot that draws f(x).
*/
class HistoPlot: public PanelPlotOutput {
public:
HistoPlot(AMDA::Parameters::ParameterManager& manager,
boost::shared_ptr<Panel> panel);
virtual ~HistoPlot(){};
/**
* @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);
// /**
// * @overload plot::PanelPlotOutput::preparePlotArea()
// */
virtual void preparePlotArea(double startTime, double stopTime, int intervalIndex);
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_);
// /**
// * @overload plot::PanelPlotOutput::createParameters()
// */
virtual void createParameters(std::list<std::string>& usedParametersId_);
/**
* @overload PanelPlotOutput::resetPlot - reset plot
*/
virtual void resetPlot();
protected:
void histo1DUtils(double startDate, double stopDate, HistogramSeriesProperties &pHistogramProperties,
std::vector<std::pair<double,double>> &grid, double &xBinSize, bool resetCache=FALSE);
virtual void drawHistogram(double startDate, double stopDate, std::string pParamId,
HistogramSeriesProperties &pHistogramProperties, bool isSuperposed);
private:
// /**
// * @brief Configure series color (symbols and line) and range of axis (depending of parameters series to draw).
// */
void configureSeriesAxis(double startTime, double stopTime);
// /**
// * @brief Configure axis legend with paramInfo.
// */
void configureAxisLegend();
};
} /* namespace plot */
#endif /* HISTOPLOT_HH_ */