Blame view

src/ParamOutputImpl/Plot/Ascii/AsciiPlotOutput.cc 1.01 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
/*
 * AsciiPlotOutput.cc
 *
 *  Created on: 30 oct. 2013
 *      Author: CS
 */

#include "AsciiPlotOutput.hh"
#include <fstream>

namespace plot {

AsciiPlotOutput::AsciiPlotOutput(AMDA::Parameters::ParameterManager& manager,
		boost::shared_ptr<Panel> panel) :
		XYPlot(manager, panel) {

}

AsciiPlotOutput::~AsciiPlotOutput() {

}

d57f00dc   Benjamin Renard   Draw NO DATA
23
bool AsciiPlotOutput::draw(double startTime, double stopTime, int intervalIndex,
fbe3c2bb   Benjamin Renard   First commit
24
25
		bool isFirstInterval, bool isLastInterval) {
	// draw panel
d57f00dc   Benjamin Renard   Draw NO DATA
26
	bool dataPloted = PanelPlotOutput::draw(startTime,stopTime,intervalIndex,isFirstInterval,isLastInterval);
fbe3c2bb   Benjamin Renard   First commit
27
28
29
30
31

	std::ofstream out("asciiplot.txt");
	out << *(_panel->_page) << std::endl;
	out << *_panel << std::endl;
	out.close();
d57f00dc   Benjamin Renard   Draw NO DATA
32
33

	return dataPloted;
fbe3c2bb   Benjamin Renard   First commit
34
35
36
37
38
39
}

void AsciiPlotOutput::drawSeries(double /*startDate*/, double /*stopDate*/, int /*intervalIndex*/, std::string /*pParamId*/,
		SeriesProperties& /*pSerie*/,
		AMDA::Common::ParameterIndexComponent /*pParamIndex*/, ParameterAxes& /*param*/,
		bool /*moreThanOneSerieForAxis*/) {
fbe3c2bb   Benjamin Renard   First commit
40
41
42
43
}

}
/* namespace plot */