 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
33 cout <<
"Writing file: " << filename << endl;
35 *fps <<
"%%%%Page: 1 1" << endl;
37 *fps <<
"/Helvetica findfont 10 scalefont setfont" << endl;
38 *fps <<
"1 setlinecap\n1 setlinejoin\n2 setlinewidth" << endl;
42 *fps <<
"showpage" << endl;
68 *fps << x <<
" " << y <<
" moveto ";
71 *fps << x <<
" " << y <<
" lineto stroke" << endl;
78 *fps << x + 5 <<
" " << y <<
" moveto ";
80 *fps << x - 5 <<
" (" << node->
label <<
") stringwidth pop sub " << y <<
" moveto ";
81 *fps <<
"(" << node->
label <<
") show" << endl;
int ps_draw_node(ofstream *fps, Bnode *node, float scale, float x, float y)
Draws a tree node into a postscript file.
Header file for postscript output functions.
int ps_close(ofstream *fps)
Closes a postscript file.
ofstream * ps_open_and_init(Bstring filename, Bstring title, int npages, int width, int height)
Opens and initializes a postscript file.
Header file for writing a tree into a postcsript file.
Header file for general utilities.
int ps_draw_tree(Bstring &filename, Bnode *root, float scale)
Draws a tree into a postscript file.