//1// "$Id: glpfile.h,v 1.1 2003/02/06 09:37:55 jpr Exp $"2//3// Header file for the GLPfile class for the OpenGL printing toolkit.4//5// The GLP library is distributed under the terms of the GNU Library6// General Public License which is described in the file "COPYING.LIB".7// If you use this library in your program, please include a line reading8// "OpenGL Printing Toolkit by Michael Sweet" in your version or copyright9// output.10//11// Revision History:12//13// $Log: glpfile.h,v $14// Revision 1.1 2003/02/06 09:37:55 jpr15// *** empty log message ***16//17// Revision 1.2 1996/07/13 12:52:02 mike18// Changed default print options to include drawing of background.19//20// Revision 1.1 1996/06/27 03:07:13 mike21// Initial revision22//2324#ifndef _GL_GLPFILE_H_25#define _GL_GLPFILE_H_2627//28// Include necessary headers.29//3031#include "glp.h"323334struct GLPtext35{36GLPtext *next;37double x,y,h;38double r,g,b;39char *string;40};4142// GLPtext *texthead;4344//45// The Adobe PostScript file output class for GLP. Basically, we just46// add file and page count members and define our own constructor,47// destructor, and 'EndPage()' functions.48//4950class GLPfile : public GLPcontext //// GLPfile class51{52private:53int page_count; // Page count54std::fstream *outfile; // Output file5556public:57GLPfile(char *print_name,58int print_options = GLP_FIT_TO_PAGE | GLP_DRAW_BACKGROUND,59int print_size = 0);60~GLPfile(void);6162int EndPage(void);63void output_tree( GLPprimitive *tree );64void output_prim( GLPprimitive *prim );65void DoOutputPS( GLPtext *text );66};6768#endif // !_GL_GLPFILE_H_6970//71// End of "$Id: glpfile.h,v 1.1 2003/02/06 09:37:55 jpr Exp $".72//737475