r75: *** empty log message ***
[ctsim.git] / include / ct.h
1 /*****************************************************************************
2 **  This is part of the CTSim program
3 **  Copyright (C) 1983-2000 Kevin Rosenberg
4 **
5 **  $Id: ct.h,v 1.9 2000/06/07 03:49:54 kevin Exp $
6 **  $Log: ct.h,v $
7 **  Revision 1.9  2000/06/07 03:49:54  kevin
8 **  *** empty log message ***
9 **
10 **  Revision 1.8  2000/06/07 02:30:27  kevin
11 **  Added C++ image files
12 **
13 **  Revision 1.7  2000/06/07 00:59:38  kevin
14 **  added imagefiles
15 **
16 **  Revision 1.6  2000/05/24 22:48:17  kevin
17 **  First functional version of SDF library for X-window
18 **
19 **  Revision 1.5  2000/05/11 01:04:44  kevin
20 **  Added Microsoft Windows compatibility
21 **
22 **  Revision 1.4  2000/05/03 19:51:41  kevin
23 **  function renaming for phantoms and phantom elements
24 **
25 **  Revision 1.3  2000/04/30 19:17:35  kevin
26 **  Set up include files for conditional SGP
27 **
28 **  Revision 1.2  2000/04/28 14:14:16  kevin
29 **  *** empty log message ***
30 **
31 **
32 **  This program is free software; you can redistribute it and/or modify
33 **  it under the terms of the GNU General Public License (version 2) as
34 **  published by the Free Software Foundation.
35 **
36 **  This program is distributed in the hope that it will be useful,
37 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
38 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
39 **  GNU General Public License for more details.
40 **
41 **  You should have received a copy of the GNU General Public License
42 **  along with this program; if not, write to the Free Software
43 **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
44 ******************************************************************************/
45 /*---------------------------------------------------------------------*/
46 /*                  HEADER FILE FOR TOMOGRAPY SYSTEM                   */
47 /*---------------------------------------------------------------------*/
48
49 #ifndef CT_H
50 #define CT_H
51
52 #ifdef _WIN32
53   typedef long off_t;
54   #define HAVE_STRING_H 1
55   #include <fcntl.h>
56   #define snprintf _snprintf
57   #define vsnprintf _vsnprintf
58   #define strcasecmp stricmp
59   #define strncasecmp strnicmp
60 #endif
61
62 #ifdef HAVE_CONFIG_H
63 #include <config.h>
64 #endif
65 #ifdef HAVE_PNG
66 #include "png.h"
67 #endif
68 #ifdef HAVE_G2_H
69 #include "g2.h"
70 #ifdef HAVE_X11
71 #include "g2_X11.h"
72 #endif
73 #endif
74 #ifdef HAVE_STDIO_H
75 #include <stdio.h>
76 #endif
77 #ifdef HAVE_STRING_H
78 #include <string.h>
79 #endif
80 #ifdef HAVE_STDDEF_H
81 #include <stddef.h>
82 #endif
83 #ifdef HAVE_STDLIB_H
84 #include <stdlib.h>
85 #endif
86 #ifdef HAVE_STDARG_H
87 #include <stdarg.h>
88 #endif
89 #ifdef  HAVE_SYS_TYPES_H
90 #include <sys/types.h>
91 #endif
92 #ifdef HAVE_SYS_STAT_H
93 #include <sys/stat.h>
94 #endif
95 #ifdef HAVE_CTYPE_H
96 #include <ctype.h>
97 #endif
98 #ifdef HAVE_MATH_H
99 #include <math.h>
100 #endif
101 #ifdef HAVE_SYS_FCNTL_H
102 #include <sys/fcntl.h>
103 #endif
104 #ifdef HAVE_FCNTL_H
105 #include <fcntl.h>
106 #endif
107 #if defined(HAVE_GETOPT_H) || defined(HAVE_GETOPT_LONG)
108 #include <getopt.h>
109 #endif
110 #ifdef HAVE_UNISTD_H
111 #include <unistd.h>
112 #endif
113 #ifdef HAVE_SETJMP_H
114 #include <setjmp.h>
115 #endif
116 #ifdef HAVE_SYS_PARAM_H
117 #include <sys/param.h>          /* for htonl on FreeBSD */
118 #endif
119 #ifdef HAVE_NETINET_IN_H
120 #include <netinet/in.h>         /* for htonl on Linux/Solaris */
121 #endif
122 #ifdef HAVE_INTTYPES_H
123 #include <inttypes.h>           /* for htonl on Solaris */
124 #endif
125 #ifdef HAVE_STDINT_H
126 #include <stdint.h>             /* Standard ints on Linux */
127 #endif
128
129 #ifdef MPI_CT
130 #include "mpi.h"
131 #endif
132
133 #include "kstddef.h"
134 #include "kmath.h"
135 #include "sdf.h"
136 #include "keyboard.h"
137 #include "cio.h"
138
139 #ifdef HAVE_SGP
140   #include "ezplot.h"
141   #include "sgp.h"
142 #endif
143
144 #ifdef __cplusplus
145   #include <iostream>
146   #include <string>
147
148   using namespace std;
149
150   #include "array2d.h"
151   #include "imagefile.h"
152 #endif
153
154 #include "ir.h"
155
156 #endif
157