Blame view

src/ParamOutputImpl/Plot/PlPlotUtil.hh 1001 Bytes
f6eaec4e   Benjamin Renard   Optimize plot ele...
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
/*
 * PlPlotUtil.hh
 *
 *  Created on: 22 apr. 2016
 *      Author: AKKA
 */

#ifndef PLPLOTUTIL_HH_
#define PLPLOTUTIL_HH_

#include <memory>
#include <vector>

#include "Font.hh"
#include "Label.hh"
#include "Page.hh"

namespace plot {

class PlPlotUtil {
public:
	static const float DEFAULT_CHARACTER_SIZE;

	//Fraction of title character height
	static const float LINE_SPACE_TITLE;

	 /**
	  * @brief Set font to plPlot.
	  * @return
	  */
df45df5e   Benjamin Renard   Introduce AxisLeg...
31
	static void setPlFont(const Font& font);
f6eaec4e   Benjamin Renard   Optimize plot ele...
32
33
34
35
36
37
38
39
40
41
42
43
44
45

	/**
	  * @brief Calculate character height and width.
	  * @return Returns size of character where first element is width and second height.
	  */
	static CharSize getCharacterSizeInPlPage(Page* pPage);


	static PLINT getPlFontFamily(const Font& font);

	static PLFLT getPlFontScaleFactor(const Font& font);

	static PLFLT getPlFontDef(const Font& font);

df45df5e   Benjamin Renard   Introduce AxisLeg...
46
	static PLINT getPlFontStyle(const Font& font);
f6eaec4e   Benjamin Renard   Optimize plot ele...
47

df45df5e   Benjamin Renard   Introduce AxisLeg...
48
	static PLINT getPlFontWeight(const Font& font);
f6eaec4e   Benjamin Renard   Optimize plot ele...
49
50
51
52
53
54
};

} /* namespace plot */


#endif /* PLPLOTUTIL_HH_ */