File: postscript.H

package info (click to toggle)
sppc 1.0.1-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 448 kB
  • ctags: 470
  • sloc: cpp: 4,585; sh: 356; makefile: 69
file content (53 lines) | stat: -rw-r--r-- 1,516 bytes parent folder | download | duplicates (3)
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
#ifndef POSTSCRIPT_H

#ifdef HAVE_CONFIG_H
#include "config.H"
#endif

#ifdef __GNUC__
#  pragma interface
#endif

#include <iostream.h>
#include "graph2D.H"

class TPostScript : public Tgraph2D {
private:
	ostream& o;
	bool landscape;
	greal ymax;
public:
	TPostScript(ostream& o1, greal xmax, greal ymax1,
				greal titlefontsize, greal labelfontsize, greal axisfontsize, greal annotfontsize,
				bool landscape1, const char *papertype);
	void point(greal x, greal y);
	void begin_line(greal x, greal y);
	void vertex(greal x1, greal y1);
	void end_line();
	void begin_fill(greal x, greal y);
	void end_fill();
	bool polygons_always_convex() const {return false;}
	void circle(greal x, greal y, greal r);
	void fillcircle(greal x, greal y, greal r);
	void text(greal x, greal y, const char *s, int Xoffset, int Yoffset, bool rotate);
	void text_exponent(greal x, greal y, const char *mant, const char *expo, int Xoffset, int Yoffset);
	void comment(greal x, greal y);
	void comment(const char *s);
	void setfont(TFontType font);
	void setlinewidth(greal lw);
	void setlinetype(TLineType lt);
	void setcolor(const greal rgb[3]);
	void setcolor(int i);
	void begin_clipped(greal x1, greal y1, greal x2, greal y2);
	void end_clipped();
	void fillrrect(greal x1, greal y1, greal dx, greal dy);
	void fillrrect_interp(greal x1, greal y1, greal dx, greal dy, int u1, int u2, int u3, int u4);
	void setpalette(const int pal[3][Ncolors]);
	void gsave();
	void grestore();
	~TPostScript();
};

#define POSTSCRIPT_H

#endif