Geom_s.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. #pragma once
  2. #include "ThirdPartyHeadersBegin.h"
  3. #include <boost/foreach.hpp>
  4. #include "ThirdPartyHeadersEnd.h"
  5. #include "SzlFileLoader.h"
  6. #include "fileio.h"
  7. namespace tecplot
  8. {
  9. namespace tecioszl
  10. {
  11. struct ___1556 : public tecplot::___3933::___1556
  12. {
  13. public:
  14. static ___1556 invalidGeom() { return ___1556(0.0, 0.0, 0.0, ___663, ___1305, 1, ___364, ___4455, ___1305, GeomType_Invalid, ___2271, 2.0, 0.1, 72, ___192, ___181, 5.0, 12.0, ___3446, ___498, std::vector<std::vector<tecplot::___3933::___4580>>(), ""); }
  15. ___1556(double ___4574, double ___4591, double ___4715, CoordSys_e ___3159, ___372 ___2004, ___1172 zone, ___516 color, ___516 ___1411, ___372 ___2022, GeomType_e ___1651, LinePattern_e ___2263, double ___2986, double ___2289, uint16_t ___2793, ArrowheadStyle_e arrowheadStyle, ArrowheadAttachment_e arrowheadAttachment, double arrowheadSize, double arrowheadAngle, Scope_e ___3442, Clipping_e ___495, std::vector<std::vector<tecplot::___3933::___4580>> const &___1572, std::string const &___2330) : tecplot::___3933::___1556(___4574, ___4591, ___4715, ___3159, ___2004, zone, color, ___1411, ___2022, ___1651, ___2263, ___2986, ___2289, ___2793, arrowheadStyle, arrowheadAttachment, arrowheadSize, arrowheadAngle, ___3442, ___495, ___1572, ___2330) {}
  16. bool ___2067() { return VALID_ENUM(___2616, CoordSys_e) && VALID_ENUM(___2466, GeomType_e); }
  17. void writeToFile(___3933::FileWriterInterface &outputFile, bool ___4480) const
  18. {
  19. writeScalar(outputFile, ___2617[0], ___4480);
  20. writeScalar(outputFile, ___2617[1], ___4480);
  21. writeScalar(outputFile, ___2617[2], ___4480);
  22. writeScalar(outputFile, (uint32_t)___2616, ___4480);
  23. writeScalar(outputFile, ___2484, ___4480);
  24. writeScalar(outputFile, ___2677, ___4480);
  25. writeScalar(outputFile, ___2395, ___4480);
  26. writeScalar(outputFile, ___2462, ___4480);
  27. writeScalar(outputFile, ___2486, ___4480);
  28. writeScalar(outputFile, (uint32_t)___2466, ___4480);
  29. writeScalar(outputFile, (uint32_t)___2489, ___4480);
  30. writeScalar(outputFile, ___2615, ___4480);
  31. writeScalar(outputFile, ___2490, ___4480);
  32. writeScalar(outputFile, ___2502, ___4480);
  33. writeScalar(outputFile, (uint32_t)___2343, ___4480);
  34. writeScalar(outputFile, (uint32_t)___2341, ___4480);
  35. writeScalar(outputFile, ___2342, ___4480);
  36. writeScalar(outputFile, ___2340, ___4480);
  37. writeScalar(outputFile, (uint32_t)___2619, ___4480);
  38. writeScalar(outputFile, (uint32_t)___2394, ___4480);
  39. writeScalar(outputFile, (uint64_t)___2464.size(), ___4480);
  40. BOOST_FOREACH (std::vector<tecplot::___3933::___4580> const &vec, ___2464)
  41. {
  42. writeScalar(outputFile, (uint64_t)vec.size(), ___4480);
  43. BOOST_FOREACH (tecplot::___3933::___4580 const &xyz, vec)
  44. {
  45. writeScalar(outputFile, xyz.x(), ___4480);
  46. writeScalar(outputFile, xyz.___4583(), ___4480);
  47. writeScalar(outputFile, xyz.z(), ___4480);
  48. }
  49. }
  50. ___4544(outputFile, ___2491, ___4480);
  51. }
  52. uint64_t sizeInFile(bool ___4480) const
  53. {
  54. uint64_t sizeInFile = 0;
  55. sizeInFile += scalarSizeInFile(___2617[0], ___4480);
  56. sizeInFile += scalarSizeInFile(___2617[1], ___4480);
  57. sizeInFile += scalarSizeInFile(___2617[2], ___4480);
  58. sizeInFile += scalarSizeInFile((uint32_t)___2616, ___4480);
  59. sizeInFile += scalarSizeInFile(___2484, ___4480);
  60. sizeInFile += scalarSizeInFile(___2677, ___4480);
  61. sizeInFile += scalarSizeInFile(___2395, ___4480);
  62. sizeInFile += scalarSizeInFile(___2462, ___4480);
  63. sizeInFile += scalarSizeInFile(___2486, ___4480);
  64. sizeInFile += scalarSizeInFile((uint32_t)___2466, ___4480);
  65. sizeInFile += scalarSizeInFile((uint32_t)___2489, ___4480);
  66. sizeInFile += scalarSizeInFile(___2615, ___4480);
  67. sizeInFile += scalarSizeInFile(___2490, ___4480);
  68. sizeInFile += scalarSizeInFile(___2502, ___4480);
  69. sizeInFile += scalarSizeInFile((uint32_t)___2343, ___4480);
  70. sizeInFile += scalarSizeInFile((uint32_t)___2341, ___4480);
  71. sizeInFile += scalarSizeInFile(___2342, ___4480);
  72. sizeInFile += scalarSizeInFile(___2340, ___4480);
  73. sizeInFile += scalarSizeInFile((uint32_t)___2619, ___4480);
  74. sizeInFile += scalarSizeInFile((uint32_t)___2394, ___4480);
  75. sizeInFile += scalarSizeInFile((uint64_t)___2464.size(), ___4480);
  76. BOOST_FOREACH (std::vector<tecplot::___3933::___4580> const &vec, ___2464)
  77. {
  78. sizeInFile += scalarSizeInFile((uint64_t)vec.size(), ___4480);
  79. BOOST_FOREACH (tecplot::___3933::___4580 const &xyz, vec)
  80. {
  81. sizeInFile += scalarSizeInFile(xyz.x(), ___4480);
  82. sizeInFile += scalarSizeInFile(xyz.___4583(), ___4480);
  83. sizeInFile += scalarSizeInFile(xyz.z(), ___4480);
  84. }
  85. }
  86. sizeInFile += stringSizeInFile(___2491, ___4480);
  87. return sizeInFile;
  88. }
  89. ___1556(___3933::___1399 &inputFile, bool readASCII)
  90. {
  91. readScalar(inputFile, ___2617[0], readASCII);
  92. readScalar(inputFile, ___2617[1], readASCII);
  93. readScalar(inputFile, ___2617[2], readASCII);
  94. READ_ENUM(___2616, CoordSys_e, inputFile, readASCII);
  95. readScalar(inputFile, ___2484, readASCII);
  96. readScalar(inputFile, ___2677, readASCII);
  97. readScalar(inputFile, ___2395, readASCII);
  98. readScalar(inputFile, ___2462, readASCII);
  99. readScalar(inputFile, ___2486, readASCII);
  100. READ_ENUM(___2466, GeomType_e, inputFile, readASCII);
  101. READ_ENUM(___2489, LinePattern_e, inputFile, readASCII);
  102. readScalar(inputFile, ___2615, readASCII);
  103. readScalar(inputFile, ___2490, readASCII);
  104. readScalar(inputFile, ___2502, readASCII);
  105. READ_ENUM(___2343, ArrowheadStyle_e, inputFile, readASCII);
  106. READ_ENUM(___2341, ArrowheadAttachment_e, inputFile, readASCII);
  107. readScalar(inputFile, ___2342, readASCII);
  108. readScalar(inputFile, ___2340, readASCII);
  109. READ_ENUM(___2619, Scope_e, inputFile, readASCII);
  110. READ_ENUM(___2394, Clipping_e, inputFile, readASCII);
  111. uint64_t length;
  112. readScalar(inputFile, length, readASCII);
  113. ___2464.resize((size_t)length);
  114. for (size_t i = 0; i < ___2464.size(); ++i)
  115. {
  116. readScalar(inputFile, length, readASCII);
  117. ___2464[i].reserve((size_t)length);
  118. double x, ___4583, z;
  119. for (uint64_t ___2105 = 0; ___2105 < length; ++___2105)
  120. {
  121. readScalar(inputFile, x, readASCII);
  122. readScalar(inputFile, ___4583, readASCII);
  123. readScalar(inputFile, z, readASCII);
  124. ___2464[i].push_back(___3933::___4580(x, ___4583, z));
  125. }
  126. }
  127. readString(inputFile, ___2491, readASCII);
  128. }
  129. };
  130. }
  131. }