18 #include "vtkConfigure.h" 19 #include "vtk_kwiml.h" 21 #define VTK_SIZEOF_CHAR KWIML_ABI_SIZEOF_CHAR 22 #define VTK_SIZEOF_SHORT KWIML_ABI_SIZEOF_SHORT 23 #define VTK_SIZEOF_INT KWIML_ABI_SIZEOF_INT 24 #define VTK_SIZEOF_LONG KWIML_ABI_SIZEOF_LONG 25 #define VTK_SIZEOF_LONG_LONG KWIML_ABI_SIZEOF_LONG_LONG 26 #define VTK_SIZEOF_FLOAT KWIML_ABI_SIZEOF_FLOAT 27 #define VTK_SIZEOF_DOUBLE KWIML_ABI_SIZEOF_DOUBLE 28 #define VTK_SIZEOF_VOID_P KWIML_ABI_SIZEOF_DATA_PTR 31 #define VTK_TYPE_USE_LONG_LONG 32 #if VTK_SIZEOF_LONG_LONG == 0 33 # error "No 'long long' type available." 37 #if defined(KWIML_ABI_CHAR_IS_SIGNED) 38 # define VTK_TYPE_CHAR_IS_SIGNED 1 40 # define VTK_TYPE_CHAR_IS_SIGNED 0 50 #define VTK_SIGNED_CHAR 15 51 #define VTK_UNSIGNED_CHAR 3 53 #define VTK_UNSIGNED_SHORT 5 55 #define VTK_UNSIGNED_INT 7 57 #define VTK_UNSIGNED_LONG 9 60 #define VTK_ID_TYPE 12 67 #define VTK_LONG_LONG 16 68 #define VTK_UNSIGNED_LONG_LONG 17 70 #if !defined(VTK_LEGACY_REMOVE) 73 #define VTK___INT64 18 76 #define VTK_UNSIGNED___INT64 19 81 #define VTK_VARIANT 20 85 #define VTK_UNICODE_STRING 22 91 #define VTK_POLY_DATA 0 92 #define VTK_STRUCTURED_POINTS 1 93 #define VTK_STRUCTURED_GRID 2 94 #define VTK_RECTILINEAR_GRID 3 95 #define VTK_UNSTRUCTURED_GRID 4 96 #define VTK_PIECEWISE_FUNCTION 5 97 #define VTK_IMAGE_DATA 6 98 #define VTK_DATA_OBJECT 7 99 #define VTK_DATA_SET 8 100 #define VTK_POINT_SET 9 101 #define VTK_UNIFORM_GRID 10 102 #define VTK_COMPOSITE_DATA_SET 11 103 #define VTK_MULTIGROUP_DATA_SET 12 104 #define VTK_MULTIBLOCK_DATA_SET 13 105 #define VTK_HIERARCHICAL_DATA_SET 14 106 #define VTK_HIERARCHICAL_BOX_DATA_SET 15 107 #define VTK_GENERIC_DATA_SET 16 108 #define VTK_HYPER_OCTREE 17 109 #define VTK_TEMPORAL_DATA_SET 18 113 #define VTK_SELECTION 22 114 #define VTK_DIRECTED_GRAPH 23 115 #define VTK_UNDIRECTED_GRAPH 24 116 #define VTK_MULTIPIECE_DATA_SET 25 117 #define VTK_DIRECTED_ACYCLIC_GRAPH 26 118 #define VTK_ARRAY_DATA 27 119 #define VTK_REEB_GRAPH 28 120 #define VTK_UNIFORM_GRID_AMR 29 121 #define VTK_NON_OVERLAPPING_AMR 30 122 #define VTK_OVERLAPPING_AMR 31 123 #define VTK_HYPER_TREE_GRID 32 124 #define VTK_MOLECULE 33 125 #define VTK_PISTON_DATA_OBJECT 34 127 #define VTK_UNSTRUCTURED_GRID_BASE 36 128 #define VTK_PARTITIONED_DATA_SET 37 129 #define VTK_PARTITIONED_DATA_SET_COLLECTION 38 133 #if defined(__cplusplus) 134 # define VTK_TYPE_CAST(T, V) static_cast< T >(V) 136 # define VTK_TYPE_CAST(T, V) ((T)(V)) 141 #define VTK_BIT_MIN 0 142 #define VTK_BIT_MAX 1 143 #if VTK_TYPE_CHAR_IS_SIGNED 144 # define VTK_CHAR_MIN VTK_TYPE_CAST(char, 0x80) 145 # define VTK_CHAR_MAX VTK_TYPE_CAST(char, 0x7f) 147 # define VTK_CHAR_MIN VTK_TYPE_CAST(char, 0u) 148 # define VTK_CHAR_MAX VTK_TYPE_CAST(char, 0xffu) 150 #define VTK_SIGNED_CHAR_MIN VTK_TYPE_CAST(signed char, 0x80) 151 #define VTK_SIGNED_CHAR_MAX VTK_TYPE_CAST(signed char, 0x7f) 152 #define VTK_UNSIGNED_CHAR_MIN VTK_TYPE_CAST(unsigned char, 0u) 153 #define VTK_UNSIGNED_CHAR_MAX VTK_TYPE_CAST(unsigned char, 0xffu) 154 #define VTK_SHORT_MIN VTK_TYPE_CAST(short, 0x8000) 155 #define VTK_SHORT_MAX VTK_TYPE_CAST(short, 0x7fff) 156 #define VTK_UNSIGNED_SHORT_MIN VTK_TYPE_CAST(unsigned short, 0u) 157 #define VTK_UNSIGNED_SHORT_MAX VTK_TYPE_CAST(unsigned short, 0xffffu) 158 #define VTK_INT_MIN VTK_TYPE_CAST(int, ~(~0u >> 1)) 159 #define VTK_INT_MAX VTK_TYPE_CAST(int, ~0u >> 1) 160 #define VTK_UNSIGNED_INT_MIN VTK_TYPE_CAST(unsigned int, 0) 161 #define VTK_UNSIGNED_INT_MAX VTK_TYPE_CAST(unsigned int, ~0u) 162 #define VTK_LONG_MIN VTK_TYPE_CAST(long, ~(~0ul >> 1)) 163 #define VTK_LONG_MAX VTK_TYPE_CAST(long, ~0ul >> 1) 164 #define VTK_UNSIGNED_LONG_MIN VTK_TYPE_CAST(unsigned long, 0ul) 165 #define VTK_UNSIGNED_LONG_MAX VTK_TYPE_CAST(unsigned long, ~0ul) 166 #define VTK_FLOAT_MIN VTK_TYPE_CAST(float, -1.0e+38f) 167 #define VTK_FLOAT_MAX VTK_TYPE_CAST(float, 1.0e+38f) 168 #define VTK_DOUBLE_MIN VTK_TYPE_CAST(double, -1.0e+299) 169 #define VTK_DOUBLE_MAX VTK_TYPE_CAST(double, 1.0e+299) 170 #define VTK_LONG_LONG_MIN VTK_TYPE_CAST(long long, ~(~0ull >> 1)) 171 #define VTK_LONG_LONG_MAX VTK_TYPE_CAST(long long, ~0ull >> 1) 172 #define VTK_UNSIGNED_LONG_LONG_MIN VTK_TYPE_CAST(unsigned long long, 0ull) 173 #define VTK_UNSIGNED_LONG_LONG_MAX VTK_TYPE_CAST(unsigned long long, ~0ull) 180 #if VTK_SIZEOF_CHAR == 1 181 typedef unsigned char vtkTypeUInt8;
182 typedef signed char vtkTypeInt8;
183 # define VTK_TYPE_UINT8 VTK_UNSIGNED_CHAR 184 # define VTK_TYPE_UINT8_MIN VTK_UNSIGNED_CHAR_MIN 185 # define VTK_TYPE_UINT8_MAX VTK_UNSIGNED_CHAR_MAX 186 # if VTK_TYPE_CHAR_IS_SIGNED 187 # define VTK_TYPE_INT8 VTK_CHAR 188 # define VTK_TYPE_INT8_MIN VTK_CHAR_MIN 189 # define VTK_TYPE_INT8_MAX VTK_CHAR_MAX 191 # define VTK_TYPE_INT8 VTK_SIGNED_CHAR 192 # define VTK_TYPE_INT8_MIN VTK_SIGNED_CHAR_MIN 193 # define VTK_TYPE_INT8_MAX VTK_SIGNED_CHAR_MAX 196 # error "No native data type can represent an 8-bit integer." 200 #if VTK_SIZEOF_SHORT == 2 201 typedef unsigned short vtkTypeUInt16;
202 typedef signed short vtkTypeInt16;
203 # define VTK_TYPE_UINT16 VTK_UNSIGNED_SHORT 204 # define VTK_TYPE_UINT16_MIN VTK_UNSIGNED_SHORT_MIN 205 # define VTK_TYPE_UINT16_MAX VTK_UNSIGNED_SHORT_MAX 206 # define VTK_TYPE_INT16 VTK_SHORT 207 # define VTK_TYPE_INT16_MIN VTK_SHORT_MIN 208 # define VTK_TYPE_INT16_MAX VTK_SHORT_MAX 209 #elif VTK_SIZEOF_INT == 2 210 typedef unsigned int vtkTypeUInt16;
211 typedef signed int vtkTypeInt16;
212 # define VTK_TYPE_UINT16 VTK_UNSIGNED_INT 213 # define VTK_TYPE_UINT16_MIN VTK_UNSIGNED_INT_MIN 214 # define VTK_TYPE_UINT16_MAX VTK_UNSIGNED_INT_MAX 215 # define VTK_TYPE_INT16 VTK_INT 216 # define VTK_TYPE_INT16_MIN VTK_INT_MIN 217 # define VTK_TYPE_INT16_MAX VTK_INT_MAX 219 # error "No native data type can represent a 16-bit integer." 223 #if VTK_SIZEOF_INT == 4 224 typedef unsigned int vtkTypeUInt32;
225 typedef signed int vtkTypeInt32;
226 # define VTK_TYPE_UINT32 VTK_UNSIGNED_INT 227 # define VTK_TYPE_UINT32_MIN VTK_UNSIGNED_INT_MIN 228 # define VTK_TYPE_UINT32_MAX VTK_UNSIGNED_INT_MAX 229 # define VTK_TYPE_INT32 VTK_INT 230 # define VTK_TYPE_INT32_MIN VTK_INT_MIN 231 # define VTK_TYPE_INT32_MAX VTK_INT_MAX 232 #elif VTK_SIZEOF_LONG == 4 233 typedef unsigned long vtkTypeUInt32;
234 typedef signed long vtkTypeInt32;
235 # define VTK_TYPE_UINT32 VTK_UNSIGNED_LONG 236 # define VTK_TYPE_UINT32_MIN VTK_UNSIGNED_LONG_MIN 237 # define VTK_TYPE_UINT32_MAX VTK_UNSIGNED_LONG_MAX 238 # define VTK_TYPE_INT32 VTK_LONG 239 # define VTK_TYPE_INT32_MIN VTK_LONG_MIN 240 # define VTK_TYPE_INT32_MAX VTK_LONG_MAX 242 # error "No native data type can represent a 32-bit integer." 246 #if VTK_SIZEOF_LONG_LONG == 8 247 typedef unsigned long long vtkTypeUInt64;
248 typedef signed long long vtkTypeInt64;
249 # define VTK_TYPE_UINT64 VTK_UNSIGNED_LONG_LONG 250 # define VTK_TYPE_UINT64_MIN VTK_UNSIGNED_LONG_LONG_MIN 251 # define VTK_TYPE_UINT64_MAX VTK_UNSIGNED_LONG_LONG_MAX 252 # define VTK_TYPE_INT64 VTK_LONG_LONG 253 # define VTK_TYPE_INT64_MIN VTK_LONG_LONG_MIN 254 # define VTK_TYPE_INT64_MAX VTK_LONG_LONG_MAX 255 #elif VTK_SIZEOF_LONG == 8 256 typedef unsigned long vtkTypeUInt64;
257 typedef signed long vtkTypeInt64;
258 # define VTK_TYPE_UINT64 VTK_UNSIGNED_LONG 259 # define VTK_TYPE_UINT64_MIN VTK_UNSIGNED_LONG_MIN 260 # define VTK_TYPE_UINT64_MAX VTK_UNSIGNED_LONG_MAX 261 # define VTK_TYPE_INT64 VTK_LONG 262 # define VTK_TYPE_INT64_MIN VTK_LONG_MIN 263 # define VTK_TYPE_INT64_MAX VTK_LONG_MAX 265 # error "No native data type can represent a 64-bit integer." 277 #define VTK_HAS_MTIME_TYPE 283 #if defined(VTK_USE_64BIT_TIMESTAMPS) || VTK_SIZEOF_VOID_P == 8 284 # if VTK_SIZEOF_LONG == 8 286 # define VTK_MTIME_TYPE_IMPL VTK_UNSIGNED_LONG 287 # define VTK_MTIME_MIN VTK_UNSIGNED_LONG_MIN 288 # define VTK_MTIME_MAX VTK_UNSIGNED_LONG_MAX 291 # define VTK_MTIME_TYPE_IMPL VTK_TYPE_UINT64 292 # define VTK_MTIME_MIN VTK_TYPE_UINT64_MIN 293 # define VTK_MTIME_MAX VTK_TYPE_UINT64_MAX 296 # if VTK_SIZEOF_LONG == 4 298 # define VTK_MTIME_TYPE_IMPL VTK_UNSIGNED_LONG 299 # define VTK_MTIME_MIN VTK_UNSIGNED_LONG_MIN 300 # define VTK_MTIME_MAX VTK_UNSIGNED_LONG_MAX 303 # define VTK_MTIME_TYPE_IMPL VTK_TYPE_UINT32 304 # define VTK_MTIME_MIN VTK_TYPE_UINT32_MIN 305 # define VTK_MTIME_MAX VTK_TYPE_UINT32_MAX 310 #if VTK_SIZEOF_FLOAT == 4 311 typedef float vtkTypeFloat32;
312 # define VTK_TYPE_FLOAT32 VTK_FLOAT 314 # error "No native data type can represent a 32-bit floating point value." 318 #if VTK_SIZEOF_DOUBLE == 8 319 typedef double vtkTypeFloat64;
320 # define VTK_TYPE_FLOAT64 VTK_DOUBLE 322 # error "No native data type can represent a 64-bit floating point value." 327 #define VTK_HAS_ID_TYPE 328 #ifdef VTK_USE_64BIT_IDS 329 # if VTK_SIZEOF_LONG_LONG == 8 331 # define VTK_ID_TYPE_IMPL VTK_LONG_LONG 332 # define VTK_SIZEOF_ID_TYPE VTK_SIZEOF_LONG_LONG 333 # define VTK_ID_MIN VTK_LONG_LONG_MIN 334 # define VTK_ID_MAX VTK_LONG_LONG_MAX 335 # define VTK_ID_TYPE_PRId "lld" 336 # elif VTK_SIZEOF_LONG == 8 338 # define VTK_ID_TYPE_IMPL VTK_LONG 339 # define VTK_SIZEOF_ID_TYPE VTK_SIZEOF_LONG 340 # define VTK_ID_MIN VTK_LONG_MIN 341 # define VTK_ID_MAX VTK_LONG_MAX 342 # define VTK_ID_TYPE_PRId "ld" 344 # error "VTK_USE_64BIT_IDS is ON but no 64-bit integer type is available." 348 # define VTK_ID_TYPE_IMPL VTK_INT 349 # define VTK_SIZEOF_ID_TYPE VTK_SIZEOF_INT 350 # define VTK_ID_MIN VTK_INT_MIN 351 # define VTK_ID_MAX VTK_INT_MAX 352 # define VTK_ID_TYPE_PRId "d" 367 #ifndef VTK_TYPE_BOOL_TYPEDEFED 368 # define VTK_TYPE_BOOL_TYPEDEFED 379 #if defined(__cplusplus) 385 inline vtkTypeBool vtkDataTypesCompare(
int a,
int b)
395 #define vtkInstantiateTemplateMacro(decl) \ 400 decl<unsigned char>; \ 402 decl<unsigned short>; \ 404 decl<unsigned int>; \ 406 decl<unsigned long>; \ 408 decl<unsigned long long>; 411 #ifdef VTK_USE_EXTERN_TEMPLATE 412 #define vtkExternTemplateMacro(decl) \ 413 vtkInstantiateTemplateMacro(decl) 415 #define vtkExternTemplateMacro(decl) vtkTypeUInt32 vtkMTimeType
unsigned int vtkTypeUBool