AsciiPlotOutput.hh
1.39 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
/*
* AsciiPlotOutput.hh
*
* Created on: 30 oct. 2013
* Author: CS
*/
#ifndef ASCIIPLOTOUTPUT_HH_
#define ASCIIPLOTOUTPUT_HH_
#include "AsciiPlotOutputNode.hh"
#include "XYPlot.hh"
#include "PlotOutput.hh"
#include "NodeCfg.hh"
#include "PlotLogger.hh"
namespace plot {
/**
* Plot just for test. Outputs plot properties
*/
class AsciiPlotOutput: public plot::XYPlot {
public:
AsciiPlotOutput(AMDA::Parameters::ParameterManager& manager,
boost::shared_ptr<Panel> panel);
virtual ~AsciiPlotOutput();
/**
* @overload plot::PanelPlotOutput
*/
virtual const std::string typeName(){
return ASCIIPLOT_NODENAME;
}
/**
* @overload plot::PanelPlotOutput
*/
virtual const std::string subTypeName(){
return ASCIIPLOT_NODENAME;
}
/**
* @brief return true if at least data is ploted
*/
bool draw(double startTime, double stopTime, int intervalIndex, bool isFirstInterval, bool isLastInterval);
protected:
/**
* @overload PanelPlotOutput::drawSeries(double startDate, double stopDate, std::string pParamId, SeriesProperties const& pSerie)
* @brief Draw series of parameter on plot.
*/
void drawSeries(double startDate, double stopDate, int intervalIndex, std::string pParamId,
SeriesProperties& pSerie,
AMDA::Common::ParameterIndexComponent pParamIndex,
ParameterAxes& param, bool moreThanOneSerieForAxis);
};
} /* namespace plot */
#endif /* ASCIIPLOTOUTPUT_HH_ */