AsciiPlotOutput.cc
997 Bytes
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
/*
* 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() {
}
void AsciiPlotOutput::draw(double startTime, double stopTime, int intervalIndex,
bool isFirstInterval, bool isLastInterval) {
// draw panel
PanelPlotOutput::draw(startTime,stopTime,intervalIndex,isFirstInterval,isLastInterval);
std::ofstream out("asciiplot.txt");
out << *(_panel->_page) << std::endl;
out << *_panel << std::endl;
out.close();
}
void AsciiPlotOutput::drawSeries(double /*startDate*/, double /*stopDate*/, int /*intervalIndex*/, std::string /*pParamId*/,
SeriesProperties& /*pSerie*/,
AMDA::Common::ParameterIndexComponent /*pParamIndex*/, ParameterAxes& /*param*/,
bool /*moreThanOneSerieForAxis*/) {
}
}
/* namespace plot */