智慧水务管理系统 - 精河县供水工程综合管理平台

MetadataSemantic.js 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. // @ts-check
  2. /**
  3. * An enum of built-in semantics.
  4. *
  5. * @enum {string}
  6. *
  7. * @private
  8. * @experimental This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.
  9. * @see {@link https://github.com/CesiumGS/3d-tiles/tree/main/specification/Metadata/Semantics|3D Metadata Semantic Reference}
  10. */
  11. const MetadataSemantic = {
  12. /**
  13. * A unique identifier, stored as a <code>STRING</code>.
  14. *
  15. * @type {string}
  16. * @constant
  17. * @private
  18. */
  19. ID: "ID",
  20. /**
  21. * A name, stored as a <code>STRING</code>. This does not have to be unique.
  22. *
  23. * @type {string}
  24. * @constant
  25. * @private
  26. */
  27. NAME: "NAME",
  28. /**
  29. * A description, stored as a <code>STRING</code>.
  30. *
  31. * @type {string}
  32. * @constant
  33. * @private
  34. */
  35. DESCRIPTION: "DESCRIPTION",
  36. /**
  37. * The number of tiles in a tileset, stored as a <code>UINT64</code>.
  38. *
  39. * @type {string}
  40. * @constant
  41. * @private
  42. */
  43. TILESET_TILE_COUNT: "TILESET_TILE_COUNT",
  44. /**
  45. * A bounding box for a tile, stored as an array of 12 <code>FLOAT32</code> or <code>FLOAT64</code> components. The components are the same format as for <code>boundingVolume.box</code> in 3D Tiles 1.0. This semantic is used to provide a tighter bounding volume than the one implicitly calculated in implicit tiling.
  46. *
  47. * @type {string}
  48. * @constant
  49. * @private
  50. */
  51. TILE_BOUNDING_BOX: "TILE_BOUNDING_BOX",
  52. /**
  53. * A bounding region for a tile, stored as an array of 6 <code>FLOAT64</code> components. The components are <code>[west, south, east, north, minimumHeight, maximumHeight]</code>. This semantic is used to provide a tighter bounding volume than the one implicitly calculated in implicit tiling.
  54. *
  55. * @type {string}
  56. * @constant
  57. * @private
  58. */
  59. TILE_BOUNDING_REGION: "TILE_BOUNDING_REGION",
  60. /**
  61. * A bounding sphere for a tile, stored as an array of 4 <code>FLOAT32</code> or <code>FLOAT64</code> components. The components are <code>[centerX, centerY, centerZ, radius]</code>. This semantic is used to provide a tighter bounding volume than the one implicitly calculated in implicit tiling.
  62. *
  63. * @type {string}
  64. * @constant
  65. * @private
  66. */
  67. TILE_BOUNDING_SPHERE: "TILE_BOUNDING_SPHERE",
  68. /**
  69. * The minimum height of a tile above (or below) the ellipsoid, stored as a <code>FLOAT32</code> or a <code>FLOAT64</code>. This semantic is used to tighten bounding regions implicitly calculated in implicit tiling.
  70. *
  71. * @type {string}
  72. * @constant
  73. * @private
  74. */
  75. TILE_MINIMUM_HEIGHT: "TILE_MINIMUM_HEIGHT",
  76. /**
  77. * The maximum height of a tile above (or below) the ellipsoid, stored as a <code>FLOAT32</code> or a <code>FLOAT64</code>. This semantic is used to tighten bounding regions implicitly calculated in implicit tiling.
  78. *
  79. * @type {string}
  80. * @constant
  81. * @private
  82. */
  83. TILE_MAXIMUM_HEIGHT: "TILE_MAXIMUM_HEIGHT",
  84. /**
  85. * The horizon occlusion point for a tile, stored as an <code>VEC3</code> of <code>FLOAT32</code> or <code>FLOAT64</code> components.
  86. *
  87. * @see {@link https://cesium.com/blog/2013/04/25/horizon-culling/|Horizon Culling}
  88. *
  89. * @type {string}
  90. * @constant
  91. * @private
  92. */
  93. TILE_HORIZON_OCCLUSION_POINT: "TILE_HORIZON_OCCLUSION_POINT",
  94. /**
  95. * The geometric error for a tile, stored as a <code>FLOAT32</code> or a <code>FLOAT64</code>. This semantic is used to override the geometric error implicitly calculated in implicit tiling.
  96. *
  97. * @type {string}
  98. * @constant
  99. * @private
  100. */
  101. TILE_GEOMETRIC_ERROR: "TILE_GEOMETRIC_ERROR",
  102. /**
  103. * A bounding box for the content of a tile, stored as an array of 12 <code>FLOAT32</code> or <code>FLOAT64</code> components. The components are the same format as for <code>boundingVolume.box</code> in 3D Tiles 1.0. This semantic is used to provide a tighter bounding volume than the one implicitly calculated in implicit tiling.
  104. *
  105. * @type {string}
  106. * @constant
  107. * @private
  108. */
  109. CONTENT_BOUNDING_BOX: "CONTENT_BOUNDING_BOX",
  110. /**
  111. * A bounding region for the content of a tile, stored as an array of 6 <code>FLOAT64</code> components. The components are <code>[west, south, east, north, minimumHeight, maximumHeight]</code>. This semantic is used to provide a tighter bounding volume than the one implicitly calculated in implicit tiling.
  112. *
  113. * @type {string}
  114. * @constant
  115. * @private
  116. */
  117. CONTENT_BOUNDING_REGION: "CONTENT_BOUNDING_REGION",
  118. /**
  119. * A bounding sphere for the content of a tile, stored as an array of 4 <code>FLOAT32</code> or <code>FLOAT64</code> components. The components are <code>[centerX, centerY, centerZ, radius]</code>. This semantic is used to provide a tighter bounding volume than the one implicitly calculated in implicit tiling.
  120. *
  121. * @type {string}
  122. * @constant
  123. * @private
  124. */
  125. CONTENT_BOUNDING_SPHERE: "CONTENT_BOUNDING_SPHERE",
  126. /**
  127. * The minimum height of the content of a tile above (or below) the ellipsoid, stored as a <code>FLOAT32</code> or a <code>FLOAT64</code>
  128. *
  129. * @type {string}
  130. * @constant
  131. * @private
  132. */
  133. CONTENT_MINIMUM_HEIGHT: "CONTENT_MINIMUM_HEIGHT",
  134. /**
  135. * The maximum height of the content of a tile above (or below) the ellipsoid, stored as a <code>FLOAT32</code> or a <code>FLOAT64</code>
  136. *
  137. * @type {string}
  138. * @constant
  139. * @private
  140. */
  141. CONTENT_MAXIMUM_HEIGHT: "CONTENT_MAXIMUM_HEIGHT",
  142. /**
  143. * The horizon occlusion point for the content of a tile, stored as an <code>VEC3</code> of <code>FLOAT32</code> or <code>FLOAT64</code> components.
  144. *
  145. * @see {@link https://cesium.com/blog/2013/04/25/horizon-culling/|Horizon Culling}
  146. *
  147. * @type {string}
  148. * @constant
  149. * @private
  150. */
  151. CONTENT_HORIZON_OCCLUSION_POINT: "CONTENT_HORIZON_OCCLUSION_POINT",
  152. };
  153. Object.freeze(MetadataSemantic);
  154. export default MetadataSemantic;