Common/vtkSystemIncludes.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00046 #ifndef __vtkSystemIncludes_h
00047 #define __vtkSystemIncludes_h
00048
00049
00050 #define __VTK_SYSTEM_INCLUDES__INSIDE
00051 #include "vtkWin32Header.h"
00052 #undef __VTK_SYSTEM_INCLUDES__INSIDE
00053
00054 #ifndef VTK_NO_STD_NAMESPACE
00055 # define vtkstd std
00056 #else
00057 # define vtkstd
00058 #endif
00059
00060
00061
00062
00063
00064 #if defined(VTK_STREAMS_FWD_ONLY)
00065 # include "vtkIOStreamFwd.h"
00066 #else
00067 # include "vtkIOStream.h"
00068 #endif
00069
00070
00071
00072
00073 #define vtkFloatingPointType vtkFloatingPointType
00074 typedef float vtkFloatingPointType;
00075
00076 #define __VTK_SYSTEM_INCLUDES__INSIDE
00077 #include "vtkIdType.h"
00078 #include "vtkOStreamWrapper.h"
00079 #include "vtkOStrStreamWrapper.h"
00080 #undef __VTK_SYSTEM_INCLUDES__INSIDE
00081
00082
00083 #include <stdio.h>
00084 #include <stdlib.h>
00085 #include <string.h>
00086
00087
00088 #define VTK_LARGE_FLOAT 1.0e+38F
00089 #ifdef VTK_USE_64BIT_IDS
00090 # ifdef _WIN32
00091 # define VTK_LARGE_ID 9223372036854775807i64 // 2^63 - 1
00092 # else
00093 # define VTK_LARGE_ID 9223372036854775807LL // 2^63 - 1
00094 # endif
00095 #else
00096 # define VTK_LARGE_ID 2147483647 // 2^31 - 1
00097 #endif
00098
00099 #define VTK_LARGE_INTEGER 2147483647 // 2^31 - 1
00100
00101
00102 #define VTK_VOID 0
00103 #define VTK_BIT 1
00104 #define VTK_CHAR 2
00105 #define VTK_UNSIGNED_CHAR 3
00106 #define VTK_SHORT 4
00107 #define VTK_UNSIGNED_SHORT 5
00108 #define VTK_INT 6
00109 #define VTK_UNSIGNED_INT 7
00110 #define VTK_LONG 8
00111 #define VTK_UNSIGNED_LONG 9
00112 #define VTK_FLOAT 10
00113 #define VTK_DOUBLE 11
00114 #define VTK_ID_TYPE 12
00115
00116
00117
00118 #define VTK_STRING 13
00119 #define VTK_OPAQUE 14
00120
00121
00122 #define VTK_BIT_MIN 0
00123 #define VTK_BIT_MAX 1
00124 #define VTK_CHAR_MIN -128
00125 #define VTK_CHAR_MAX 127
00126 #define VTK_UNSIGNED_CHAR_MIN 0
00127 #define VTK_UNSIGNED_CHAR_MAX 255
00128 #define VTK_SHORT_MIN -32768
00129 #define VTK_SHORT_MAX 32767
00130 #define VTK_UNSIGNED_SHORT_MIN 0
00131 #define VTK_UNSIGNED_SHORT_MAX 65535
00132 #define VTK_INT_MIN (-VTK_LARGE_INTEGER-1)
00133 #define VTK_INT_MAX VTK_LARGE_INTEGER
00134 #define VTK_UNSIGNED_INT_MIN 0
00135 #define VTK_UNSIGNED_INT_MAX 4294967295UL
00136 #define VTK_LONG_MIN (-VTK_LARGE_INTEGER-1)
00137 #define VTK_LONG_MAX VTK_LARGE_INTEGER
00138 #define VTK_UNSIGNED_LONG_MIN 0
00139 #define VTK_UNSIGNED_LONG_MAX 4294967295UL
00140 #define VTK_FLOAT_MIN -VTK_LARGE_FLOAT
00141 #define VTK_FLOAT_MAX VTK_LARGE_FLOAT
00142 #define VTK_DOUBLE_MIN -1.0e+99L
00143 #define VTK_DOUBLE_MAX 1.0e+99L
00144
00145
00146 #define VTK_POLY_DATA 0
00147 #define VTK_STRUCTURED_POINTS 1
00148 #define VTK_STRUCTURED_GRID 2
00149 #define VTK_RECTILINEAR_GRID 3
00150 #define VTK_UNSTRUCTURED_GRID 4
00151 #define VTK_PIECEWISE_FUNCTION 5
00152 #define VTK_IMAGE_DATA 6
00153 #define VTK_DATA_OBJECT 7
00154 #define VTK_DATA_SET 8
00155 #define VTK_POINT_SET 9
00156
00157
00158 #define VTK_OK 1
00159 #define VTK_ERROR 2
00160
00161
00162 #define VTK_ARIAL 0
00163 #define VTK_COURIER 1
00164 #define VTK_TIMES 2
00165
00166 #define VTK_TEXT_LEFT 0
00167 #define VTK_TEXT_CENTERED 1
00168 #define VTK_TEXT_RIGHT 2
00169
00170 #define VTK_TEXT_BOTTOM 0
00171 #define VTK_TEXT_TOP 2
00172
00173 #define VTK_TEXT_GLOBAL_ANTIALIASING_SOME 0
00174 #define VTK_TEXT_GLOBAL_ANTIALIASING_NONE 1
00175 #define VTK_TEXT_GLOBAL_ANTIALIASING_ALL 2
00176
00177 #define VTK_LUMINANCE 1
00178 #define VTK_LUMINANCE_ALPHA 2
00179 #define VTK_RGB 3
00180 #define VTK_RGBA 4
00181
00182 #define VTK_COLOR_MODE_DEFAULT 0
00183 #define VTK_COLOR_MODE_MAP_SCALARS 1
00184
00185
00186 #define VTK_NEAREST_INTERPOLATION 0
00187 #define VTK_LINEAR_INTERPOLATION 1
00188
00189
00190 #define VTK_MAX_VRCOMP 4
00191
00192
00193
00194
00195 #ifdef VTK_USE_SPROC
00196 #define VTK_MAX_THREADS 32
00197 #endif
00198
00199 #ifdef VTK_USE_PTHREADS
00200 #define VTK_MAX_THREADS 32
00201 #endif
00202
00203 #ifdef VTK_USE_WIN32_THREADS
00204 #define VTK_MAX_THREADS 8
00205 #endif
00206
00207 #ifndef VTK_USE_WIN32_THREADS
00208 #ifndef VTK_USE_SPROC
00209 #ifndef VTK_USE_PTHREADS
00210 #define VTK_MAX_THREADS 1
00211 #endif
00212 #endif
00213 #endif
00214
00215
00216
00217
00218
00219 #ifdef VTK_USE_PTHREADS
00220 #define VTK_THREAD_RETURN_VALUE NULL
00221 #define VTK_THREAD_RETURN_TYPE void *
00222 #endif
00223
00224 #ifdef VTK_USE_WIN32_THREADS
00225 #define VTK_THREAD_RETURN_VALUE 0
00226 #define VTK_THREAD_RETURN_TYPE DWORD __stdcall
00227 #endif
00228
00229 #if !defined(VTK_USE_PTHREADS) && !defined(VTK_USE_WIN32_THREADS)
00230 #define VTK_THREAD_RETURN_VALUE
00231 #define VTK_THREAD_RETURN_TYPE void
00232 #endif
00233
00234 #endif