Blame view

src/ParamOutputImpl/Plot/SpectroProperties.cc 1.48 KB
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
/*
 * SpectroProperties.cc
 *
 *  Created on: Jul 1, 2014
 *      Author: AKKA
 */
#include "SpectroProperties.hh"
#include "DrawingProperties.hh"
#include <sstream>

fe6b6521   Menouard AZIB   J'ai ajouté le tr...
11
12
namespace plot
{
fbe3c2bb   Benjamin Renard   First commit
13

fe6b6521   Menouard AZIB   J'ai ajouté le tr...
14
	/*
fbe3c2bb   Benjamin Renard   First commit
15
16
 * Dumps properties for test.
 */
fe6b6521   Menouard AZIB   J'ai ajouté le tr...
17
18
19
20
21
22
23
24
25
26
27
28
	void SpectroProperties::dump(std::ostream &out_, std::string &prefix_)
	{
		out_ << "[SPECTRO PROPERTIES]" << std::endl;
		out_ << prefix_ << "xAxisId=" << getXAxisId() << std::endl;
		out_ << prefix_ << "yAxisId=" << getYAxisId() << std::endl;
		out_ << prefix_ << "zAxisId=" << getZAxisId() << std::endl;
		out_ << prefix_ << "paramId=" << getParamId() << std::endl;
		out_ << prefix_ << "indexDef=" << getIndexDef() << std::endl;
		out_ << prefix_ << "relatedDim=" << getRelatedDim() << std::endl;
		out_ << prefix_ << "useLog0AsMin=" << getUseLog0AsMin() << std::endl;
		getColor().dump(out_, prefix_);
	}
fbe3c2bb   Benjamin Renard   First commit
29

fe6b6521   Menouard AZIB   J'ai ajouté le tr...
30
31
32
33
34
35
36
37
38
39
40
	std::ostream &operator<<(std::ostream &out_, const SpectroProperties &prop_)
	{
		out_ << "[SPECTRO PROPERTIES]" << std::endl;
		out_ << "{" << std::endl;
		out_ << "  xAxis Id = " << prop_.getXAxisId() << std::endl;
		out_ << "  yAxis Id = " << prop_.getYAxisId() << std::endl;
		out_ << "  zAxis Id = " << prop_.getZAxisId() << std::endl;
		out_ << "  default color = " << prop_.getColor() << std::endl;
		out_ << "  indexDef = " << prop_.getIndexDef() << std::endl;
		out_ << "  relatedDim = " << prop_.getRelatedDim() << std::endl;
		out_ << "  useLog0AsMin = " << prop_.getUseLog0AsMin() << std::endl;
fbe3c2bb   Benjamin Renard   First commit
41

fe6b6521   Menouard AZIB   J'ai ajouté le tr...
42
43
44
		out_ << "}" << std::endl;
		return out_;
	}
fbe3c2bb   Benjamin Renard   First commit
45

fe6b6521   Menouard AZIB   J'ai ajouté le tr...
46
} // namespace plot