DATASET0.h 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. #pragma once
  2. #if defined EXTERN
  3. #undef EXTERN
  4. #endif
  5. #if defined ___884
  6. #define EXTERN
  7. #else
  8. #define EXTERN extern
  9. #endif
  10. EXTERN void ___2889(void);
  11. #if !defined NO_ASSERTS && !defined NO_DEBUG_FIELDVALUES && !defined DEBUG_FIELDVALUES
  12. #define DEBUG_FIELDVALUES
  13. #endif
  14. struct ___1362
  15. {
  16. void *___816;
  17. ___1383 ___1781;
  18. ___1384 ___3506;
  19. ___372 isOrderedData;
  20. FieldDataType_e ___4335;
  21. ValueLocation_e ___4327;
  22. ___2227 iDim;
  23. ___2227 jDim;
  24. ___2227 kDim;
  25. };
  26. inline void *___1720(___1361 ___1352) { return ___1352->___816; }
  27. inline void ___3487(___1361 ___1352, void *___3271) { ___1352->___816 = ___3271; }
  28. inline ___1383 ___1696(___1361 ___1352) { return ___1352->___1781; }
  29. inline ___1384 ___1723(___1361 ___1352) { return ___1352->___3506; }
  30. inline ___2227 GetFieldDataIDim(___1361 ___1352) { return ___1352->iDim; }
  31. inline ___2227 GetFieldDataJDim(___1361 ___1352) { return ___1352->jDim; }
  32. inline ___2227 GetFieldDataKDim(___1361 ___1352) { return ___1352->kDim; }
  33. inline ___2227 ___1717(___1361 ___1352)
  34. {
  35. if (___1352->isOrderedData)
  36. {
  37. if (___1352->___4327 == ___4330)
  38. {
  39. return ___1352->iDim * ___1352->jDim * ___1352->kDim;
  40. }
  41. else if (___1352->iDim == 0 && ___1352->jDim == 0 && ___1352->kDim == 0)
  42. {
  43. return 0;
  44. }
  45. else
  46. {
  47. ___2227 iDim = ___1352->iDim;
  48. ___2227 jDim = ___1352->jDim;
  49. ___2227 kDim = ___1352->kDim;
  50. if (___1352->kDim > 1)
  51. --kDim;
  52. else if (___1352->jDim > 1)
  53. --jDim;
  54. else if (___1352->iDim > 1)
  55. --iDim;
  56. return iDim * jDim * kDim;
  57. }
  58. }
  59. else if (___1352->___4327 == ___4330)
  60. {
  61. return ___1352->iDim;
  62. }
  63. else
  64. {
  65. return ___1352->jDim;
  66. }
  67. }
  68. inline ValueLocation_e ___1729(___1361 ___1352) { return ___1352->___4327; }
  69. inline FieldDataType_e ___1726(___1361 ___1352) { return ___1352->___4335; }
  70. EXTERN double STDCALL getUniformFieldValueAdapter(___1361 ___1351, ___2227 point);
  71. EXTERN double STDCALL ___1742(const ___1361 ___1308, ___2227 ___3249);
  72. EXTERN double STDCALL ___1741(const ___1361 ___1308, ___2227 ___3249);
  73. EXTERN double STDCALL ___1744(const ___1361 ___1308, ___2227 ___3249);
  74. EXTERN double STDCALL ___1743(const ___1361 ___1308, ___2227 ___3249);
  75. EXTERN double STDCALL ___1740(const ___1361 ___1308, ___2227 ___3249);
  76. EXTERN double STDCALL ___1739(const ___1361 ___1308, ___2227 ___3249);
  77. EXTERN ___1383 DetermineFieldDataGetFunction(___1361 ___1351);
  78. EXTERN ___1384 DetermineFieldDataSetFunction(___1361 ___1351);
  79. inline bool ___2019(___1361 ___1352) { return ___1720(___1352) != NULL; }
  80. typedef uint32_t ___1437;
  81. typedef uint64_t ___1111;
  82. typedef uint16_t ___1961;
  83. typedef uint32_t ___1966;
  84. typedef uint64_t ___1971;
  85. inline float *___1690(___1361 ___1308) { return (float *)___1720(___1308); }
  86. inline ___1437 *___1693(___1361 ___1308) { return (___1437 *)___1720(___1308); }
  87. inline double *___1684(___1361 ___1308) { return (double *)___1720(___1308); }
  88. inline ___1111 *___1687(___1361 ___1308) { return (___1111 *)___1720(___1308); }
  89. inline int64_t *___1711(___1361 ___1308) { return (int64_t *)___1720(___1308); }
  90. inline ___1971 *___1714(___1361 ___1308) { return (___1971 *)___1720(___1308); }
  91. inline int32_t *___1705(___1361 ___1308) { return (int32_t *)___1720(___1308); }
  92. inline ___1966 *___1708(___1361 ___1308) { return (___1966 *)___1720(___1308); }
  93. inline int16_t *___1699(___1361 ___1308) { return (int16_t *)___1720(___1308); }
  94. inline ___1961 *___1702(___1361 ___1308) { return (___1961 *)___1720(___1308); }
  95. inline uint8_t *___1681(___1361 ___1308) { return (uint8_t *)___1720(___1308); }
  96. inline uint16_t *___1672(___1361 ___1308) { return (uint16_t *)___1720(___1308); }
  97. inline uint32_t *___1675(___1361 ___1308) { return (uint32_t *)___1720(___1308); }
  98. inline uint64_t *___1678(___1361 ___1308) { return (uint64_t *)___1720(___1308); }
  99. inline void *___1732(___1361 ___1308) { return ___1720(___1308); }
  100. EXTERN ___1361 ___28(___2227 ___2842, FieldDataType_e ___4236, ___372 ___3571);
  101. EXTERN void ___938(___1361 *___3449);
  102. EXTERN void ___433(___1361 ___1353, double *min_ptr, double *max_ptr, ___2227 ___3684, ___1929 *___1928);
  103. EXTERN void ___679(FieldDataType_e ___4335, void *___1122, ___2227 ___1127, void const *___3657, ___2227 ___3665, ___2227 ___3659);
  104. EXTERN void ___3911(FieldDataType_e ___4335, void *___3657, ___2227 ___3665, ___2227 ___3659, ___2227 ___3664);
  105. EXTERN void ___3912(FieldDataType_e ___4335, void *___3657, ___2227 ___3665, ___2227 ___3659, ___2227 ___3664);
  106. EXTERN void ___674(___1361 ___1121, ___2227 ___1128, ___1361 ___3656, ___2227 ___3666, ___2227 ___3660);
  107. EXTERN void ___673(___1361 ___1121, ___1361 ___3656);
  108. EXTERN void ___675(___1361 ___1121, ___2227 ___1124, ___1361 ___3656, ___2227 ___3661);
  109. EXTERN void SetFieldDataArrayBytesToZero(___1361 ___1308);
  110. EXTERN void ___3486(___1361 ___1353);
  111. inline double ___1735(___1361 ___1308, ___2227 ___3249)
  112. {
  113. #if !defined GET_FIELD_VALUE_BY_VIRTUAL_FUNCTION && \
  114. !defined GET_FIELD_VALUE_BY_FLOAT_ONLY_TEST && \
  115. !defined GET_FIELD_VALUE_BY_DOUBLE_ONLY_TEST && \
  116. !defined GET_FIELD_VALUE_BY_FLOAT_AND_DOUBLE_TEST
  117. #if !defined NO_ASSERTS || defined DEBUG_FIELDVALUES
  118. #define GET_FIELD_VALUE_BY_VIRTUAL_FUNCTION
  119. #else
  120. #define GET_FIELD_VALUE_BY_FLOAT_AND_DOUBLE_TEST
  121. #endif
  122. #endif
  123. #if defined GET_FIELD_VALUE_BY_VIRTUAL_FUNCTION
  124. return ___1696(___1308)(___1308, ___3249);
  125. #elif defined GET_FIELD_VALUE_BY_FLOAT_ONLY_TEST
  126. return ___1696(___1308) == ___1742 ? ___1690(___1308)[___3249] : ___1696(___1308)(___1308, ___3249);
  127. #elif defined GET_FIELD_VALUE_BY_DOUBLE_ONLY_TEST
  128. return ___1696(___1308) == ___1741 ? ___1684(___1308)[___3249] : ___1696(___1308)(___1308, ___3249);
  129. #elif defined GET_FIELD_VALUE_BY_FLOAT_AND_DOUBLE_TEST
  130. return ___1696(___1308) == ___1742 ? ___1690(___1308)[___3249] : (___1696(___1308) == ___1741 ? ___1684(___1308)[___3249] : ___1696(___1308)(___1308, ___3249));
  131. #else
  132. #error "Need to define one of GET_FIELD_VALUE_BY_XXX constants"
  133. #endif
  134. }
  135. inline void ___3490(___1361 ___1308, ___2227 ___3249, double ___4298) { ___1723(___1308)
  136. (___1308, ___3249, ___4298); }
  137. #if defined _DEBUG
  138. #define USEFUNCTIONSFORNODEVALUES
  139. #endif
  140. EXTERN ___372 ___1355(___1361 ___1352, ___372 ___3571);
  141. EXTERN void ___1358(___1361 ___1352);
  142. EXTERN void ___1357(___1361 *___1352, ___372 ___1103);