zoneUtil.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. #pragma once
  2. #include "AltTecUtil.h"
  3. #include "basicTypes.h"
  4. #include "IJK.h"
  5. namespace tecplot
  6. {
  7. namespace ___3933
  8. {
  9. inline bool supportedOrderedVolumeZoneType(ZoneType_e ___4692, tecplot::___3933::___1844 const &___4632) { return (___4692 == ___4704 && ___4632.i() > 1 && ___4632.___2105() > 1 && ___4632.___2134() > 1); }
  10. inline bool ___3894(ZoneType_e ___4692) { return ___4692 == ___4701 || ___4692 == ___4695; }
  11. inline bool ___3895(ZoneType_e ___4692, ___1844 const &___4632) { return supportedOrderedVolumeZoneType(___4692, ___4632) || ___3894(___4692); }
  12. inline bool supportedZoneType(ZoneType_e ___4692) { return ___4692 == ___4704 || ___4692 == ___4702 || ___4692 == ___4700 || ___4692 == ___4701 || ___4692 == ___4695 || ___4692 == ___4696; }
  13. inline bool linearZoneType(ZoneType_e ___4692, ___1844 const &___4632)
  14. {
  15. bool ___3358 = false;
  16. if (___4692 == ___4696)
  17. {
  18. ___3358 = true;
  19. }
  20. else if (___4692 == ___4704)
  21. {
  22. int ___1089 = 0;
  23. if (___4632.i() > 1)
  24. ++___1089;
  25. if (___4632.___2105() > 1)
  26. ++___1089;
  27. if (___4632.___2134() > 1)
  28. ++___1089;
  29. ___3358 = ___1089 <= 1;
  30. }
  31. return ___3358;
  32. }
  33. inline bool ___3158(ZoneType_e ___4692) { return ___4692 == ___4698 || ___4692 == ___4699; }
  34. inline ___372 ___4641(___37 &___36, ___4636 zone)
  35. {
  36. REQUIRE(zone >= 0);
  37. ZoneType_e ___4692 = ___36.___4620(zone + 1);
  38. return ___4692 == ___4704;
  39. }
  40. inline ___372 ___4645(___37 &___36, ___4636 zone)
  41. {
  42. REQUIRE(zone >= 0);
  43. ZoneType_e ___4692 = ___36.___4620(zone + 1);
  44. return ___4692 == ___4701;
  45. }
  46. inline ___372 ___4637(___37 &___36, ___4636 zone)
  47. {
  48. REQUIRE(zone >= 0);
  49. ZoneType_e ___4692 = ___36.___4620(zone + 1);
  50. return ___4692 == ___4695;
  51. }
  52. inline ___372 ___4639(___37 &___36, ___4636 zone)
  53. {
  54. REQUIRE(zone >= 0);
  55. ZoneType_e ___4692 = ___36.___4620(zone + 1);
  56. return ___4692 == ___4701 || ___4692 == ___4695;
  57. }
  58. inline ___372 ___4646(___37 &___36, ___4636 zone)
  59. {
  60. REQUIRE(zone >= 0);
  61. if (___4639(___36, zone))
  62. {
  63. return ___4226;
  64. }
  65. else if (___4641(___36, zone))
  66. {
  67. ___1844 ___1843;
  68. ___36.___4615(zone + 1, ___1843);
  69. if (___1843.i() > 1 && ___1843.___2105() > 1 && ___1843.___2134() > 1)
  70. return ___4226;
  71. }
  72. return ___1305;
  73. }
  74. inline ___372 ___4643(___37 &___36, ___4636 zone)
  75. {
  76. REQUIRE(zone >= 0);
  77. return (___36.___4620(zone + 1) == ___4698 || ___36.___4620(zone + 1) == ___4699);
  78. }
  79. inline ___372 zoneIsPartitioned(___37 &___36, ___4636 zone)
  80. {
  81. REQUIRE(zone >= 0);
  82. return ___36.zoneIsPartitioned(zone + 1);
  83. }
  84. inline ___372 ___4644(___37 &___36, ___4636 zone)
  85. {
  86. REQUIRE(zone >= 0);
  87. return ___3894(___36.___4620(zone + 1));
  88. }
  89. inline ___372 ___4642(___37 &___36, ___4636 zone)
  90. {
  91. REQUIRE(zone >= 0);
  92. return ___4646(___36, zone) && ___4641(___36, zone);
  93. }
  94. }
  95. }