Fixed a bug in the pdb-writing code.
[gromacs.git] / include / writeps.h
blob06b0ac7063d780fe3dcf02a060cda59a9fa9a610
1 /*
2 * $Id$
3 *
4 * This source code is part of
5 *
6 * G R O M A C S
7 *
8 * GROningen MAchine for Chemical Simulations
9 *
10 * VERSION 3.1
11 * Copyright (c) 1991-2001, University of Groningen, The Netherlands
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * If you want to redistribute modifications, please consider that
18 * scientific software is very special. Version control is crucial -
19 * bugs must be traceable. We will be happy to consider code for
20 * inclusion in the official distribution, but derived work must not
21 * be called official GROMACS. Details are found in the README & COPYING
22 * files - if they are missing, get the official version at www.gromacs.org.
24 * To help us fund GROMACS development, we humbly ask that you cite
25 * the papers on the package - you can find them in the top README file.
27 * For more info, check our website at http://www.gromacs.org
29 * And Hey:
30 * Getting the Right Output Means no Artefacts in Calculating Stuff
33 #ifndef _writeps_h
34 #define _writeps_h
36 static char *SRCID_writeps_h = "$Id$";
37 #ifdef HAVE_CONFIG_H
38 #include <config.h>
39 #endif
41 #ifdef HAVE_IDENT
42 #ident "@(#) writeps.h 1.10 8/25/97"
43 #endif /* HAVE_IDENT */
44 #include <stdio.h>
45 #include "typedefs.h"
47 typedef enum {
48 eXCenter, eXLeft, eXRight
49 } eXPos;
51 typedef enum {
52 eYCenter, eYTop, eYBottom
53 } eYPos;
55 enum {
56 efontTIMES, efontTIMESITALIC, efontTIMESBOLD, efontTIMESBOLDITALIC,
57 efontHELV, efontHELVITALIC, efontHELVBOLD, efontHELVBOLDITALIC,
58 efontCOUR, efontCOURITALIC, efontCOURBOLD, efontCOURBOLDITALIC,
59 efontNR };
61 extern char *fontnm[efontNR];
63 extern FILE *ps_open(char *fn,real x1,real y1,real x2,real y2);
65 extern void ps_linewidth(FILE *ps,int lw);
66 extern void ps_color(FILE *ps,real r,real g,real b);
67 extern void ps_rgb(FILE *ps,t_rgb *rgb);
69 extern void ps_rgb_box(FILE *ps,t_rgb *rgb);
70 extern void ps_rgb_nbox(FILE *ps,t_rgb *rgb,real n);
71 extern void ps_init_rgb_box(FILE *ps,real xbox, real ybox);
72 extern void ps_init_rgb_nbox(FILE *ps,real xbox, real ybox);
74 extern void ps_lineto(FILE *ps,real x,real y);
75 extern void ps_linerel(FILE *ps,real dx,real dy);
77 extern void ps_moveto(FILE *ps,real x,real y);
78 extern void ps_moverel(FILE *ps,real dx,real dy);
80 extern void ps_line(FILE *ps,real x1,real y1,real x2,real y2);
82 extern void ps_box(FILE *ps,real x1,real y1,real x2,real y2);
83 extern void ps_fillbox(FILE *ps,real x1,real y1,real x2,real y2);
85 extern void ps_arc(FILE *ps,real x1,real y1,real rad,real a0,real a1);
86 extern void ps_fillarc(FILE *ps,real x1,real y1,real rad,real a0,real a1);
87 extern void ps_arcslice(FILE *ps,real xc,real yc,
88 real rad1,real rad2,real a0,real a1);
89 extern void ps_fillarcslice(FILE *ps,real xc,real yc,
90 real rad1,real rad2,real a0,real a1);
92 extern void ps_circle(FILE *ps,real x1,real y1,real rad);
94 extern void ps_font(FILE *ps,int font,real size);
95 extern void ps_strfont(FILE *ps,char *font,real size);
97 extern void ps_text(FILE *ps,real x1,real y1,char *str);
98 extern void ps_ctext(FILE *ps,real x1,real y1,char *str,int expos);
100 extern void ps_close(FILE *ps);
102 extern void ps_rotate(FILE *ps,bool bPlus);
103 /* Rotate over 90 (bPlus) or -90 (!bPlus) degrees */
104 extern void ps_translate(FILE *ps,real x,real y);
106 extern void ps_setorigin(FILE *ps);
107 extern void ps_unsetorigin(FILE *ps);
109 extern void viewps(char *fn);
111 extern void ps_comment(FILE *ps,char *s);
113 #endif /* _writeps_h */