r384: Added first vesion of EZPlotDialog
[ctsim.git] / include / ct.h
1 /*****************************************************************************
2 ** FILE IDENTIFICATION
3 **
4 **   Name:          ct.h
5 **   Purpose:       Master header file for CTSim
6 **   Programmer:    Kevin Rosenberg
7 **   Date Started:  Aug 1984
8 **
9 **  This is part of the CTSim program
10 **  Copyright (C) 1983-2000 Kevin Rosenberg
11 **
12 **  $Id: ct.h,v 1.52 2001/01/12 16:41:56 kevin Exp $
13 **
14 **  This program is free software; you can redistribute it and/or modify
15 **  it under the terms of the GNU General Public License (version 2) as
16 **  published by the Free Software Foundation.
17 **
18 **  This program is distributed in the hope that it will be useful,
19 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
20 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 **  GNU General Public License for more details.
22 **
23 **  You should have received a copy of the GNU General Public License
24 **  along with this program; if not, write to the Free Software
25 **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26 ******************************************************************************/
27
28 #ifndef CT_H
29 #define CT_H
30
31 #define NO_MAIN 1    // filter out all old main blocks
32
33 #ifdef MSVC
34 #include "msvc_compat.h"
35 #endif
36
37 #ifdef HAVE_CONFIG_H
38   #include <config.h>
39 #endif
40
41 #define HAVE_ANSI_CPP 1
42 #ifdef HAVE_ANSI_CPP
43 #include <complex>
44 #include <cmath>
45 #include <cstdio>
46 #include <cctype>
47 #include <cstring>
48 #include <cstddef>
49 #include <cstdarg>
50 #include <cstdlib>
51
52 #if defined(MSVC) || HAVE_SSTREAM
53 #include <sstream>
54 #else
55 #include <sstream_subst>
56 #endif
57
58 #include <fstream>
59 #include <iostream>
60 #include <string>
61 #include <iterator>
62 #include <algorithm>
63 #include <exception>
64 #include <stdexcept>
65 #include <memory>
66
67 #else
68
69 #ifdef HAVE_CTYPE_H
70 #include <ctype.h>
71 #endif
72 #ifdef HAVE_MATH_H
73 #include <math.h>
74 #endif
75 #ifdef HAVE_STDIO_H
76 #include <stdio.h>
77 #endif
78 #ifdef HAVE_STRING_H
79 #include <string.h>
80 #endif
81 #ifdef HAVE_STDDEF_H
82 #include <stddef.h>
83 #endif
84 #ifdef HAVE_STDLIB_H
85 #include <stdlib.h>
86 #endif
87 #ifdef HAVE_STDARG_H
88 #include <stdarg.h>
89 #endif
90
91 #endif
92
93
94 #ifdef HAVE_DMALLOC
95 #include <dmalloc.h>
96 #endif
97 #ifdef HAVE_UNISTD_H
98 #include <unistd.h>
99 #endif
100 #ifdef HAVE_PNG
101   #include "png.h"
102 #endif
103 #ifdef HAVE_G2_H
104 extern "C" { 
105 #include "g2.h" 
106 }
107 #ifdef HAVE_X11
108 extern "C" {
109 #include "g2_X11.h"
110 }
111 #endif
112 #endif
113
114
115 #ifdef  HAVE_SYS_TYPES_H
116 #include <sys/types.h>
117 #endif
118 #ifdef HAVE_SYS_STAT_H
119 #include <sys/stat.h>
120 #endif
121 #ifdef HAVE_SYS_FCNTL_H
122 #include <sys/fcntl.h>
123 #endif
124 #ifdef HAVE_FCNTL_H
125 #include <fcntl.h>
126 #endif
127 #if defined(HAVE_GETOPT_H) || defined(HAVE_GETOPT_LONG)
128 #include <getopt.h>
129 #endif
130 #ifdef HAVE_SETJMP_H
131 #include <setjmp.h>
132 #endif
133 #ifdef HAVE_SYS_PARAM_H
134 #include <sys/param.h>          /* for htonl on FreeBSD */
135 #endif
136 #ifdef HAVE_NETINET_IN_H
137 #include <netinet/in.h>         /* for htonl on Linux/Solaris */
138 #endif
139 #ifdef HAVE_INTTYPES_H
140 #include <inttypes.h>           /* for htonl on Solaris */
141 #endif
142 #ifdef HAVE_STDINT_H
143 #include <stdint.h>             /* Standard ints on Linux */
144 #endif
145 #ifdef HAVE_ASSERT_H
146 #include <assert.h>
147 #endif
148
149
150 #ifdef HAVE_FFTW
151 #include <rfftw.h>
152 #include <fftw.h>
153 #define HAVE_FFT 1
154 #endif
155
156 #ifdef HAVE_MPI
157 #include "mpi++.h"
158 #include "mpiworld.h"
159 #endif
160
161 #include "ctsupport.h"
162 #include "ctglobals.h"
163 #include "fnetorderstream.h"
164
165 #ifdef HAVE_SGP
166   #include "ezplot.h"
167   #include "sgp.h"
168 #endif
169
170 #include "array2d.h"
171 #include "array2dfile.h"
172 #include "fnetorderstream.h"
173 #include "imagefile.h"
174 #include "phantom.h"
175 #include "scanner.h"
176 #include "backprojectors.h"
177 #include "filter.h"
178 #include "fourier.h"
179 #include "procsignal.h"
180 #include "projections.h"
181 #include "reconstruct.h"
182 #include "plotfile.h"
183 #include "trace.h"
184
185
186 #endif
187