Blame view

src/ParamOutputImpl/Plot/PlPlotUtil.hh 1.04 KB
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

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

8c860e4f   Benjamin Renard   Rework for tickpl...
39
	static double getTextWidthInPlPage(Page* pPage, const char* text);
f6eaec4e   Benjamin Renard   Optimize plot ele...
40
41
42
43
44
45
46

	static PLINT getPlFontFamily(const Font& font);

	static PLFLT getPlFontScaleFactor(const Font& font);

	static PLFLT getPlFontDef(const Font& font);

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

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

} /* namespace plot */


#endif /* PLPLOTUTIL_HH_ */