Xmipp  v3.23.11-Nereus
situs.h
Go to the documentation of this file.
1 /*********************************************************************
2 * s i t u s . h *
3 **********************************************************************
4 * Header file for Situs C programs (c) Willy Wriggers, 1998-2015 *
5 * URL: situs.biomachina.org *
6 **********************************************************************
7 * See legal statement for terms of distribution *
8 *********************************************************************/
9 
10 /* widely used in most C programs */
11 #include <stdio.h>
12 #include <stdlib.h>
13 #include <string.h>
14 #include <math.h>
15 #include <float.h>
16 #include <sys/time.h>
17 #include <sys/types.h>
18 #include <time.h>
19 #include <dirent.h>
20 #include <unistd.h>
21 
22 #ifndef SITUS_H
23 #define SITUS_H
24 
25 /* used in colores, collage, eul2pdb, pdbsymm, lib_vio, and lib_eul: */
26 #define PI 3.14159265358979323846
27 
28 /* used in colores, collage, eul2pdb, and lib_eul: */
29 #define ROT_CONV (PI/180.0)
30 
31 #define SWAPPING(_a,_b,_type) \
32 {\
33  _type _tmp;\
34  \
35  _tmp = (_a);\
36  (_a) = (_b);\
37  (_b) = _tmp;\
38 }
39 
40 /* PDB structure. Widely used in Situs C programs.
41  * Note: members of this structure are NOT in the same order as in the
42  * ASCII PDB files. This saves 4 bytes per structure. */
43 typedef struct { /* 72-byte struct */
44  int serial; /* bytes 0 - 3 */
45  int seq; /* 4 - 7 */
46  float x; /* 8 - 11 */
47  float y; /* 12 - 15 */
48  float z; /* 16 - 19 */
49  float occupancy; /* 20 - 23 */
50  float beta; /* 24 - 27 */
51  int footnote; /* 28 - 31 */
52  float weight; /* 32 - 35 */
53  char recd[7]; /* 36 - 42 */
54  char type[3]; /* 43 - 45 */
55  char loc[3]; /* 46 - 48 */
56  char alt[2]; /* 49 - 50 */
57  char res[5]; /* 51 - 55 */
58  char chain[2]; /* 56 - 57 */
59  char icode[2]; /* 58 - 59 */
60  char segid[5]; /* 60 - 64 */
61  char element[3]; /* 65 - 67 */
62  char charge[3]; /* 68 - 70;*/
63  char padding; /* 71 */
64 } PDB;
65 
66 #endif
float y
Definition: situs.h:47
float z
Definition: situs.h:48
float weight
Definition: situs.h:52
int footnote
Definition: situs.h:51
Definition: situs.h:43
int seq
Definition: situs.h:45
viol type
float occupancy
Definition: situs.h:49
float x
Definition: situs.h:46
char padding
Definition: situs.h:63
int serial
Definition: situs.h:44
float beta
Definition: situs.h:50