00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
#ifndef VTK_EXTENSIONS_CONFIGURE_H_
00017
# define VTK_EXTENSIONS_CONFIGURE_H_
00018
00030
00031
# if defined(__cplusplus)
00032
# include "vtkConfigure.h"
00035
# if (VTK_MAJOR_VERSION==3)
00036
# if !defined(VTK_3_0_0)
00037
# define VTK_3_0_0
00038
# endif
00039
# if (VTK_MINOR_VERSION>=1) && !defined(VTK_3_1_0)
00040
# define VTK_3_1_0
00041
# endif
00042
# if (VTK_MINOR_VERSION>=1) && !defined(VTK_3_2_0)
00043
# define VTK_3_2_0
00044
# endif
00045
# elif (VTK_MAJOR_VERSION==4)
00046
# if !defined(VTK_4_0_0)
00047
# define VTK_4_0_0
00048
# endif
00049
# if (VTK_MINOR_VERSION>=1) && !defined(VTK_4_1_0)
00050
# define VTK_4_1_0
00051
# endif
00052
# if (VTK_MINOR_VERSION>=2) && !defined(VTK_4_2_0)
00053
# define VTK_4_2_0
00054
# endif
00055
# if (VTK_MINOR_VERSION>=3) && !defined(VTK_4_3_0)
00056
# define VTK_4_3_0
00057
# endif
00058
# if (VTK_MINOR_VERSION>=4) && !defined(VTK_4_4_0)
00059
# define VTK_4_4_0
00060
# endif
00061
# if (VTK_MINOR_VERSION>=5) && !defined(VTK_4_5_0)
00062
# define VTK_4_5_0
00063
# endif
00064
# else
00065
# warning vtkExtensions has not been tested to build with this VTK version.
00066
# endif
00067
00068
# endif
00069
00072 # define VTK_EXTENSIONS_MAJOR_VERSION 0
00073 # define VTK_EXTENSIONS_MINOR_VERSION 2
00074 # define VTK_EXTENSIONS_MICRO_VERSION 0
00075 # define VTK_EXTENSIONS_PATCH_VERSION 0
00076 # define VTK_EXTENSIONS_VERSION "0.2.0"
00077 # define VTK_EXTENSIONS_RPM_VERSION "0.2.0-0"
00078
00082 #define VTK_EXTENSIONS_BUILD_DEBUG
00083
# if defined(_DEBUG) || defined(VTK_EXTENSIONS_BUILD_DEBUG)
00084 # define VTK_EXTENSIONS_DEBUG
00085
# elif defined(NDEBUG)
00086
# undef VTK_EXTENSIONS_DEBUG
00087
# endif
00088
00092 #define VTK_EXTENSIONS_BUILD_SHARED_LIBS
00093
# ifndef VTK_EXTENSIONS_BUILD_SHARED_LIBS
00094
# define VTK_EXTENSIONS_STATIC
00095
# endif
00096
00097
# if defined(_MSC_VER) && !defined(VTK_EXTENSIONS_STATIC)
00098
# pragma warning ( disable : 4275 )
00099
# endif
00100
00104
00105
# if !defined(__cplusplus) || defined(VTK_NO_STD_NAMESPACE)
00106
# undef VTK_EXTENSIONS_BUILD_CPP_NAMESPACES
00107
# endif
00108
00109
# if defined(VTK_EXTENSIONS_BUILD_CPP_NAMESPACES)
00110
# define VTK_EXTENSIONS_NAMESPACE_BEGIN namespace VTK_EXTENSIONS_NS {
00111
# define VTK_EXTENSIONS_NAMESPACE_END }
00112
# define VTK_EXTENSIONS_NAMESPACE_USE using namespace VTK_EXTENSIONS_NS;
00113
# define VTK_EXTENSIONS_NAMESPACE_QUALIFIER VTK_EXTENSIONS_NS::
00114
# define VTK_EXTENSIONS_NAMESPACE_USING(_arg) \
00115
using VTK_EXTENSIONS_NAMESPACE_QUALIFIER _arg
00116
00117
namespace VTK_EXTENSIONS_NS { }
00118
namespace VtkExtensions = VTK_EXTENSIONS_NS;
00119
# else
00120 # define VTK_EXTENSIONS_NAMESPACE_BEGIN
00121 # define VTK_EXTENSIONS_NAMESPACE_END
00122 # define VTK_EXTENSIONS_NAMESPACE_USE
00123 # define VTK_EXTENSIONS_NAMESPACE_QUALIFIER
00124 # define VTK_EXTENSIONS_NAMESPACE_USING(_arg) ((void *) 0)
00125
# endif
00126
00129
00130
00133
00134
00135 #define UNIX 1
00136
# if defined(WIN32)
00137
# define VTK_EXTENSIONS_LINEBREAK "\015\012"
00138
# define VTK_EXTENSIONS_LINEBREAK_LEN 2
00139
# define VTK_EXTENSIONS_FILE_PATH_SEPARATOR "\\"
00140
# define VTK_EXTENSIONS_FILE_ILLEGAL_CHARACTERS "/:*?\"<>|"
00141
# elif defined(APPLE)
00142
# define VTK_EXTENSIONS_LINEBREAK "\015"
00143
# define VTK_EXTENSIONS_LINEBREAK_LEN 1
00144
# define VTK_EXTENSIONS_FILE_PATH_SEPARATOR ":"
00145
# define VTK_EXTENSIONS_FILE_ILLEGAL_CHARACTERS ""
00146
# elif defined(UNIX)
00147 # define VTK_EXTENSIONS_LINEBREAK "\012"
00148 # define VTK_EXTENSIONS_LINEBREAK_LEN 1
00149 # define VTK_EXTENSIONS_FILE_PATH_SEPARATOR "/"
00150 # define VTK_EXTENSIONS_FILE_ILLEGAL_CHARACTERS ""
00151
# endif
00152 # define VTK_EXTENSIONS_FF '\014'
00153 # define VTK_EXTENSIONS_TAB '\011'
00154 # define VTK_EXTENSIONS_CRSTR "\015"
00155 # define VTK_EXTENSIONS_LFSTR "\012"
00156 # define VTK_EXTENSIONS_CRLF "\015\012"
00157
00161
# ifdef VTK_WORDS_BIGENDIAN
00162
# define VTK_EXTENSIONS_BYTE_ORDER MSBFirst
00163
# else
00164 # define VTK_EXTENSIONS_BYTE_ORDER LSBFirst
00165
# endif
00166
00170 #define CMAKE_SIZEOF_CHAR 1
00171 #define CMAKE_SIZEOF_SHORT 2
00172 #define CMAKE_SIZEOF_INT 4
00173 #define CMAKE_SIZEOF_LONG 4
00174 #define CMAKE_SIZEOF_LONG_LONG 8
00175 #define CMAKE_SIZEOF_FLOAT 4
00176 #define CMAKE_SIZEOF_DOUBLE 8
00177 #define CMAKE_SIZEOF_LONG_DOUBLE 16
00178 #define CMAKE_SIZEOF_POINTER 4
00179
# if !(defined(VTK_SIZEOF_CHAR)) && defined(CMAKE_SIZEOF_CHAR)
00180 # define VTK_SIZEOF_CHAR CMAKE_SIZEOF_CHAR
00181
# endif
00182
# if !(defined(VTK_SIZEOF_SHORT)) && defined(CMAKE_SIZEOF_SHORT)
00183 # define VTK_SIZEOF_SHORT CMAKE_SIZEOF_SHORT
00184
# endif
00185
# if !(defined(VTK_SIZEOF_INT)) && defined(CMAKE_SIZEOF_INT)
00186 # define VTK_SIZEOF_INT CMAKE_SIZEOF_INT
00187
# endif
00188
# if !(defined(VTK_SIZEOF_LONG)) && defined(CMAKE_SIZEOF_LONG)
00189 # define VTK_SIZEOF_LONG CMAKE_SIZEOF_LONG
00190
# endif
00191
# if !(defined(VTK_SIZEOF_LONG_LONG)) && defined(CMAKE_SIZEOF_LONG_LONG)
00192 # define VTK_SIZEOF_LONG_LONG CMAKE_SIZEOF_LONG_LONG
00193
# endif
00194
# if !(defined(VTK_SIZEOF_FLOAT)) && defined(CMAKE_SIZEOF_FLOAT)
00195 # define VTK_SIZEOF_FLOAT CMAKE_SIZEOF_FLOAT
00196
# endif
00197
# if !(defined(VTK_SIZEOF_DOUBLE)) && defined(CMAKE_SIZEOF_DOUBLE)
00198 # define VTK_SIZEOF_DOUBLE CMAKE_SIZEOF_DOUBLE
00199
# endif
00200
# if !(defined(VTK_SIZEOF_LONG_DOUBLE)) && defined(CMAKE_SIZEOF_LONG_DOUBLE)
00201 # define VTK_SIZEOF_LONG_DOUBLE CMAKE_SIZEOF_LONG_DOUBLE
00202
# endif
00203
# if !(defined(VTK_SIZEOF_POINTER)) && defined(CMAKE_SIZEOF_POINTER)
00204 # define VTK_SIZEOF_POINTER CMAKE_SIZEOF_POINTER
00205
# endif
00206
00208
# if VTK_SIZEOF_LONG == 4
00209 # define VTK_EXTENSIONS_BITS_PER_LONG 32
00210 # define VTK_EXTENSIONS_BITS_PER_LONG_LOG2 5
00211
# elif VTK_SIZEOF_LONG == 8
00212
# define VTK_EXTENSIONS_BITS_PER_LONG 64
00213
# define VTK_EXTENSIONS_BITS_PER_LONG_LOG2 6
00214
# else
00215
# error "Unexpected size of long integer type: " #VTK_SIZEOF_LONG
00216
# endif
00217
00220
# ifndef CMAKE_HAVE_UNISTD_H
00221
#define CMAKE_HAVE_UNISTD_H
00222
# endif
00223
# ifndef CMAKE_HAVE_STDLIB_H
00224
#define CMAKE_HAVE_STDLIB_H
00225
# endif
00226
# ifndef CMAKE_HAVE_STROPTS_H
00227
#define CMAKE_HAVE_STROPTS_H
00228
# endif
00229
# ifndef CMAKE_HAVE_NETDB_H
00230
#define CMAKE_HAVE_NETDB_H
00231
# endif
00232
# ifndef CMAKE_HAVE_SYS_IOCTL_H
00233
#define CMAKE_HAVE_SYS_IOCTL_H
00234
# endif
00235
# ifndef CMAKE_HAVE_SYS_SOCKET_H
00236
#define CMAKE_HAVE_SYS_SOCKET_H
00237
# endif
00238
# ifndef CMAKE_HAVE_SYS_SOCKIO_H
00239
#define CMAKE_HAVE_SYS_SOCKIO_H
00240
# endif
00241
# ifndef CMAKE_HAVE_LINUX_SOCKIOS_H
00242
00243
# endif
00244
# ifndef CMAKE_HAVE_NET_IF_H
00245
00246
# endif
00247
# ifndef CMAKE_HAVE_NET_IF_ARP_H
00248
00249
# endif
00250
# ifndef CMAKE_HAVE_NETINET_IN_H
00251
#define CMAKE_HAVE_NETINET_IN_H
00252
# endif
00253
# ifndef CMAKE_HAVE_NETINET_IF_ETHER_H
00254
00255
# endif
00256
# ifndef CMAKE_HAVE_NETINET_ETHER_H
00257
00258
# endif
00259
# ifndef CMAKE_HAVE_FCNTL_H
00260
#define CMAKE_HAVE_FCNTL_H
00261
# endif
00262
# ifndef CMAKE_HAVE_SYS_STAT_H
00263
#define CMAKE_HAVE_SYS_STAT_H
00264
# endif
00265
# ifndef CMAKE_HAVE_SYS_FILE_H
00266
#define CMAKE_HAVE_SYS_FILE_H
00267
# endif
00268
# ifndef CMAKE_HAVE_SYS_CONF_H
00269
#define CMAKE_HAVE_SYS_CONF_H
00270
# endif
00271
# ifndef CMAKE_HAVE_SYS_TIME_H
00272
#define CMAKE_HAVE_SYS_TIME_H
00273
# endif
00274
# ifndef CMAKE_HAVE_SYS_SYSCALL_H
00275
#define CMAKE_HAVE_SYS_SYSCALL_H
00276
# endif
00277
# ifndef CMAKE_HAVE_EXCEPTION_CXX
00278
#define CMAKE_HAVE_EXCEPTION_CXX
00279
# endif
00280
# ifndef CMAKE_HAVE_STDEXCEPT_CXX
00281
#define CMAKE_HAVE_STDEXCEPT_CXX
00282
# endif
00283
00287
# ifndef CMAKE_HAVE_GETHOSTID
00288
#define CMAKE_HAVE_GETHOSTID
00289
# endif
00290
# ifndef CMAKE_HAVE_ETHER_ATON
00291
00292
# endif
00293
# ifndef CMAKE_HAVE___SET_ERRNO
00294
#define CMAKE_HAVE___SET_ERRNO
00295
# endif
00296
# ifndef CMAKE_HAVE_MEMMOVE
00297
#define CMAKE_HAVE_MEMMOVE
00298
# endif
00299
00303
# ifndef CMAKE_HAVE_SA_LEN
00304
00305
# endif
00306
00310
# ifndef CMAKE_HAVE_EXCEPTION
00311
#define CMAKE_HAVE_EXCEPTION
00312
# endif
00313
00314
# ifndef CMAKE_HAVE_RUNTIME_ERROR
00315
#define CMAKE_HAVE_RUNTIME_ERROR
00316
# endif
00317
00318
# ifndef CMAKE_HAVE_OVERFLOW_ERROR
00319
#define CMAKE_HAVE_OVERFLOW_ERROR
00320
# endif
00321
00322
# ifndef CMAKE_HAVE_BAD_ALLOC
00323
#define CMAKE_HAVE_BAD_ALLOC
00324
# endif
00325
00332 # define VTK_EXTENSIONS_BEGIN_MACRO do {
00333 # define VTK_EXTENSIONS_END_MACRO } while (0)
00334
00338
# ifdef __cplusplus
00339
# define VTK_EXTENSIONS_BEGIN_EXTERN_C extern "C" {
00340
# define VTK_EXTENSIONS_END_EXTERN_C }
00341
# else
00342 # define VTK_EXTENSIONS_BEGIN_EXTERN_C
00343 # define VTK_EXTENSIONS_END_EXTERN_C
00344
# endif
00345
00349 # define VTK_EXTENSIONS_MAX(_a,_b) \
00350
(((_a)>(_b))?(_a):(_b))
00351 # define VTK_EXTENSIONS_MIN(_a,_b) \
00352
(((_a)<(_b))?(_a):(_b))
00353 # define VTK_EXTENSIONS_CLAMP(_val,_min,_max) \
00354
((_val)<(_min)?(_min):((_val)>(_max)?(_max):(_val)))
00355 # define VTK_EXTENSIONS_ABS(_x) \
00356
((_x)<0?-(_x):(_x))
00357 # define VTK_EXTENSIONS_ROUNDUP(_x,_y) \
00358
((((_x)+((_y)-1))/(_y))*(_y))
00359
00361
#endif
00362
00363
00364
00365