Velocities and forces for selections.
[gromacs/qmmm-gamess-us.git] / include / writeps.h
blob316fa67acf4e8efe29d0bb3c743bf0073eb5c635
1 /*
2 *
3 * This source code is part of
4 *
5 * G R O M A C S
6 *
7 * GROningen MAchine for Chemical Simulations
8 *
9 * VERSION 3.2.0
10 * Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
11 * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
12 * Copyright (c) 2001-2004, The GROMACS development team,
13 * check out http://www.gromacs.org for more information.
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
20 * If you want to redistribute modifications, please consider that
21 * scientific software is very special. Version control is crucial -
22 * bugs must be traceable. We will be happy to consider code for
23 * inclusion in the official distribution, but derived work must not
24 * be called official GROMACS. Details are found in the README & COPYING
25 * files - if they are missing, get the official version at www.gromacs.org.
27 * To help us fund GROMACS development, we humbly ask that you cite
28 * the papers on the package - you can find them in the top README file.
30 * For more info, check our website at http://www.gromacs.org
32 * And Hey:
33 * Gromacs Runs On Most of All Computer Systems
36 #ifndef _writeps_h
37 #define _writeps_h
39 #ifdef HAVE_CONFIG_H
40 #include <config.h>
41 #endif
43 #include <stdio.h>
44 #include "typedefs.h"
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
50 typedef enum {
51 eXCenter, eXLeft, eXRight
52 } eXPos;
54 typedef enum {
55 eYCenter, eYTop, eYBottom
56 } eYPos;
58 enum {
59 efontTIMES, efontTIMESITALIC, efontTIMESBOLD, efontTIMESBOLDITALIC,
60 efontHELV, efontHELVITALIC, efontHELVBOLD, efontHELVBOLDITALIC,
61 efontCOUR, efontCOURITALIC, efontCOURBOLD, efontCOURBOLDITALIC,
62 efontNR };
65 typedef struct t_int_psdata *t_psdata;
66 /* Only use t_psdata - it is a pointer to an abstract datatype
67 * that maintains the state of the postscript currently written.
70 extern const char *fontnm[efontNR];
72 extern t_psdata ps_open(const char *fn,real x1,real y1,real x2,real y2);
74 extern void ps_linewidth(t_psdata ps,int lw);
75 extern void ps_color(t_psdata ps,real r,real g,real b);
76 extern void ps_rgb(t_psdata ps,t_rgb *rgb);
78 extern void ps_rgb_box(t_psdata ps,t_rgb *rgb);
79 extern void ps_rgb_nbox(t_psdata ps,t_rgb *rgb,real n);
80 extern void ps_init_rgb_box(t_psdata ps,real xbox, real ybox);
81 extern void ps_init_rgb_nbox(t_psdata ps,real xbox, real ybox);
83 extern void ps_lineto(t_psdata ps,real x,real y);
84 extern void ps_linerel(t_psdata ps,real dx,real dy);
86 extern void ps_moveto(t_psdata ps,real x,real y);
87 extern void ps_moverel(t_psdata ps,real dx,real dy);
89 extern void ps_line(t_psdata ps,real x1,real y1,real x2,real y2);
91 extern void ps_box(t_psdata ps,real x1,real y1,real x2,real y2);
92 extern void ps_fillbox(t_psdata ps,real x1,real y1,real x2,real y2);
94 extern void ps_arc(t_psdata ps,real x1,real y1,real rad,real a0,real a1);
95 extern void ps_fillarc(t_psdata ps,real x1,real y1,real rad,real a0,real a1);
96 extern void ps_arcslice(t_psdata ps,real xc,real yc,
97 real rad1,real rad2,real a0,real a1);
98 extern void ps_fillarcslice(t_psdata ps,real xc,real yc,
99 real rad1,real rad2,real a0,real a1);
101 extern void ps_circle(t_psdata ps,real x1,real y1,real rad);
103 extern void ps_font(t_psdata ps,int font,real size);
104 extern void ps_strfont(t_psdata ps,char *font,real size);
106 extern void ps_text(t_psdata ps,real x1,real y1,const char *str);
107 extern void ps_ctext(t_psdata ps,real x1,real y1,const char *str,int expos);
109 extern void ps_close(t_psdata ps);
111 extern void ps_flip(t_psdata ps,bool bPlus);
112 /* Rotate over 90 (bPlus) or -90 (!bPlus) degrees */
114 extern void ps_rotate(t_psdata ps,real angle);
116 extern void ps_translate(t_psdata ps,real x,real y);
118 extern void ps_setorigin(t_psdata ps);
119 extern void ps_unsetorigin(t_psdata ps);
121 extern void viewps(char *fn);
123 extern void ps_comment(t_psdata ps,const char *s);
125 #ifdef __cplusplus
127 #endif
129 #endif /* _writeps_h */