File: graph.h

package info (click to toggle)
entropybroker 2.9-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,600 kB
  • sloc: cpp: 14,386; sh: 934; makefile: 188; java: 148; perl: 12
file content (15 lines) | stat: -rw-r--r-- 499 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class graph
{
protected:
	std::string font;

	void calc_text_width(std::string font_descr, double font_height, std::string str, int *width, int *height);
	void draw_text(gdImagePtr im, std::string font_descr, double font_height, int color, std::string str, int x, int y);
	std::string shorten(double value);

public:
	graph(std::string font_in);
	virtual ~graph();

	void do_draw(int width, int height, std::string title, long int *t, double *v, int n_values, char **result, size_t *result_len);
};