Blame view

src/ParamOutputImpl/Plot/PlotCommon.hh 957 Bytes
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
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
61
62
63
/*
 * PlotCommon.hh
 *
 *  Created on: 30 oct. 2013
 *      Author: CS
 */

#ifndef PLOTCOMMON_HH_
#define PLOTCOMMON_HH_

#include <string>
#include <ostream>

namespace plot {

class PlotCommon {
public:

	enum Align {
		CENTER, LEFT, RIGHT
	};


	enum Position {
		POS_TOP, POS_BOTTOM, POS_LEFT, POS_RIGHT, POS_CENTER
	};

	enum Dimension {
		ISO_A4,
		US_letter
	};

	enum Orientation {
		LANDSCAPE,
		PORTRAIT
	};

	enum Mode {
		COLOR,
		GRAYSCALE
	};

	PlotCommon();
	virtual ~PlotCommon();

	/**
	 * Sets title align.
	 */
	static void setTitleAlign(const std::string& pAlign, PlotCommon::Align& intoValue);

	/**
	 * Sets title position.
	 */
	static void setPosition(const std::string& pPosition, PlotCommon::Position& intoValue);
};

std::ostream & operator <<(std::ostream & out,
		PlotCommon::Position & position);
std::ostream & operator <<(std::ostream & out,
		PlotCommon::Align & align);

} /* namespace plot */
#endif /* PLOTCOMMON_HH_ */