Blame view

src/ParamOutputImpl/Plot/Ascii/AsciiPlotOutput.hh 1.27 KB
fbe3c2bb   Benjamin Renard   First commit
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
/*
 * 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;
	}

d57f00dc   Benjamin Renard   Draw NO DATA
35
36
37
38
	/**
 	 * @brief return true if at least data is ploted
 	 */
	bool draw(double startTime, double stopTime, int intervalIndex, bool isFirstInterval, bool isLastInterval);
fbe3c2bb   Benjamin Renard   First commit
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

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_ */