8f5610c706e9c764912e31cb8d0e2a7cc35e7aba
[alexxy/gromacs.git] / src / ngmx / nmol.h
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 2.0
11  * 
12  * Copyright (c) 1991-1999
13  * BIOSON Research Institute, Dept. of Biophysical Chemistry
14  * University of Groningen, The Netherlands
15  * 
16  * Please refer to:
17  * GROMACS: A message-passing parallel molecular dynamics implementation
18  * H.J.C. Berendsen, D. van der Spoel and R. van Drunen
19  * Comp. Phys. Comm. 91, 43-56 (1995)
20  * 
21  * Also check out our WWW page:
22  * http://md.chem.rug.nl/~gmx
23  * or e-mail to:
24  * gromacs@chem.rug.nl
25  * 
26  * And Hey:
27  * Great Red Oystrich Makes All Chemists Sane
28  */
29
30 #ifndef _nmol_h
31 #define _nmol_h
32
33 static char *SRCID_nmol_h = "$Id$";
34
35 #ifdef HAVE_IDENT
36 #ident  "@(#) nmol.h 1.1 11/19/92"
37 #endif /* HAVE_IDENT */
38
39 #include "x11.h"
40 #include "xutil.h"
41
42 extern t_molwin *init_mw(t_x11 *x11,Window Parent,
43                          int x,int y,int width,int height,
44                          unsigned long fg,unsigned long bg,
45                          matrix box);
46 /* Create the molecule window using the x,y etc. */
47
48 extern void map_mw(t_x11 *x11,t_molwin *mw);
49
50 extern void z_fill(t_manager *man, real *zz);
51 extern void create_visibility(t_manager *man);
52 extern int  compare_obj(const void *a,const void *b);
53 extern int  filter_vis(t_manager *man);
54 extern void set_sizes(t_manager *man,real sx,real sy);
55
56 extern bool toggle_hydrogen(t_x11 *x11,t_molwin *mw);
57 /* Toggle the state of the hydrogen drawing,
58  * return the current state
59  */
60
61 extern void set_bond_type(t_x11 *x11,t_molwin *mw,int bt);
62 /* Set the state of the atoms drawing. */
63
64 extern void set_box_type (t_x11 *x11,t_molwin *mw,int bt);
65 /* Set the type of box or none (bt = 0)
66  */
67
68 extern void done_mw(t_x11 *x11,t_molwin *mw);
69
70 #endif  /* _nmol_h */