@itwin/core-orbitgt 5.0.0-dev.8 → 5.0.0-dev.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/CHANGELOG.md +46 -1
  2. package/lib/cjs/pointcloud/format/opc/AttributeMask.js +4 -0
  3. package/lib/cjs/pointcloud/format/opc/AttributeMask.js.map +1 -1
  4. package/lib/cjs/pointcloud/format/opc/BlockRecord.js +2 -2
  5. package/lib/cjs/pointcloud/format/opc/BlockRecord.js.map +1 -1
  6. package/lib/cjs/pointcloud/format/opc/ContainerFile.js +10 -2
  7. package/lib/cjs/pointcloud/format/opc/ContainerFile.js.map +1 -1
  8. package/lib/cjs/pointcloud/format/opc/ContainerFilePart.js +8 -0
  9. package/lib/cjs/pointcloud/format/opc/ContainerFilePart.js.map +1 -1
  10. package/lib/cjs/pointcloud/format/opc/DirectoryReader.js +12 -0
  11. package/lib/cjs/pointcloud/format/opc/DirectoryReader.js.map +1 -1
  12. package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js +6 -0
  13. package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js.map +1 -1
  14. package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js +21 -0
  15. package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -1
  16. package/lib/cjs/pointcloud/format/opc/FileAccess.js +6 -0
  17. package/lib/cjs/pointcloud/format/opc/FileAccess.js.map +1 -1
  18. package/lib/cjs/pointcloud/format/opc/FileReader.js +16 -2
  19. package/lib/cjs/pointcloud/format/opc/FileReader.js.map +1 -1
  20. package/lib/cjs/pointcloud/format/opc/FileRecord.js +14 -0
  21. package/lib/cjs/pointcloud/format/opc/FileRecord.js.map +1 -1
  22. package/lib/cjs/pointcloud/format/opc/GeometryReader.js +14 -6
  23. package/lib/cjs/pointcloud/format/opc/GeometryReader.js.map +1 -1
  24. package/lib/cjs/pointcloud/format/opc/GeometryRecord.js +4 -0
  25. package/lib/cjs/pointcloud/format/opc/GeometryRecord.js.map +1 -1
  26. package/lib/cjs/pointcloud/format/opc/OPCReader.js +6 -0
  27. package/lib/cjs/pointcloud/format/opc/OPCReader.js.map +1 -1
  28. package/lib/cjs/pointcloud/format/opc/TileReadBuffer.js +4 -0
  29. package/lib/cjs/pointcloud/format/opc/TileReadBuffer.js.map +1 -1
  30. package/lib/cjs/pointcloud/format/opc/TileRecord.js +2 -2
  31. package/lib/cjs/pointcloud/format/opc/TileRecord.js.map +1 -1
  32. package/lib/cjs/pointcloud/model/AttributeTypes.js +16 -16
  33. package/lib/cjs/pointcloud/model/AttributeTypes.js.map +1 -1
  34. package/lib/cjs/pointcloud/model/AttributeValue.js +14 -4
  35. package/lib/cjs/pointcloud/model/AttributeValue.js.map +1 -1
  36. package/lib/cjs/pointcloud/model/BlockIndex.js +18 -0
  37. package/lib/cjs/pointcloud/model/BlockIndex.js.map +1 -1
  38. package/lib/cjs/pointcloud/model/CloudPoint.js +22 -2
  39. package/lib/cjs/pointcloud/model/CloudPoint.js.map +1 -1
  40. package/lib/cjs/pointcloud/model/Grid.js +4 -0
  41. package/lib/cjs/pointcloud/model/Grid.js.map +1 -1
  42. package/lib/cjs/pointcloud/model/GridIndex.js +6 -0
  43. package/lib/cjs/pointcloud/model/GridIndex.js.map +1 -1
  44. package/lib/cjs/pointcloud/model/PointAttribute.js +14 -0
  45. package/lib/cjs/pointcloud/model/PointAttribute.js.map +1 -1
  46. package/lib/cjs/pointcloud/model/PointData.js +4 -0
  47. package/lib/cjs/pointcloud/model/PointData.js.map +1 -1
  48. package/lib/cjs/pointcloud/model/PointDataRaw.js +8 -2
  49. package/lib/cjs/pointcloud/model/PointDataRaw.js.map +1 -1
  50. package/lib/cjs/pointcloud/model/ReadRequest.js +28 -6
  51. package/lib/cjs/pointcloud/model/ReadRequest.js.map +1 -1
  52. package/lib/cjs/pointcloud/model/StandardAttributes.js +21 -21
  53. package/lib/cjs/pointcloud/model/StandardAttributes.js.map +1 -1
  54. package/lib/cjs/pointcloud/model/TileIndex.js +16 -0
  55. package/lib/cjs/pointcloud/model/TileIndex.js.map +1 -1
  56. package/lib/cjs/pointcloud/render/Block.js +6 -0
  57. package/lib/cjs/pointcloud/render/Block.js.map +1 -1
  58. package/lib/cjs/pointcloud/render/DataManager.js +36 -6
  59. package/lib/cjs/pointcloud/render/DataManager.js.map +1 -1
  60. package/lib/cjs/pointcloud/render/FrameData.js +8 -0
  61. package/lib/cjs/pointcloud/render/FrameData.js.map +1 -1
  62. package/lib/cjs/pointcloud/render/Level.js +12 -0
  63. package/lib/cjs/pointcloud/render/Level.js.map +1 -1
  64. package/lib/cjs/pointcloud/render/TileLoadSorter.js +9 -4
  65. package/lib/cjs/pointcloud/render/TileLoadSorter.js.map +1 -1
  66. package/lib/cjs/pointcloud/render/ViewTree.js +12 -4
  67. package/lib/cjs/pointcloud/render/ViewTree.js.map +1 -1
  68. package/lib/cjs/spatial/crs/CRSManager.js +2 -2
  69. package/lib/cjs/spatial/crs/CRSManager.js.map +1 -1
  70. package/lib/cjs/spatial/ecrs/Axis.js +12 -0
  71. package/lib/cjs/spatial/ecrs/Axis.js.map +1 -1
  72. package/lib/cjs/spatial/ecrs/CRS.js +68 -34
  73. package/lib/cjs/spatial/ecrs/CRS.js.map +1 -1
  74. package/lib/cjs/spatial/ecrs/CoordinateSystem.js +20 -2
  75. package/lib/cjs/spatial/ecrs/CoordinateSystem.js.map +1 -1
  76. package/lib/cjs/spatial/ecrs/DataFileUnit.js +1 -1
  77. package/lib/cjs/spatial/ecrs/DataFileUnit.js.map +1 -1
  78. package/lib/cjs/spatial/ecrs/Datum.js +16 -4
  79. package/lib/cjs/spatial/ecrs/Datum.js.map +1 -1
  80. package/lib/cjs/spatial/ecrs/Ellipsoid.js +18 -0
  81. package/lib/cjs/spatial/ecrs/Ellipsoid.js.map +1 -1
  82. package/lib/cjs/spatial/ecrs/OnlineEngine.js +2 -0
  83. package/lib/cjs/spatial/ecrs/OnlineEngine.js.map +1 -1
  84. package/lib/cjs/spatial/ecrs/OnlineRegistry.js +6 -2
  85. package/lib/cjs/spatial/ecrs/OnlineRegistry.js.map +1 -1
  86. package/lib/cjs/spatial/ecrs/Operation.js +28 -6
  87. package/lib/cjs/spatial/ecrs/Operation.js.map +1 -1
  88. package/lib/cjs/spatial/ecrs/OperationMethod.js +6 -0
  89. package/lib/cjs/spatial/ecrs/OperationMethod.js.map +1 -1
  90. package/lib/cjs/spatial/ecrs/ParameterValue.js +6 -0
  91. package/lib/cjs/spatial/ecrs/ParameterValue.js.map +1 -1
  92. package/lib/cjs/spatial/ecrs/ParameterValueList.js +2 -0
  93. package/lib/cjs/spatial/ecrs/ParameterValueList.js.map +1 -1
  94. package/lib/cjs/spatial/ecrs/PrimeMeridian.js +8 -0
  95. package/lib/cjs/spatial/ecrs/PrimeMeridian.js.map +1 -1
  96. package/lib/cjs/spatial/ecrs/Registry.js +17 -17
  97. package/lib/cjs/spatial/ecrs/Registry.js.map +1 -1
  98. package/lib/cjs/spatial/ecrs/Transform.js +11 -11
  99. package/lib/cjs/spatial/ecrs/Transform.js.map +1 -1
  100. package/lib/cjs/spatial/ecrs/Unit.js +40 -24
  101. package/lib/cjs/spatial/ecrs/Unit.js.map +1 -1
  102. package/lib/cjs/spatial/ecrs/WellKnownText.js +8 -8
  103. package/lib/cjs/spatial/ecrs/WellKnownText.js.map +1 -1
  104. package/lib/cjs/spatial/ecrs/WellKnownTextNode.js +4 -0
  105. package/lib/cjs/spatial/ecrs/WellKnownTextNode.js.map +1 -1
  106. package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js +36 -2
  107. package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
  108. package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js +23 -2
  109. package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
  110. package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js +4 -2
  111. package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
  112. package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js +12 -2
  113. package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
  114. package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js +29 -6
  115. package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
  116. package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js +14 -4
  117. package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
  118. package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js +38 -4
  119. package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
  120. package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js +24 -4
  121. package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
  122. package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js +28 -4
  123. package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
  124. package/lib/cjs/spatial/ecrs/transformation/PositionVector.js +12 -2
  125. package/lib/cjs/spatial/ecrs/transformation/PositionVector.js.map +1 -1
  126. package/lib/cjs/spatial/geom/Bounds.js +3 -0
  127. package/lib/cjs/spatial/geom/Bounds.js.map +1 -1
  128. package/lib/cjs/spatial/geom/Coordinate.js +3 -0
  129. package/lib/cjs/spatial/geom/Coordinate.js.map +1 -1
  130. package/lib/cjs/spatial/geom/Line.js +4 -0
  131. package/lib/cjs/spatial/geom/Line.js.map +1 -1
  132. package/lib/cjs/spatial/geom/Transform.js +2 -0
  133. package/lib/cjs/spatial/geom/Transform.js.map +1 -1
  134. package/lib/cjs/system/buffer/ABuffer.js +4 -0
  135. package/lib/cjs/system/buffer/ABuffer.js.map +1 -1
  136. package/lib/cjs/system/buffer/Float32Buffer.js +8 -2
  137. package/lib/cjs/system/buffer/Float32Buffer.js.map +1 -1
  138. package/lib/cjs/system/buffer/Uint16Buffer.js +8 -2
  139. package/lib/cjs/system/buffer/Uint16Buffer.js.map +1 -1
  140. package/lib/cjs/system/buffer/Uint8Buffer.js +8 -2
  141. package/lib/cjs/system/buffer/Uint8Buffer.js.map +1 -1
  142. package/lib/cjs/system/collection/AList.js +1 -0
  143. package/lib/cjs/system/collection/AList.js.map +1 -1
  144. package/lib/cjs/system/collection/IntMap.js +1 -0
  145. package/lib/cjs/system/collection/IntMap.js.map +1 -1
  146. package/lib/cjs/system/collection/StringMap.js +1 -0
  147. package/lib/cjs/system/collection/StringMap.js.map +1 -1
  148. package/lib/cjs/system/io/ABufferInStream.js +5 -0
  149. package/lib/cjs/system/io/ABufferInStream.js.map +1 -1
  150. package/lib/cjs/system/runtime/ALong.js +30 -26
  151. package/lib/cjs/system/runtime/ALong.js.map +1 -1
  152. package/lib/cjs/system/runtime/ASystem.js +1 -1
  153. package/lib/cjs/system/runtime/ASystem.js.map +1 -1
  154. package/lib/cjs/system/runtime/Downloader.js +2 -2
  155. package/lib/cjs/system/runtime/Downloader.js.map +1 -1
  156. package/lib/cjs/system/runtime/Message.js +2 -2
  157. package/lib/cjs/system/runtime/Message.js.map +1 -1
  158. package/lib/cjs/system/runtime/Numbers.js +6 -6
  159. package/lib/cjs/system/runtime/Numbers.js.map +1 -1
  160. package/lib/cjs/system/runtime/Strings.js +14 -14
  161. package/lib/cjs/system/runtime/Strings.js.map +1 -1
  162. package/lib/cjs/system/storage/CacheList.js +8 -0
  163. package/lib/cjs/system/storage/CacheList.js.map +1 -1
  164. package/lib/cjs/system/storage/CachedItem.js +6 -0
  165. package/lib/cjs/system/storage/CachedItem.js.map +1 -1
  166. package/lib/cjs/system/storage/ContentLoader.js +14 -2
  167. package/lib/cjs/system/storage/ContentLoader.js.map +1 -1
  168. package/lib/cjs/system/storage/FileContent.js +4 -0
  169. package/lib/cjs/system/storage/FileContent.js.map +1 -1
  170. package/lib/cjs/system/storage/FileRange.js +4 -0
  171. package/lib/cjs/system/storage/FileRange.js.map +1 -1
  172. package/lib/cjs/system/storage/PageCachedFile.js +8 -0
  173. package/lib/cjs/system/storage/PageCachedFile.js.map +1 -1
  174. package/lib/cjs/system/storage/UrlFS.js +6 -0
  175. package/lib/cjs/system/storage/UrlFS.js.map +1 -1
  176. package/lib/esm/pointcloud/format/opc/AttributeMask.js +4 -0
  177. package/lib/esm/pointcloud/format/opc/AttributeMask.js.map +1 -1
  178. package/lib/esm/pointcloud/format/opc/BlockRecord.js +2 -2
  179. package/lib/esm/pointcloud/format/opc/BlockRecord.js.map +1 -1
  180. package/lib/esm/pointcloud/format/opc/ContainerFile.js +10 -2
  181. package/lib/esm/pointcloud/format/opc/ContainerFile.js.map +1 -1
  182. package/lib/esm/pointcloud/format/opc/ContainerFilePart.js +8 -0
  183. package/lib/esm/pointcloud/format/opc/ContainerFilePart.js.map +1 -1
  184. package/lib/esm/pointcloud/format/opc/DirectoryReader.js +12 -0
  185. package/lib/esm/pointcloud/format/opc/DirectoryReader.js.map +1 -1
  186. package/lib/esm/pointcloud/format/opc/DirectoryRecord.js +6 -0
  187. package/lib/esm/pointcloud/format/opc/DirectoryRecord.js.map +1 -1
  188. package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js +21 -0
  189. package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -1
  190. package/lib/esm/pointcloud/format/opc/FileAccess.js +6 -0
  191. package/lib/esm/pointcloud/format/opc/FileAccess.js.map +1 -1
  192. package/lib/esm/pointcloud/format/opc/FileReader.js +16 -2
  193. package/lib/esm/pointcloud/format/opc/FileReader.js.map +1 -1
  194. package/lib/esm/pointcloud/format/opc/FileRecord.js +14 -0
  195. package/lib/esm/pointcloud/format/opc/FileRecord.js.map +1 -1
  196. package/lib/esm/pointcloud/format/opc/GeometryReader.js +14 -6
  197. package/lib/esm/pointcloud/format/opc/GeometryReader.js.map +1 -1
  198. package/lib/esm/pointcloud/format/opc/GeometryRecord.js +4 -0
  199. package/lib/esm/pointcloud/format/opc/GeometryRecord.js.map +1 -1
  200. package/lib/esm/pointcloud/format/opc/OPCReader.js +6 -0
  201. package/lib/esm/pointcloud/format/opc/OPCReader.js.map +1 -1
  202. package/lib/esm/pointcloud/format/opc/TileReadBuffer.js +4 -0
  203. package/lib/esm/pointcloud/format/opc/TileReadBuffer.js.map +1 -1
  204. package/lib/esm/pointcloud/format/opc/TileRecord.js +2 -2
  205. package/lib/esm/pointcloud/format/opc/TileRecord.js.map +1 -1
  206. package/lib/esm/pointcloud/model/AttributeTypes.js +16 -16
  207. package/lib/esm/pointcloud/model/AttributeTypes.js.map +1 -1
  208. package/lib/esm/pointcloud/model/AttributeValue.js +14 -4
  209. package/lib/esm/pointcloud/model/AttributeValue.js.map +1 -1
  210. package/lib/esm/pointcloud/model/BlockIndex.js +18 -0
  211. package/lib/esm/pointcloud/model/BlockIndex.js.map +1 -1
  212. package/lib/esm/pointcloud/model/CloudPoint.js +22 -2
  213. package/lib/esm/pointcloud/model/CloudPoint.js.map +1 -1
  214. package/lib/esm/pointcloud/model/Grid.js +4 -0
  215. package/lib/esm/pointcloud/model/Grid.js.map +1 -1
  216. package/lib/esm/pointcloud/model/GridIndex.js +6 -0
  217. package/lib/esm/pointcloud/model/GridIndex.js.map +1 -1
  218. package/lib/esm/pointcloud/model/PointAttribute.js +14 -0
  219. package/lib/esm/pointcloud/model/PointAttribute.js.map +1 -1
  220. package/lib/esm/pointcloud/model/PointData.js +4 -0
  221. package/lib/esm/pointcloud/model/PointData.js.map +1 -1
  222. package/lib/esm/pointcloud/model/PointDataRaw.js +8 -2
  223. package/lib/esm/pointcloud/model/PointDataRaw.js.map +1 -1
  224. package/lib/esm/pointcloud/model/ReadRequest.js +28 -6
  225. package/lib/esm/pointcloud/model/ReadRequest.js.map +1 -1
  226. package/lib/esm/pointcloud/model/StandardAttributes.js +21 -21
  227. package/lib/esm/pointcloud/model/StandardAttributes.js.map +1 -1
  228. package/lib/esm/pointcloud/model/TileIndex.js +16 -0
  229. package/lib/esm/pointcloud/model/TileIndex.js.map +1 -1
  230. package/lib/esm/pointcloud/render/Block.js +6 -0
  231. package/lib/esm/pointcloud/render/Block.js.map +1 -1
  232. package/lib/esm/pointcloud/render/DataManager.js +36 -6
  233. package/lib/esm/pointcloud/render/DataManager.js.map +1 -1
  234. package/lib/esm/pointcloud/render/FrameData.js +8 -0
  235. package/lib/esm/pointcloud/render/FrameData.js.map +1 -1
  236. package/lib/esm/pointcloud/render/Level.js +12 -0
  237. package/lib/esm/pointcloud/render/Level.js.map +1 -1
  238. package/lib/esm/pointcloud/render/TileLoadSorter.js +9 -4
  239. package/lib/esm/pointcloud/render/TileLoadSorter.js.map +1 -1
  240. package/lib/esm/pointcloud/render/ViewTree.js +12 -4
  241. package/lib/esm/pointcloud/render/ViewTree.js.map +1 -1
  242. package/lib/esm/spatial/crs/CRSManager.js +2 -2
  243. package/lib/esm/spatial/crs/CRSManager.js.map +1 -1
  244. package/lib/esm/spatial/ecrs/Axis.js +12 -0
  245. package/lib/esm/spatial/ecrs/Axis.js.map +1 -1
  246. package/lib/esm/spatial/ecrs/CRS.js +68 -34
  247. package/lib/esm/spatial/ecrs/CRS.js.map +1 -1
  248. package/lib/esm/spatial/ecrs/CoordinateSystem.js +20 -2
  249. package/lib/esm/spatial/ecrs/CoordinateSystem.js.map +1 -1
  250. package/lib/esm/spatial/ecrs/DataFileUnit.js +1 -1
  251. package/lib/esm/spatial/ecrs/DataFileUnit.js.map +1 -1
  252. package/lib/esm/spatial/ecrs/Datum.js +16 -4
  253. package/lib/esm/spatial/ecrs/Datum.js.map +1 -1
  254. package/lib/esm/spatial/ecrs/Ellipsoid.js +18 -0
  255. package/lib/esm/spatial/ecrs/Ellipsoid.js.map +1 -1
  256. package/lib/esm/spatial/ecrs/OnlineEngine.js +2 -0
  257. package/lib/esm/spatial/ecrs/OnlineEngine.js.map +1 -1
  258. package/lib/esm/spatial/ecrs/OnlineRegistry.js +6 -2
  259. package/lib/esm/spatial/ecrs/OnlineRegistry.js.map +1 -1
  260. package/lib/esm/spatial/ecrs/Operation.js +28 -6
  261. package/lib/esm/spatial/ecrs/Operation.js.map +1 -1
  262. package/lib/esm/spatial/ecrs/OperationMethod.js +6 -0
  263. package/lib/esm/spatial/ecrs/OperationMethod.js.map +1 -1
  264. package/lib/esm/spatial/ecrs/ParameterValue.js +6 -0
  265. package/lib/esm/spatial/ecrs/ParameterValue.js.map +1 -1
  266. package/lib/esm/spatial/ecrs/ParameterValueList.js +2 -0
  267. package/lib/esm/spatial/ecrs/ParameterValueList.js.map +1 -1
  268. package/lib/esm/spatial/ecrs/PrimeMeridian.js +8 -0
  269. package/lib/esm/spatial/ecrs/PrimeMeridian.js.map +1 -1
  270. package/lib/esm/spatial/ecrs/Registry.js +17 -17
  271. package/lib/esm/spatial/ecrs/Registry.js.map +1 -1
  272. package/lib/esm/spatial/ecrs/Transform.js +11 -11
  273. package/lib/esm/spatial/ecrs/Transform.js.map +1 -1
  274. package/lib/esm/spatial/ecrs/Unit.js +40 -24
  275. package/lib/esm/spatial/ecrs/Unit.js.map +1 -1
  276. package/lib/esm/spatial/ecrs/WellKnownText.js +8 -8
  277. package/lib/esm/spatial/ecrs/WellKnownText.js.map +1 -1
  278. package/lib/esm/spatial/ecrs/WellKnownTextNode.js +4 -0
  279. package/lib/esm/spatial/ecrs/WellKnownTextNode.js.map +1 -1
  280. package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js +36 -2
  281. package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
  282. package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js +23 -2
  283. package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
  284. package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js +4 -2
  285. package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
  286. package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js +12 -2
  287. package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
  288. package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js +29 -6
  289. package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
  290. package/lib/esm/spatial/ecrs/projection/Mercator1SP.js +14 -4
  291. package/lib/esm/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
  292. package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js +38 -4
  293. package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
  294. package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js +24 -4
  295. package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
  296. package/lib/esm/spatial/ecrs/projection/TransverseMercator.js +28 -4
  297. package/lib/esm/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
  298. package/lib/esm/spatial/ecrs/transformation/PositionVector.js +12 -2
  299. package/lib/esm/spatial/ecrs/transformation/PositionVector.js.map +1 -1
  300. package/lib/esm/spatial/geom/Bounds.js +3 -0
  301. package/lib/esm/spatial/geom/Bounds.js.map +1 -1
  302. package/lib/esm/spatial/geom/Coordinate.js +3 -0
  303. package/lib/esm/spatial/geom/Coordinate.js.map +1 -1
  304. package/lib/esm/spatial/geom/Line.js +4 -0
  305. package/lib/esm/spatial/geom/Line.js.map +1 -1
  306. package/lib/esm/spatial/geom/Transform.js +2 -0
  307. package/lib/esm/spatial/geom/Transform.js.map +1 -1
  308. package/lib/esm/system/buffer/ABuffer.js +4 -0
  309. package/lib/esm/system/buffer/ABuffer.js.map +1 -1
  310. package/lib/esm/system/buffer/Float32Buffer.js +8 -2
  311. package/lib/esm/system/buffer/Float32Buffer.js.map +1 -1
  312. package/lib/esm/system/buffer/Uint16Buffer.js +8 -2
  313. package/lib/esm/system/buffer/Uint16Buffer.js.map +1 -1
  314. package/lib/esm/system/buffer/Uint8Buffer.js +8 -2
  315. package/lib/esm/system/buffer/Uint8Buffer.js.map +1 -1
  316. package/lib/esm/system/collection/AList.js +1 -0
  317. package/lib/esm/system/collection/AList.js.map +1 -1
  318. package/lib/esm/system/collection/IntMap.js +1 -0
  319. package/lib/esm/system/collection/IntMap.js.map +1 -1
  320. package/lib/esm/system/collection/StringMap.js +1 -0
  321. package/lib/esm/system/collection/StringMap.js.map +1 -1
  322. package/lib/esm/system/io/ABufferInStream.js +5 -0
  323. package/lib/esm/system/io/ABufferInStream.js.map +1 -1
  324. package/lib/esm/system/runtime/ALong.js +30 -26
  325. package/lib/esm/system/runtime/ALong.js.map +1 -1
  326. package/lib/esm/system/runtime/ASystem.js +1 -1
  327. package/lib/esm/system/runtime/ASystem.js.map +1 -1
  328. package/lib/esm/system/runtime/Downloader.js +2 -2
  329. package/lib/esm/system/runtime/Downloader.js.map +1 -1
  330. package/lib/esm/system/runtime/Message.js +2 -2
  331. package/lib/esm/system/runtime/Message.js.map +1 -1
  332. package/lib/esm/system/runtime/Numbers.js +6 -6
  333. package/lib/esm/system/runtime/Numbers.js.map +1 -1
  334. package/lib/esm/system/runtime/Strings.js +14 -14
  335. package/lib/esm/system/runtime/Strings.js.map +1 -1
  336. package/lib/esm/system/storage/CacheList.js +8 -0
  337. package/lib/esm/system/storage/CacheList.js.map +1 -1
  338. package/lib/esm/system/storage/CachedItem.js +6 -0
  339. package/lib/esm/system/storage/CachedItem.js.map +1 -1
  340. package/lib/esm/system/storage/ContentLoader.js +14 -2
  341. package/lib/esm/system/storage/ContentLoader.js.map +1 -1
  342. package/lib/esm/system/storage/FileContent.js +4 -0
  343. package/lib/esm/system/storage/FileContent.js.map +1 -1
  344. package/lib/esm/system/storage/FileRange.js +4 -0
  345. package/lib/esm/system/storage/FileRange.js.map +1 -1
  346. package/lib/esm/system/storage/PageCachedFile.js +8 -0
  347. package/lib/esm/system/storage/PageCachedFile.js.map +1 -1
  348. package/lib/esm/system/storage/UrlFS.js +6 -0
  349. package/lib/esm/system/storage/UrlFS.js.map +1 -1
  350. package/package.json +10 -10
@@ -1 +1 @@
1
- {"version":3,"file":"GridIndex.js","sourceRoot":"","s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,GAAG,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnD,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnD,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC;IAED;;;;OAIG;IACI,IAAI,CAAC,KAAgB;QACxB,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC;IAED;;;OAGG;IACI,IAAI;QACP,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACI,MAAM;QACT,OAAO,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;IAClE,CAAC;IAED;;;OAGG;IACI,QAAQ;QACX,OAAO,eAAe,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;IACxE,CAAC;CACJ","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { Numbers } from \"../../system/runtime/Numbers\";\n\n/** @internal */\nexport class GridIndex {\n /** The x index */\n public x: int32;\n /** The y index */\n public y: int32;\n /** The z index */\n public z: int32;\n\n /**\n * Create a new point.\n * @param x the x index.\n * @param y the y index.\n * @param z the z index.\n */\n public constructor(x: int32, y: int32, z: int32) {\n this.x = x;\n this.y = y;\n this.z = z;\n }\n\n /**\n * Get the square distance to another cell.\n * @param other the other cell.\n * @return the square distance.\n */\n public distanceSq(other: GridIndex): int32 {\n let dx: int32 = (other.x - this.x);\n let dy: int32 = (other.y - this.y);\n let dz: int32 = (other.z - this.z);\n return (dx * dx) + (dy * dy) + (dz * dz);\n }\n\n /**\n * Get the distance to another cell.\n * @param other the other cell.\n * @return the distance.\n */\n public distance(other: GridIndex): float64 {\n return Numbers.sqrt(this.distanceSq(other));\n }\n\n /**\n * Get a next-level index.\n * @param index the index at the current level.\n * @return the next-level index.\n */\n private static getNextLevelIndex1(index: int32): int32 {\n if (index < 0) return Numbers.divInt(index - 1, 2);\n return Numbers.divInt(index, 2);\n }\n\n /**\n * Get a next-level index.\n * @param nextLevel the index at the next level.\n */\n public getNextLevelIndex(nextLevel: GridIndex): void {\n nextLevel.x = GridIndex.getNextLevelIndex1(this.x);\n nextLevel.y = GridIndex.getNextLevelIndex1(this.y);\n nextLevel.z = GridIndex.getNextLevelIndex1(this.z);\n }\n\n /**\n * Does this point equal another?\n * @param other the other point.\n * @return true if equal.\n */\n public same(other: GridIndex): boolean {\n return (other.x == this.x && other.y == this.y && other.z == this.z);\n }\n\n /**\n * Create a copy.\n * @return a copy.\n */\n public copy(): GridIndex {\n return new GridIndex(this.x, this.y, this.z);\n }\n\n /**\n * Get the unique key.\n * @return the unique key.\n */\n public getKey(): string {\n return \"{x:\" + this.x + \",y:\" + this.y + \",z:\" + this.z + \"}\";\n }\n\n /**\n * The standard toString method.\n * @see Object#toString\n */\n public toString(): string {\n return \"[GridPoint3D:\" + this.x + \",\" + this.y + \",\" + this.z + \"]\";\n }\n}\n"]}
1
+ {"version":3,"file":"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C,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACpC,CAAC;IAED;;;OAGG;IACI,iBAAiB,CAAC,SAAoB;QACzC,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnD,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnD,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC;IAED;;;;OAIG;IACI,IAAI,CAAC,KAAgB;QACxB,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC;IAED;;;OAGG;IACI,IAAI;QACP,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACI,MAAM;QACT,OAAO,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;IAClE,CAAC;IAED;;;OAGG;IACI,QAAQ;QACX,OAAO,eAAe,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;IACxE,CAAC;CACJ","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { Numbers } from \"../../system/runtime/Numbers\";\n\n/** @internal */\nexport class GridIndex {\n /** The x index */\n public x: int32;\n /** The y index */\n public y: int32;\n /** The z index */\n public z: int32;\n\n /**\n * Create a new point.\n * @param x the x index.\n * @param y the y index.\n * @param z the z index.\n */\n public constructor(x: int32, y: int32, z: int32) {\n this.x = x;\n this.y = y;\n this.z = z;\n }\n\n /**\n * Get the square distance to another cell.\n * @param other the other cell.\n * @return the square distance.\n */\n public distanceSq(other: GridIndex): int32 {\n let dx: int32 = (other.x - this.x);\n let dy: int32 = (other.y - this.y);\n let dz: int32 = (other.z - this.z);\n return (dx * dx) + (dy * dy) + (dz * dz);\n }\n\n /**\n * Get the distance to another cell.\n * @param other the other cell.\n * @return the distance.\n */\n public distance(other: GridIndex): float64 {\n return Numbers.sqrt(this.distanceSq(other));\n }\n\n /**\n * Get a next-level index.\n * @param index the index at the current level.\n * @return the next-level index.\n */\n private static getNextLevelIndex1(index: int32): int32 {\n if (index < 0) return Numbers.divInt(index - 1, 2);\n return Numbers.divInt(index, 2);\n }\n\n /**\n * Get a next-level index.\n * @param nextLevel the index at the next level.\n */\n public getNextLevelIndex(nextLevel: GridIndex): void {\n nextLevel.x = GridIndex.getNextLevelIndex1(this.x);\n nextLevel.y = GridIndex.getNextLevelIndex1(this.y);\n nextLevel.z = GridIndex.getNextLevelIndex1(this.z);\n }\n\n /**\n * Does this point equal another?\n * @param other the other point.\n * @return true if equal.\n */\n public same(other: GridIndex): boolean {\n return (other.x == this.x && other.y == this.y && other.z == this.z);\n }\n\n /**\n * Create a copy.\n * @return a copy.\n */\n public copy(): GridIndex {\n return new GridIndex(this.x, this.y, this.z);\n }\n\n /**\n * Get the unique key.\n * @return the unique key.\n */\n public getKey(): string {\n return \"{x:\" + this.x + \",y:\" + this.y + \",z:\" + this.z + \"}\";\n }\n\n /**\n * The standard toString method.\n * @see Object#toString\n */\n public toString(): string {\n return \"[GridPoint3D:\" + this.x + \",\" + this.y + \",\" + this.z + \"]\";\n }\n}\n"]}
@@ -17,6 +17,20 @@ import { AttributeValue } from "./AttributeValue";
17
17
  */
18
18
  /** @internal */
19
19
  export class PointAttribute {
20
+ /** The name of the attribute */
21
+ _name;
22
+ /** The description of the attribute */
23
+ _description;
24
+ /** The type of the attribute */
25
+ _type;
26
+ /** The default value of the attribute */
27
+ _defaultValue;
28
+ /** The optional minimum value of the attribute */
29
+ _minValue;
30
+ /** The optional maximum value of the attribute */
31
+ _maxValue;
32
+ /** Is this a standard attribute? (color/intensity/weight)? */
33
+ _standardAttribute;
20
34
  /**
21
35
  * Create a new point attribute.
22
36
  * @param name the name of the attribute.
@@ -1 +1 @@
1
- {"version":3,"file":"PointAttribute.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/PointAttribute.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,cAAc;IAiBvB;;;;;;OAMG;IACH,YAAmB,IAAY,EAAE,WAAmB,EAAE,IAAW,EAAE,YAA4B;QAC3F,IAAI,YAAY,IAAI,IAAI;YAAE,YAAY,GAAG,cAAc,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC5E,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE,IAAI,IAAI,EAAE,gBAAgB,GAAG,YAAY,GAAG,iCAAiC,GAAG,IAAI,CAAC,CAAC;QAC5H,IAAI,CAA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CAAC,OAAO,EAAE,CAAC;gBAAE,OAAO,CAAC,CAAC;QACjH,OAAO,CAAC,CAAC,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,oBAAoB,CAAC,UAAiC,EAAE,aAAqB;QACvF,OAAO,CAAC,cAAc,CAAC,eAAe,CAAC,UAAU,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,gBAAgB,CAAC,UAAiC,EAAE,SAAyB;QACvF,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC,UAAU,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IACpE,CAAC;CACJ","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { AList } from \"../../system/collection/AList\";\nimport { ALong } from \"../../system/runtime/ALong\";\nimport { ASystem } from \"../../system/runtime/ASystem\";\nimport { Strings } from \"../../system/runtime/Strings\";\nimport { AttributeTypes } from \"./AttributeTypes\";\nimport { AttributeValue } from \"./AttributeValue\";\n\n/**\n * Class PointAttribute defines an attribute of a point.\n *\n * @version 1.0 August 2013\n */\n/** @internal */\nexport class PointAttribute {\n /** The name of the attribute */\n private _name: string;\n /** The description of the attribute */\n private _description: string;\n /** The type of the attribute */\n private _type: int32;\n /** The default value of the attribute */\n private _defaultValue: AttributeValue;\n /** The optional minimum value of the attribute */\n private _minValue: AttributeValue;\n /** The optional maximum value of the attribute */\n private _maxValue: AttributeValue;\n\n /** Is this a standard attribute? (color/intensity/weight)? */\n private _standardAttribute: boolean;\n\n /**\n * Create a new point attribute.\n * @param name the name of the attribute.\n * @param description the description of the attribute.\n * @param type the type of the attribute.\n * @param default value the default value of the attribute (use null to create a default value).\n */\n public constructor(name: string, description: string, type: int32, defaultValue: AttributeValue) {\n if (defaultValue == null) defaultValue = AttributeValue.createDefault(type);\n ASystem.assert0(defaultValue.getType() == type, \"Default value \" + defaultValue + \" does not match attribute type \" + type);\n this._name = name;\n this._description = description;\n this._type = type;\n this._defaultValue = defaultValue;\n this._minValue = null;\n this._maxValue = null;\n this._standardAttribute = false;\n }\n\n /**\n * Get the name.\n * @return the name.\n */\n public getName(): string {\n return this._name;\n }\n\n /**\n * Set the name.\n * @param name the new name.\n */\n public setName(name: string): void {\n this._name = name;\n }\n\n /**\n * Check the name.\n * @param name the name to check.\n * @return true if equal.\n */\n public hasName(name: string): boolean {\n if (name == null) return false;\n if (Strings.equalsIgnoreCase(name, this._name)) return true;\n return false;\n }\n\n /**\n * Get the description.\n * @return the description.\n */\n public getDescription(): string {\n return this._description;\n }\n\n /**\n * Get the type.\n * @return the type.\n */\n public getType(): int32 {\n return this._type;\n }\n\n /**\n * Get the byte-size of the type.\n * @return the byte-size of the type.\n */\n public getTypeByteSize(): int32 {\n return PointAttribute.getByteSize(this._type, 1);\n }\n\n /**\n * Get the byte-size of a number of values.\n * @param attributeCount the number of values.\n * @return the byte-size.\n */\n public getTypeByteSizeForCount(attributeCount: int32): int32 {\n return PointAttribute.getByteSize(this._type, attributeCount);\n }\n\n /**\n * Get the byte-size of a number of values.\n * @param attributeCount the number of values.\n * @return the byte-size.\n */\n public getTypeByteSizeForLongCount(attributeCount: ALong): ALong {\n return PointAttribute.getByteSizeForCount(this._type, attributeCount);\n }\n\n /**\n * Get the default value.\n * @return the default value.\n */\n public getDefaultValue(): AttributeValue {\n return this._defaultValue;\n }\n\n /**\n * Get the optional minimum value.\n * @return the optional minimum value.\n */\n public getMinValue(): AttributeValue {\n return this._minValue;\n }\n\n /**\n * Set the optional minimum value.\n * @param value the optional minimum value.\n */\n public setMinValue(value: AttributeValue): void {\n this._minValue = value;\n }\n\n /**\n * Get the optional maximum value.\n * @return the optional maximum value.\n */\n public getMaxValue(): AttributeValue {\n return this._maxValue;\n }\n\n /**\n * Set the optional maximum value.\n * @param value the optional maximum value.\n */\n public setMaxValue(value: AttributeValue): void {\n this._maxValue = value;\n }\n\n /**\n * Set the description of a copy.\n * @param description the new description.\n * @return the copy.\n */\n public setDescription(description: string): PointAttribute {\n return new PointAttribute(this._name, description, this._type, this._defaultValue);\n }\n\n /**\n * Is this a standard attribute (like color/intensity/weight)?\n * @return true for a standard attribute.\n */\n public isStandardAttribute(): boolean {\n return this._standardAttribute;\n }\n\n /**\n * Make this a standard attribute (like color/intensity/weight).\n * @param standard true if this is a standard attribute.\n * @return this attribute for convenience.\n */\n public setStandardAttribute(standard: boolean): PointAttribute {\n this._standardAttribute = standard;\n return this;\n }\n\n /**\n * The standard toString method.\n * @see Object#toString\n */\n public toString(): string {\n return \"[PointAttribute:name='\" + this._name + \"',type=\" + PointAttribute.getTypeName(this._type) + \",default=\" + this._defaultValue + \"]\";\n }\n\n /**\n * Get the name of a type.\n * @param attributeType the type of attributes.\n * @return the name.\n */\n public static getTypeName(attributeType: int32): string {\n if (attributeType <= 0) return \"none\";\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) return \"boolean\";\n if (attributeType == AttributeTypes.TYPE_INT1) return \"int1\";\n if (attributeType == AttributeTypes.TYPE_INT2) return \"int2\";\n if (attributeType == AttributeTypes.TYPE_INT4) return \"int4\";\n if (attributeType == AttributeTypes.TYPE_INT8) return \"int8\";\n if (attributeType == AttributeTypes.TYPE_FLOAT4) return \"float4\";\n if (attributeType == AttributeTypes.TYPE_FLOAT8) return \"float8\";\n if (attributeType == AttributeTypes.TYPE_COLOR) return \"color\";\n return \"\" + attributeType;\n }\n\n /**\n * Get the bit size for a type.\n * @param attributeType the type of attributes.\n * @return the number of bits.\n */\n public static getBitSize(attributeType: int32): int32 {\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) return 1;\n if (attributeType == AttributeTypes.TYPE_INT1) return 8;\n if (attributeType == AttributeTypes.TYPE_INT2) return 16;\n if (attributeType == AttributeTypes.TYPE_INT4) return 32;\n if (attributeType == AttributeTypes.TYPE_INT8) return 64;\n if (attributeType == AttributeTypes.TYPE_FLOAT4) return 32;\n if (attributeType == AttributeTypes.TYPE_FLOAT8) return 64;\n if (attributeType == AttributeTypes.TYPE_COLOR) return 24;\n return 0;\n }\n\n /**\n * Get the byte size for a number of attributes.\n * @param attributeType the type of attributes.\n * @param attributeCount the number of attributes.\n */\n public static getByteSize(attributeType: int32, attributeCount: int32): int32 {\n if (attributeCount <= 0) return 0;\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) return ((attributeCount - 1) >> 3) + 1;\n if (attributeType == AttributeTypes.TYPE_INT1) return (attributeCount);\n if (attributeType == AttributeTypes.TYPE_INT2) return (attributeCount << 1);\n if (attributeType == AttributeTypes.TYPE_INT4) return (attributeCount << 2);\n if (attributeType == AttributeTypes.TYPE_INT8) return (attributeCount << 3);\n if (attributeType == AttributeTypes.TYPE_FLOAT4) return (attributeCount << 2);\n if (attributeType == AttributeTypes.TYPE_FLOAT8) return (attributeCount << 3);\n if (attributeType == AttributeTypes.TYPE_COLOR) return (attributeCount * 3);\n return 0;\n }\n\n /**\n * Get the byte size for a number of attributes.\n * @param attributeType the type of attributes.\n * @param attributeCount the number of attributes.\n */\n public static getByteSizeForCount(attributeType: int32, attributeCount: ALong): ALong {\n if (attributeCount.isPositive() == false) return ALong.ZERO;\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) return attributeCount.subInt(1).divInt(8).addInt(1);\n if (attributeType == AttributeTypes.TYPE_INT1) return attributeCount.mulInt(1);\n if (attributeType == AttributeTypes.TYPE_INT2) return attributeCount.mulInt(2);\n if (attributeType == AttributeTypes.TYPE_INT4) return attributeCount.mulInt(4);\n if (attributeType == AttributeTypes.TYPE_INT8) return attributeCount.mulInt(8);\n if (attributeType == AttributeTypes.TYPE_FLOAT4) return attributeCount.mulInt(4);\n if (attributeType == AttributeTypes.TYPE_FLOAT8) return attributeCount.mulInt(8);\n if (attributeType == AttributeTypes.TYPE_COLOR) return attributeCount.mulInt(3);\n return ALong.ZERO;\n }\n\n /**\n * Find the index of an attribute.\n * @param attributes the list of attributes.\n * @param attributeName the name of an attribute.\n * @return the index (negative if not found).\n */\n public static indexOfName(attributes: Array<PointAttribute>, attributeName: string): int32 {\n if (attributes == null) return -1;\n if (attributeName == null) return -1;\n for (let i: number = 0; i < attributes.length; i++) if (attributes[i].hasName(attributeName)) return i;\n return -1;\n }\n\n /**\n * Find the index of an attribute.\n * @param attributes the list of attributes.\n * @param attribute the definition of an attribute.\n * @return the index (negative if not found).\n */\n public static indexOf(attributes: Array<PointAttribute>, attribute: PointAttribute): int32 {\n if (attributes == null) return -1;\n if (attribute == null) return -1;\n for (let i: number = 0; i < attributes.length; i++) if (attributes[i].hasName(attribute.getName())) return i;\n return -1;\n }\n\n /**\n * Check if an attribute exists.\n * @param attributes the list of attributes.\n * @param attributeName the name of an attribute.\n * @return true if found.\n */\n public static hasAttributeName(attributes: Array<PointAttribute>, attributeName: string): boolean {\n return (PointAttribute.indexOfName(attributes, attributeName) >= 0);\n }\n\n /**\n * Check if an attribute exists.\n * @param attributes the list of attributes.\n * @param attribute the definition of an attribute.\n * @return true if found.\n */\n public static hasAttribute(attributes: Array<PointAttribute>, attribute: PointAttribute): boolean {\n return (PointAttribute.indexOf(attributes, attribute) >= 0);\n }\n\n /**\n * Find the index of an attribute.\n * @param attributes the list of attributes.\n * @param attributeName the name of an attribute.\n * @return the index (negative if not found).\n */\n public static listIndexOfName(attributes: AList<PointAttribute>, attributeName: string): int32 {\n if (attributes == null) return -1;\n if (attributeName == null) return -1;\n for (let i: number = 0; i < attributes.size(); i++) if (attributes.get(i).hasName(attributeName)) return i;\n return -1;\n }\n\n /**\n * Find the index of an attribute.\n * @param attributes the list of attributes.\n * @param attribute the definition of an attribute.\n * @return the index (negative if not found).\n */\n public static listIndexOf(attributes: AList<PointAttribute>, attribute: PointAttribute): int32 {\n if (attributes == null) return -1;\n if (attribute == null) return -1;\n for (let i: number = 0; i < attributes.size(); i++) if (attributes.get(i).hasName(attribute.getName())) return i;\n return -1;\n }\n\n /**\n * Check if an attribute exists.\n * @param attributes the list of attributes.\n * @param attributeName the name of an attribute.\n * @return true if found.\n */\n public static listHasAttributeName(attributes: AList<PointAttribute>, attributeName: string): boolean {\n return (PointAttribute.listIndexOfName(attributes, attributeName) >= 0);\n }\n\n /**\n * Check if an attribute exists.\n * @param attributes the list of attributes.\n * @param attribute the definition of an attribute.\n * @return true if found.\n */\n public static listHasAttribute(attributes: AList<PointAttribute>, attribute: PointAttribute): boolean {\n return (PointAttribute.listIndexOf(attributes, attribute) >= 0);\n }\n}\n"]}
1
+ {"version":3,"file":"PointAttribute.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/PointAttribute.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,cAAc;IACvB,gCAAgC;IACxB,KAAK,CAAS;IACtB,uCAAuC;IAC/B,YAAY,CAAS;IAC7B,gCAAgC;IACxB,KAAK,CAAQ;IACrB,yCAAyC;IACjC,aAAa,CAAiB;IACtC,kDAAkD;IAC1C,SAAS,CAAiB;IAClC,kDAAkD;IAC1C,SAAS,CAAiB;IAElC,8DAA8D;IACtD,kBAAkB,CAAU;IAEpC;;;;;;OAMG;IACH,YAAmB,IAAY,EAAE,WAAmB,EAAE,IAAW,EAAE,YAA4B;QAC3F,IAAI,YAAY,IA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I,SAAS,IAAI,IAAI;YAAE,OAAO,CAAC,CAAC,CAAC;QACjC,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE;YAAE,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;gBAAE,OAAO,CAAC,CAAC;QACjH,OAAO,CAAC,CAAC,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,oBAAoB,CAAC,UAAiC,EAAE,aAAqB;QACvF,OAAO,CAAC,cAAc,CAAC,eAAe,CAAC,UAAU,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,gBAAgB,CAAC,UAAiC,EAAE,SAAyB;QACvF,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC,UAAU,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IACpE,CAAC;CACJ","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { AList } from \"../../system/collection/AList\";\nimport { ALong } from \"../../system/runtime/ALong\";\nimport { ASystem } from \"../../system/runtime/ASystem\";\nimport { Strings } from \"../../system/runtime/Strings\";\nimport { AttributeTypes } from \"./AttributeTypes\";\nimport { AttributeValue } from \"./AttributeValue\";\n\n/**\n * Class PointAttribute defines an attribute of a point.\n *\n * @version 1.0 August 2013\n */\n/** @internal */\nexport class PointAttribute {\n /** The name of the attribute */\n private _name: string;\n /** The description of the attribute */\n private _description: string;\n /** The type of the attribute */\n private _type: int32;\n /** The default value of the attribute */\n private _defaultValue: AttributeValue;\n /** The optional minimum value of the attribute */\n private _minValue: AttributeValue;\n /** The optional maximum value of the attribute */\n private _maxValue: AttributeValue;\n\n /** Is this a standard attribute? (color/intensity/weight)? */\n private _standardAttribute: boolean;\n\n /**\n * Create a new point attribute.\n * @param name the name of the attribute.\n * @param description the description of the attribute.\n * @param type the type of the attribute.\n * @param default value the default value of the attribute (use null to create a default value).\n */\n public constructor(name: string, description: string, type: int32, defaultValue: AttributeValue) {\n if (defaultValue == null) defaultValue = AttributeValue.createDefault(type);\n ASystem.assert0(defaultValue.getType() == type, \"Default value \" + defaultValue + \" does not match attribute type \" + type);\n this._name = name;\n this._description = description;\n this._type = type;\n this._defaultValue = defaultValue;\n this._minValue = null;\n this._maxValue = null;\n this._standardAttribute = false;\n }\n\n /**\n * Get the name.\n * @return the name.\n */\n public getName(): string {\n return this._name;\n }\n\n /**\n * Set the name.\n * @param name the new name.\n */\n public setName(name: string): void {\n this._name = name;\n }\n\n /**\n * Check the name.\n * @param name the name to check.\n * @return true if equal.\n */\n public hasName(name: string): boolean {\n if (name == null) return false;\n if (Strings.equalsIgnoreCase(name, this._name)) return true;\n return false;\n }\n\n /**\n * Get the description.\n * @return the description.\n */\n public getDescription(): string {\n return this._description;\n }\n\n /**\n * Get the type.\n * @return the type.\n */\n public getType(): int32 {\n return this._type;\n }\n\n /**\n * Get the byte-size of the type.\n * @return the byte-size of the type.\n */\n public getTypeByteSize(): int32 {\n return PointAttribute.getByteSize(this._type, 1);\n }\n\n /**\n * Get the byte-size of a number of values.\n * @param attributeCount the number of values.\n * @return the byte-size.\n */\n public getTypeByteSizeForCount(attributeCount: int32): int32 {\n return PointAttribute.getByteSize(this._type, attributeCount);\n }\n\n /**\n * Get the byte-size of a number of values.\n * @param attributeCount the number of values.\n * @return the byte-size.\n */\n public getTypeByteSizeForLongCount(attributeCount: ALong): ALong {\n return PointAttribute.getByteSizeForCount(this._type, attributeCount);\n }\n\n /**\n * Get the default value.\n * @return the default value.\n */\n public getDefaultValue(): AttributeValue {\n return this._defaultValue;\n }\n\n /**\n * Get the optional minimum value.\n * @return the optional minimum value.\n */\n public getMinValue(): AttributeValue {\n return this._minValue;\n }\n\n /**\n * Set the optional minimum value.\n * @param value the optional minimum value.\n */\n public setMinValue(value: AttributeValue): void {\n this._minValue = value;\n }\n\n /**\n * Get the optional maximum value.\n * @return the optional maximum value.\n */\n public getMaxValue(): AttributeValue {\n return this._maxValue;\n }\n\n /**\n * Set the optional maximum value.\n * @param value the optional maximum value.\n */\n public setMaxValue(value: AttributeValue): void {\n this._maxValue = value;\n }\n\n /**\n * Set the description of a copy.\n * @param description the new description.\n * @return the copy.\n */\n public setDescription(description: string): PointAttribute {\n return new PointAttribute(this._name, description, this._type, this._defaultValue);\n }\n\n /**\n * Is this a standard attribute (like color/intensity/weight)?\n * @return true for a standard attribute.\n */\n public isStandardAttribute(): boolean {\n return this._standardAttribute;\n }\n\n /**\n * Make this a standard attribute (like color/intensity/weight).\n * @param standard true if this is a standard attribute.\n * @return this attribute for convenience.\n */\n public setStandardAttribute(standard: boolean): PointAttribute {\n this._standardAttribute = standard;\n return this;\n }\n\n /**\n * The standard toString method.\n * @see Object#toString\n */\n public toString(): string {\n return \"[PointAttribute:name='\" + this._name + \"',type=\" + PointAttribute.getTypeName(this._type) + \",default=\" + this._defaultValue + \"]\";\n }\n\n /**\n * Get the name of a type.\n * @param attributeType the type of attributes.\n * @return the name.\n */\n public static getTypeName(attributeType: int32): string {\n if (attributeType <= 0) return \"none\";\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) return \"boolean\";\n if (attributeType == AttributeTypes.TYPE_INT1) return \"int1\";\n if (attributeType == AttributeTypes.TYPE_INT2) return \"int2\";\n if (attributeType == AttributeTypes.TYPE_INT4) return \"int4\";\n if (attributeType == AttributeTypes.TYPE_INT8) return \"int8\";\n if (attributeType == AttributeTypes.TYPE_FLOAT4) return \"float4\";\n if (attributeType == AttributeTypes.TYPE_FLOAT8) return \"float8\";\n if (attributeType == AttributeTypes.TYPE_COLOR) return \"color\";\n return \"\" + attributeType;\n }\n\n /**\n * Get the bit size for a type.\n * @param attributeType the type of attributes.\n * @return the number of bits.\n */\n public static getBitSize(attributeType: int32): int32 {\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) return 1;\n if (attributeType == AttributeTypes.TYPE_INT1) return 8;\n if (attributeType == AttributeTypes.TYPE_INT2) return 16;\n if (attributeType == AttributeTypes.TYPE_INT4) return 32;\n if (attributeType == AttributeTypes.TYPE_INT8) return 64;\n if (attributeType == AttributeTypes.TYPE_FLOAT4) return 32;\n if (attributeType == AttributeTypes.TYPE_FLOAT8) return 64;\n if (attributeType == AttributeTypes.TYPE_COLOR) return 24;\n return 0;\n }\n\n /**\n * Get the byte size for a number of attributes.\n * @param attributeType the type of attributes.\n * @param attributeCount the number of attributes.\n */\n public static getByteSize(attributeType: int32, attributeCount: int32): int32 {\n if (attributeCount <= 0) return 0;\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) return ((attributeCount - 1) >> 3) + 1;\n if (attributeType == AttributeTypes.TYPE_INT1) return (attributeCount);\n if (attributeType == AttributeTypes.TYPE_INT2) return (attributeCount << 1);\n if (attributeType == AttributeTypes.TYPE_INT4) return (attributeCount << 2);\n if (attributeType == AttributeTypes.TYPE_INT8) return (attributeCount << 3);\n if (attributeType == AttributeTypes.TYPE_FLOAT4) return (attributeCount << 2);\n if (attributeType == AttributeTypes.TYPE_FLOAT8) return (attributeCount << 3);\n if (attributeType == AttributeTypes.TYPE_COLOR) return (attributeCount * 3);\n return 0;\n }\n\n /**\n * Get the byte size for a number of attributes.\n * @param attributeType the type of attributes.\n * @param attributeCount the number of attributes.\n */\n public static getByteSizeForCount(attributeType: int32, attributeCount: ALong): ALong {\n if (attributeCount.isPositive() == false) return ALong.ZERO;\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) return attributeCount.subInt(1).divInt(8).addInt(1);\n if (attributeType == AttributeTypes.TYPE_INT1) return attributeCount.mulInt(1);\n if (attributeType == AttributeTypes.TYPE_INT2) return attributeCount.mulInt(2);\n if (attributeType == AttributeTypes.TYPE_INT4) return attributeCount.mulInt(4);\n if (attributeType == AttributeTypes.TYPE_INT8) return attributeCount.mulInt(8);\n if (attributeType == AttributeTypes.TYPE_FLOAT4) return attributeCount.mulInt(4);\n if (attributeType == AttributeTypes.TYPE_FLOAT8) return attributeCount.mulInt(8);\n if (attributeType == AttributeTypes.TYPE_COLOR) return attributeCount.mulInt(3);\n return ALong.ZERO;\n }\n\n /**\n * Find the index of an attribute.\n * @param attributes the list of attributes.\n * @param attributeName the name of an attribute.\n * @return the index (negative if not found).\n */\n public static indexOfName(attributes: Array<PointAttribute>, attributeName: string): int32 {\n if (attributes == null) return -1;\n if (attributeName == null) return -1;\n for (let i: number = 0; i < attributes.length; i++) if (attributes[i].hasName(attributeName)) return i;\n return -1;\n }\n\n /**\n * Find the index of an attribute.\n * @param attributes the list of attributes.\n * @param attribute the definition of an attribute.\n * @return the index (negative if not found).\n */\n public static indexOf(attributes: Array<PointAttribute>, attribute: PointAttribute): int32 {\n if (attributes == null) return -1;\n if (attribute == null) return -1;\n for (let i: number = 0; i < attributes.length; i++) if (attributes[i].hasName(attribute.getName())) return i;\n return -1;\n }\n\n /**\n * Check if an attribute exists.\n * @param attributes the list of attributes.\n * @param attributeName the name of an attribute.\n * @return true if found.\n */\n public static hasAttributeName(attributes: Array<PointAttribute>, attributeName: string): boolean {\n return (PointAttribute.indexOfName(attributes, attributeName) >= 0);\n }\n\n /**\n * Check if an attribute exists.\n * @param attributes the list of attributes.\n * @param attribute the definition of an attribute.\n * @return true if found.\n */\n public static hasAttribute(attributes: Array<PointAttribute>, attribute: PointAttribute): boolean {\n return (PointAttribute.indexOf(attributes, attribute) >= 0);\n }\n\n /**\n * Find the index of an attribute.\n * @param attributes the list of attributes.\n * @param attributeName the name of an attribute.\n * @return the index (negative if not found).\n */\n public static listIndexOfName(attributes: AList<PointAttribute>, attributeName: string): int32 {\n if (attributes == null) return -1;\n if (attributeName == null) return -1;\n for (let i: number = 0; i < attributes.size(); i++) if (attributes.get(i).hasName(attributeName)) return i;\n return -1;\n }\n\n /**\n * Find the index of an attribute.\n * @param attributes the list of attributes.\n * @param attribute the definition of an attribute.\n * @return the index (negative if not found).\n */\n public static listIndexOf(attributes: AList<PointAttribute>, attribute: PointAttribute): int32 {\n if (attributes == null) return -1;\n if (attribute == null) return -1;\n for (let i: number = 0; i < attributes.size(); i++) if (attributes.get(i).hasName(attribute.getName())) return i;\n return -1;\n }\n\n /**\n * Check if an attribute exists.\n * @param attributes the list of attributes.\n * @param attributeName the name of an attribute.\n * @return true if found.\n */\n public static listHasAttributeName(attributes: AList<PointAttribute>, attributeName: string): boolean {\n return (PointAttribute.listIndexOfName(attributes, attributeName) >= 0);\n }\n\n /**\n * Check if an attribute exists.\n * @param attributes the list of attributes.\n * @param attribute the definition of an attribute.\n * @return true if found.\n */\n public static listHasAttribute(attributes: AList<PointAttribute>, attribute: PointAttribute): boolean {\n return (PointAttribute.listIndexOf(attributes, attribute) >= 0);\n }\n}\n"]}
@@ -10,6 +10,10 @@
10
10
  */
11
11
  /** @internal */
12
12
  export class PointData {
13
+ // the index of the tile
14
+ tileIndex;
15
+ // the spatial bounds of the tile
16
+ bounds;
13
17
  /**
14
18
  * Create new point data.
15
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"PointData.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/PointData.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAcH;;GAEG;AACH,gBAAgB;AAChB,MAAM,OAAO,SAAS;IAMrB;;OAEG;IACH,YAAmB,SAAoB,EAAE,MAAc;QACtD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;CACD","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\n\nimport { Bounds } from \"../../spatial/geom/Bounds\";\nimport { TileIndex } from \"./TileIndex\";\n\n/**\n * Abstract class PointData stores the data of the points in a tile.\n */\n/** @internal */\nexport class PointData {\n\t// the index of the tile\n\tpublic tileIndex: TileIndex;\n\t// the spatial bounds of the tile\n\tpublic bounds: Bounds;\n\n\t/**\n\t * Create new point data.\n\t */\n\tpublic constructor(tileIndex: TileIndex, bounds: Bounds) {\n\t\tthis.tileIndex = tileIndex;\n\t\tthis.bounds = bounds;\n\t}\n}\n"]}
1
+ {"version":3,"file":"PointData.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/PointData.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAcH;;GAEG;AACH,gBAAgB;AAChB,MAAM,OAAO,SAAS;IACrB,wBAAwB;IACjB,SAAS,CAAY;IAC5B,iCAAiC;IAC1B,MAAM,CAAS;IAEtB;;OAEG;IACH,YAAmB,SAAoB,EAAE,MAAc;QACtD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;CACD","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\n\nimport { Bounds } from \"../../spatial/geom/Bounds\";\nimport { TileIndex } from \"./TileIndex\";\n\n/**\n * Abstract class PointData stores the data of the points in a tile.\n */\n/** @internal */\nexport class PointData {\n\t// the index of the tile\n\tpublic tileIndex: TileIndex;\n\t// the spatial bounds of the tile\n\tpublic bounds: Bounds;\n\n\t/**\n\t * Create new point data.\n\t */\n\tpublic constructor(tileIndex: TileIndex, bounds: Bounds) {\n\t\tthis.tileIndex = tileIndex;\n\t\tthis.bounds = bounds;\n\t}\n}\n"]}
@@ -11,6 +11,14 @@ import { PointData } from "./PointData";
11
11
  */
12
12
  /** @internal */
13
13
  export class PointDataRaw extends PointData {
14
+ // the identifier of this data format
15
+ static TYPE = 1;
16
+ // the 16-bit XYZ geometries (length tileIndex.pointCount)
17
+ points16;
18
+ // the 8-bit XYZ geometries (length tileIndex.pointCount)
19
+ points8;
20
+ // the 24-bit BGR colors (length tileIndex.pointCount)
21
+ colors;
14
22
  /**
15
23
  * Create new point data.
16
24
  */
@@ -61,6 +69,4 @@ export class PointDataRaw extends PointData {
61
69
  return this.colors.get(3 * pointIndex + 0);
62
70
  }
63
71
  }
64
- // the identifier of this data format
65
- PointDataRaw.TYPE = 1;
66
72
  //# sourceMappingURL=PointDataRaw.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PointDataRaw.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/PointDataRaw.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAcH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC;;GAEG;AACH,gBAAgB;AAChB,MAAM,OAAO,YAAa,SAAQ,SAAS;IAW1C;;OAEG;IACH,YAAmB,SAAoB,EAAE,MAAc,EAAE,QAAsB,EAAE,OAAoB,EAAE,MAAmB;QACzH,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB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IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;IAC5C,CAAC;IAEM,QAAQ,CAAC,UAAiB;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;IAC5C,CAAC;IAEM,OAAO,CAAC,UAAiB;QAC/B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;IAC5C,CAAC;;AAhED,qCAAqC;AACd,iBAAI,GAAU,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { Bounds } from \"../../spatial/geom/Bounds\";\nimport { ABuffer } from \"../../system/buffer/ABuffer\";\nimport { Uint16Buffer } from \"../../system/buffer/Uint16Buffer\";\nimport { Uint8Buffer } from \"../../system/buffer/Uint8Buffer\";\nimport { PointData } from \"./PointData\";\nimport { TileIndex } from \"./TileIndex\";\n\n/**\n * Class PointDataRaw stores point data with 8 or 16-bit XYZ geometry and 24-bit BGR color precision.\n */\n/** @internal */\nexport class PointDataRaw extends PointData {\n\t// the identifier of this data format\n\tpublic static readonly TYPE: int32 = 1;\n\n\t// the 16-bit XYZ geometries (length tileIndex.pointCount)\n\tpublic points16: Uint16Buffer;\n\t// the 8-bit XYZ geometries (length tileIndex.pointCount)\n\tpublic points8: Uint8Buffer;\n\t// the 24-bit BGR colors (length tileIndex.pointCount)\n\tpublic colors: Uint8Buffer;\n\n\t/**\n\t * Create new point data.\n\t */\n\tpublic constructor(tileIndex: TileIndex, bounds: Bounds, points16: Uint16Buffer, points8: Uint8Buffer, colors: Uint8Buffer) {\n\t\tsuper(tileIndex, bounds);\n\t\tthis.bounds = bounds;\n\t\tthis.points16 = points16;\n\t\tthis.points8 = points8;\n\t\tthis.colors = colors;\n\t}\n\n\tpublic getRawX(pointIndex: int32): int32 {\n\t\tif (this.points16 == null) return this.points8.get(3 * pointIndex + 0);\n\t\treturn this.points16.get(3 * pointIndex + 0);\n\t}\n\n\tpublic getRawY(pointIndex: int32): int32 {\n\t\tif (this.points16 == null) return this.points8.get(3 * pointIndex + 1);\n\t\treturn this.points16.get(3 * pointIndex + 1);\n\t}\n\n\tpublic getRawZ(pointIndex: int32): int32 {\n\t\tif (this.points16 == null) return this.points8.get(3 * pointIndex + 2);\n\t\treturn this.points16.get(3 * pointIndex + 2);\n\t}\n\n\tpublic getX(pointIndex: int32): float64 {\n\t\tlet range: float64 = (this.points16 == null) ? 256.0 : 65536.0;\n\t\tlet bias: float64 = (this.points16 == null) ? 0.5 : 0.0;\n\t\treturn this.bounds.min.x + ((this.getRawX(pointIndex) + bias) / range) * (this.bounds.max.x - this.bounds.min.x);\n\t}\n\n\tpublic getY(pointIndex: int32): float64 {\n\t\tlet range: float64 = (this.points16 == null) ? 256.0 : 65536.0;\n\t\tlet bias: float64 = (this.points16 == null) ? 0.5 : 0.0;\n\t\treturn this.bounds.min.y + ((this.getRawY(pointIndex) + bias) / range) * (this.bounds.max.y - this.bounds.min.y);\n\t}\n\n\tpublic getZ(pointIndex: int32): float64 {\n\t\tlet range: float64 = (this.points16 == null) ? 256.0 : 65536.0;\n\t\tlet bias: float64 = (this.points16 == null) ? 0.5 : 0.0;\n\t\treturn this.bounds.min.z + ((this.getRawZ(pointIndex) + bias) / range) * (this.bounds.max.z - this.bounds.min.z);\n\t}\n\n\tpublic getRed(pointIndex: int32): int32 {\n\t\treturn this.colors.get(3 * pointIndex + 2);\n\t}\n\n\tpublic getGreen(pointIndex: int32): int32 {\n\t\treturn this.colors.get(3 * pointIndex + 1);\n\t}\n\n\tpublic getBlue(pointIndex: int32): int32 {\n\t\treturn this.colors.get(3 * pointIndex + 0);\n\t}\n}\n"]}
1
+ {"version":3,"file":"PointDataRaw.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/PointDataRaw.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAcH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC;;GAEG;AACH,gBAAgB;AAChB,MAAM,OAAO,YAAa,SAAQ,SAAS;IAC1C,qCAAqC;IAC9B,MAAM,CAAU,IAAI,GAAU,CAAC,CAAC;IAEvC,0DAA0D;IACnD,QAAQ,CAAe;IAC9B,yDAAyD;IAClD,OAAO,CAAc;IAC5B,sDAAsD;IAC/C,MAAM,CAAc;IAE3B;;OAEG;IACH,YAAmB,SAAoB,EAAE,MAAc,EAAE,QAAsB,EAAE,OAAoB,EAAE,MAAmB;QACzH,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAEM,OAAO,CAAC,UAAiB;QAC/B,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;QACvE,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;IAC9C,CAAC;IAEM,OAAO,CAAC,UAAiB;QAC/B,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;QACvE,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AG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAClH,CAAC;IAEM,IAAI,CAAC,UAAiB;QAC5B,IAAI,KAAK,GAAY,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;QAC/D,IAAI,IAAI,GAAY,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;QACxD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAClH,CAAC;IAEM,MAAM,CAAC,UAAiB;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;IAC5C,CAAC;IAEM,QAAQ,CAAC,UAAiB;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;IAC5C,CAAC;IAEM,OAAO,CAAC,UAAiB;QAC/B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;IAC5C,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { Bounds } from \"../../spatial/geom/Bounds\";\nimport { ABuffer } from \"../../system/buffer/ABuffer\";\nimport { Uint16Buffer } from \"../../system/buffer/Uint16Buffer\";\nimport { Uint8Buffer } from \"../../system/buffer/Uint8Buffer\";\nimport { PointData } from \"./PointData\";\nimport { TileIndex } from \"./TileIndex\";\n\n/**\n * Class PointDataRaw stores point data with 8 or 16-bit XYZ geometry and 24-bit BGR color precision.\n */\n/** @internal */\nexport class PointDataRaw extends PointData {\n\t// the identifier of this data format\n\tpublic static readonly TYPE: int32 = 1;\n\n\t// the 16-bit XYZ geometries (length tileIndex.pointCount)\n\tpublic points16: Uint16Buffer;\n\t// the 8-bit XYZ geometries (length tileIndex.pointCount)\n\tpublic points8: Uint8Buffer;\n\t// the 24-bit BGR colors (length tileIndex.pointCount)\n\tpublic colors: Uint8Buffer;\n\n\t/**\n\t * Create new point data.\n\t */\n\tpublic constructor(tileIndex: TileIndex, bounds: Bounds, points16: Uint16Buffer, points8: Uint8Buffer, colors: Uint8Buffer) {\n\t\tsuper(tileIndex, bounds);\n\t\tthis.bounds = bounds;\n\t\tthis.points16 = points16;\n\t\tthis.points8 = points8;\n\t\tthis.colors = colors;\n\t}\n\n\tpublic getRawX(pointIndex: int32): int32 {\n\t\tif (this.points16 == null) return this.points8.get(3 * pointIndex + 0);\n\t\treturn this.points16.get(3 * pointIndex + 0);\n\t}\n\n\tpublic getRawY(pointIndex: int32): int32 {\n\t\tif (this.points16 == null) return this.points8.get(3 * pointIndex + 1);\n\t\treturn this.points16.get(3 * pointIndex + 1);\n\t}\n\n\tpublic getRawZ(pointIndex: int32): int32 {\n\t\tif (this.points16 == null) return this.points8.get(3 * pointIndex + 2);\n\t\treturn this.points16.get(3 * pointIndex + 2);\n\t}\n\n\tpublic getX(pointIndex: int32): float64 {\n\t\tlet range: float64 = (this.points16 == null) ? 256.0 : 65536.0;\n\t\tlet bias: float64 = (this.points16 == null) ? 0.5 : 0.0;\n\t\treturn this.bounds.min.x + ((this.getRawX(pointIndex) + bias) / range) * (this.bounds.max.x - this.bounds.min.x);\n\t}\n\n\tpublic getY(pointIndex: int32): float64 {\n\t\tlet range: float64 = (this.points16 == null) ? 256.0 : 65536.0;\n\t\tlet bias: float64 = (this.points16 == null) ? 0.5 : 0.0;\n\t\treturn this.bounds.min.y + ((this.getRawY(pointIndex) + bias) / range) * (this.bounds.max.y - this.bounds.min.y);\n\t}\n\n\tpublic getZ(pointIndex: int32): float64 {\n\t\tlet range: float64 = (this.points16 == null) ? 256.0 : 65536.0;\n\t\tlet bias: float64 = (this.points16 == null) ? 0.5 : 0.0;\n\t\treturn this.bounds.min.z + ((this.getRawZ(pointIndex) + bias) / range) * (this.bounds.max.z - this.bounds.min.z);\n\t}\n\n\tpublic getRed(pointIndex: int32): int32 {\n\t\treturn this.colors.get(3 * pointIndex + 2);\n\t}\n\n\tpublic getGreen(pointIndex: int32): int32 {\n\t\treturn this.colors.get(3 * pointIndex + 1);\n\t}\n\n\tpublic getBlue(pointIndex: int32): int32 {\n\t\treturn this.colors.get(3 * pointIndex + 0);\n\t}\n}\n"]}
@@ -15,6 +15,34 @@ import { Strings } from "../../system/runtime/Strings";
15
15
  */
16
16
  /** @internal */
17
17
  export class ReadRequest {
18
+ /** The request to only read the geometry */
19
+ static READ_GEOMETRY = ReadRequest.getGeometry();
20
+ /** The request to only read the geometry and color */
21
+ static READ_GEOMETRY_AND_COLOR = ReadRequest.getGeometryAndColor();
22
+ /** The request to read geometry and attributes */
23
+ static READ_ALL = ReadRequest.getGeometryAndAttributes();
24
+ /** Should the geometry be read? */
25
+ _readGeometryAttribute;
26
+ /** Should the color be read? */
27
+ _readColorAttribute;
28
+ /** Should the intensity be read? */
29
+ _readIntensityAttribute;
30
+ /** Should the weight be read? */
31
+ _readWeightAttribute;
32
+ /** Should thinning be used? */
33
+ _thinning;
34
+ /** The list of extra attributes that should be read */
35
+ _extraAttributes;
36
+ /** Should the deleted points be read as well? */
37
+ _readDeletedAttribute;
38
+ /** An optional 2D area to filter */
39
+ _areaFilter;
40
+ /** The number read transactions */
41
+ _dataTransactions;
42
+ /** The number of bytes read for this request */
43
+ _dataSize;
44
+ /** The number of nanoseconds spent reading data */
45
+ _dataReadTime;
18
46
  /**
19
47
  * Create a new request to read all data (geometry and attributes) (except deleted points).
20
48
  */
@@ -227,10 +255,4 @@ export class ReadRequest {
227
255
  this._dataReadTime = ALong.ZERO;
228
256
  }
229
257
  }
230
- /** The request to only read the geometry */
231
- ReadRequest.READ_GEOMETRY = ReadRequest.getGeometry();
232
- /** The request to only read the geometry and color */
233
- ReadRequest.READ_GEOMETRY_AND_COLOR = ReadRequest.getGeometryAndColor();
234
- /** The request to read geometry and attributes */
235
- ReadRequest.READ_ALL = ReadRequest.getGeometryAndAttributes();
236
258
  //# sourceMappingURL=ReadRequest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReadRequest.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/ReadRequest.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,WAAW;IAiCpB;;OAEG;IACH;QACI,uBAAuB;QACvB,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC;QACnC,kCAAkC;QAClC,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC;QAChC,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC;QACpC,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC;QACj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------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { Bounds } from \"../../spatial/geom/Bounds\";\nimport { AList } from \"../../system/collection/AList\";\nimport { ALong } from \"../../system/runtime/ALong\";\nimport { Strings } from \"../../system/runtime/Strings\";\n\n/**\n * Class ReadRequest allows selective reading of information from a point cloud file.\n *\n * @version 1.0 December 2011\n */\n/** @internal */\nexport class ReadRequest {\n /** The request to only read the geometry */\n public static readonly READ_GEOMETRY: ReadRequest = ReadRequest.getGeometry();\n /** The request to only read the geometry and color */\n public static readonly READ_GEOMETRY_AND_COLOR: ReadRequest = ReadRequest.getGeometryAndColor();\n /** The request to read geometry and attributes */\n public static readonly READ_ALL: ReadRequest = ReadRequest.getGeometryAndAttributes();\n\n /** Should the geometry be read? */\n private _readGeometryAttribute: boolean;\n /** Should the color be read? */\n private _readColorAttribute: boolean;\n /** Should the intensity be read? */\n private _readIntensityAttribute: boolean;\n /** Should the weight be read? */\n private _readWeightAttribute: boolean;\n /** Should thinning be used? */\n private _thinning: int32;\n /** The list of extra attributes that should be read */\n private _extraAttributes: AList<string>;\n /** Should the deleted points be read as well? */\n private _readDeletedAttribute: boolean;\n\n /** An optional 2D area to filter */\n private _areaFilter: Bounds;\n\n /** The number read transactions */\n private _dataTransactions: int32;\n /** The number of bytes read for this request */\n private _dataSize: ALong;\n /** The number of nanoseconds spent reading data */\n private _dataReadTime: ALong;\n\n /**\n * Create a new request to read all data (geometry and attributes) (except deleted points).\n */\n public constructor() {\n /* Read the geometry */\n this._readGeometryAttribute = true;\n /* Read all standard attributes */\n this._readColorAttribute = true;\n this._readIntensityAttribute = true;\n this._readWeightAttribute = true;\n this._thinning = 0;\n /* Read all extra attributes */\n this._extraAttributes = new AList<string>();\n this._extraAttributes.add(\"*\");\n /* Default to not reading deleted points */\n this._readDeletedAttribute = false;\n /* Clear */\n this._areaFilter = null;\n this._dataTransactions = 0;\n this._dataSize = ALong.ZERO;\n this._dataReadTime = ALong.ZERO;\n }\n\n /**\n * Create a new request.\n * @param readColor should the color be read?\n * @param readIntensity should the intensity be read?\n * @param readWeight should the weight be read?\n * @param thinning should thinning be used?\n */\n public static create(readColor: boolean, readIntensity: boolean, readWeight: boolean, thinning: int32): ReadRequest {\n let request: ReadRequest = new ReadRequest();\n request._readColorAttribute = readColor;\n request._readIntensityAttribute = readIntensity;\n request._readWeightAttribute = readWeight;\n request._thinning = thinning;\n request._extraAttributes.clear();\n return request;\n }\n\n /**\n * Create the request to only read the geometry.\n * @return the request.\n */\n public static getGeometry(): ReadRequest {\n return ReadRequest.create(false/*color*/, false/*intensity*/, false/*weight*/, 0/*thinning*/);\n }\n\n /**\n * Create the request to only read the geometry and colot.\n * @return the request.\n */\n public static getGeometryAndColor(): ReadRequest {\n return ReadRequest.create(true/*color*/, false/*intensity*/, false/*weight*/, 0/*thinning*/);\n }\n\n /**\n * Create the request to read the full geometry and all attributes.\n * @return the request.\n */\n public static getGeometryAndAttributes(): ReadRequest {\n return new ReadRequest();\n }\n\n /**\n * Should the geometry be read?\n * @return true if it should be read.\n */\n public readGeometry(): boolean {\n return this._readGeometryAttribute;\n }\n\n /**\n * Should the geometry be read?\n * @param read true if it should be read.\n */\n public setReadGeometry(read: boolean): void {\n this._readGeometryAttribute = read;\n }\n\n /**\n * Should the color be read?\n * @return true if it should be read.\n */\n public readColor(): boolean {\n return this._readColorAttribute;\n }\n\n /**\n * Should the intensity be read?\n * @return true if it should be read.\n */\n public readIntensity(): boolean {\n return this._readIntensityAttribute;\n }\n\n /**\n * Should the weight be read?\n * @return true if it should be read.\n */\n public readWeight(): boolean {\n return this._readWeightAttribute;\n }\n\n /**\n * Should thinning be used?\n * @return the thinning factor.\n */\n public getThinning(): int32 {\n return this._thinning;\n }\n\n /**\n * Should the deleted points be read?\n * @return true if they should be read.\n */\n public readDeleted(): boolean {\n return this._readDeletedAttribute;\n }\n\n /**\n * Should the deleted points be read?\n * @param read true if they should be read.\n */\n public setReadDeleted(read: boolean): void {\n this._readDeletedAttribute = read;\n }\n\n /**\n * Should all extra attributes be read?\n * @return true if all extra attribute should be read.\n */\n public readAllExtraAttributes(): boolean {\n if (this._extraAttributes.size() != 1) return false;\n let extraAttribute: string = this._extraAttributes.get(0);\n return Strings.equals(extraAttribute, \"*\");\n }\n\n /**\n * Get the list of extra attributes to read.\n * @return the list of extra attributes to read.\n */\n public getExtraAttributes(): AList<string> {\n return this._extraAttributes;\n }\n\n /**\n * Set the list of extra attributes to read.\n * @param list the list of extra attributes to read.\n */\n public setExtraAttributes(list: AList<string>): void {\n this._extraAttributes = list;\n }\n\n /**\n * Add the name of an extra attribute to read.\n * @param attributeName the name of the attribute to read.\n * @return this request for convenient chaining.\n */\n public addExtraAttribute(attributeName: string): ReadRequest {\n this._extraAttributes.add(attributeName);\n return this;\n }\n\n /**\n * Get the area filter.\n * @return the area filter.\n */\n public getAreaFilter(): Bounds {\n return this._areaFilter;\n }\n\n /**\n * Set the area filter.\n * @param filter the new area filter.\n */\n public setAreaFilter(filter: Bounds): void {\n this._areaFilter = filter;\n }\n\n /**\n * Add a number of bytes to the data size.\n * @param size the number of bytes.\n */\n public addDataSize(size: int32): void {\n this._dataSize = this._dataSize.addInt(size);\n this._dataTransactions++;\n }\n\n /**\n * Get the data size of the request.\n * @return the number of bytes.\n */\n public getDataSize(): ALong {\n return this._dataSize;\n }\n\n /**\n * Clear the data size of the request.\n */\n public clearDataSize(): void {\n this._dataSize = ALong.ZERO;\n this._dataTransactions = 0;\n }\n\n /**\n * Get the number of data transactions.\n * @return the number of data transactions.\n */\n public getDataTransactions(): int32 {\n return this._dataTransactions;\n }\n\n /**\n * Add a number of nanoseconds to the data read time.\n * @param time the number of nanoseconds.\n */\n public addDataReadTime(time: ALong): void {\n this._dataReadTime = this._dataReadTime.add(time);\n }\n\n /**\n * Get the data read time of the request.\n * @return the number of nanoseconds.\n */\n public getDataReadTime(): ALong {\n return this._dataReadTime;\n }\n\n /**\n * Clear the data read time of the request.\n */\n public clearDataReadTime(): void {\n this._dataReadTime = ALong.ZERO;\n }\n}\n"]}
1
+ {"version":3,"file":"ReadRequest.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/ReadRequest.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,WAAW;IACpB,4CAA4C;IACrC,MAAM,CAAU,aAAa,GAAgB,WAAW,CAAC,WAAW,EAAE,CAAC;IAC9E,sDAAsD;IAC/C,MAAM,CAAU,uBAAuB,GAAgB,WAAW,CAAC,mBAAmB,EAAE,CAAC;IAChG,kDAAkD;IAC3C,MAAM,CAAU,QAAQ,GAAgB,WAAW,CAAC,wBAAwB,EAAE,CAAC;IAEtF,mCAAmC;IAC3B,sBAAsB,CAAU;IACxC,gCAAgC;IACxB,mBAAmB,CAAU;IACrC,oCAAoC;IAC5B,uBAAuB,CAAU;IACzC,iCAAiC;IACzB,oBAAoB,CAAU;IACtC,+BAA+B;IACvB,SAAS,CAAQ;IACzB,uDAAuD;IAC/C,gBAAgB,CAAgB;IACxC,iDAAiD;IACzC,qBAAqB,CAAU;IAEvC,oCAAoC;IAC5B,WAAW,CAAS;IAE5B,mCAAmC;IAC3B,iBAAiB,CAAQ;IACjC,gDAAgD;IACxC,SAAS,CAAQ;IACzB,mDAAmD;IAC3C,aAAa,CAAQ;IAE7B;;OAEG;IACH;QACI,uBAAuB;QACvB,IAAI,CAAC,sBAAsB,GAAG,I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CAAC;IAED;;;OAGG;IACI,kBAAkB,CAAC,IAAmB;QACzC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;IACjC,CAAC;IAED;;;;OAIG;IACI,iBAAiB,CAAC,aAAqB;QAC1C,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QACzC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,aAAa;QAChB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACI,aAAa,CAAC,MAAc;QAC/B,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACI,WAAW,CAAC,IAAW;QAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACI,WAAW;QACd,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED;;OAEG;IACI,aAAa;QAChB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,iBAAiB,GAAG,CAAC,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACI,mBAAmB;QACtB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAClC,CAAC;IAED;;;OAGG;IACI,eAAe,CAAC,IAAW;QAC9B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IAED;;;OAGG;IACI,eAAe;QAClB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAED;;OAEG;IACI,iBAAiB;QACpB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC;IACpC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { Bounds } from \"../../spatial/geom/Bounds\";\nimport { AList } from \"../../system/collection/AList\";\nimport { ALong } from \"../../system/runtime/ALong\";\nimport { Strings } from \"../../system/runtime/Strings\";\n\n/**\n * Class ReadRequest allows selective reading of information from a point cloud file.\n *\n * @version 1.0 December 2011\n */\n/** @internal */\nexport class ReadRequest {\n /** The request to only read the geometry */\n public static readonly READ_GEOMETRY: ReadRequest = ReadRequest.getGeometry();\n /** The request to only read the geometry and color */\n public static readonly READ_GEOMETRY_AND_COLOR: ReadRequest = ReadRequest.getGeometryAndColor();\n /** The request to read geometry and attributes */\n public static readonly READ_ALL: ReadRequest = ReadRequest.getGeometryAndAttributes();\n\n /** Should the geometry be read? */\n private _readGeometryAttribute: boolean;\n /** Should the color be read? */\n private _readColorAttribute: boolean;\n /** Should the intensity be read? */\n private _readIntensityAttribute: boolean;\n /** Should the weight be read? */\n private _readWeightAttribute: boolean;\n /** Should thinning be used? */\n private _thinning: int32;\n /** The list of extra attributes that should be read */\n private _extraAttributes: AList<string>;\n /** Should the deleted points be read as well? */\n private _readDeletedAttribute: boolean;\n\n /** An optional 2D area to filter */\n private _areaFilter: Bounds;\n\n /** The number read transactions */\n private _dataTransactions: int32;\n /** The number of bytes read for this request */\n private _dataSize: ALong;\n /** The number of nanoseconds spent reading data */\n private _dataReadTime: ALong;\n\n /**\n * Create a new request to read all data (geometry and attributes) (except deleted points).\n */\n public constructor() {\n /* Read the geometry */\n this._readGeometryAttribute = true;\n /* Read all standard attributes */\n this._readColorAttribute = true;\n this._readIntensityAttribute = true;\n this._readWeightAttribute = true;\n this._thinning = 0;\n /* Read all extra attributes */\n this._extraAttributes = new AList<string>();\n this._extraAttributes.add(\"*\");\n /* Default to not reading deleted points */\n this._readDeletedAttribute = false;\n /* Clear */\n this._areaFilter = null;\n this._dataTransactions = 0;\n this._dataSize = ALong.ZERO;\n this._dataReadTime = ALong.ZERO;\n }\n\n /**\n * Create a new request.\n * @param readColor should the color be read?\n * @param readIntensity should the intensity be read?\n * @param readWeight should the weight be read?\n * @param thinning should thinning be used?\n */\n public static create(readColor: boolean, readIntensity: boolean, readWeight: boolean, thinning: int32): ReadRequest {\n let request: ReadRequest = new ReadRequest();\n request._readColorAttribute = readColor;\n request._readIntensityAttribute = readIntensity;\n request._readWeightAttribute = readWeight;\n request._thinning = thinning;\n request._extraAttributes.clear();\n return request;\n }\n\n /**\n * Create the request to only read the geometry.\n * @return the request.\n */\n public static getGeometry(): ReadRequest {\n return ReadRequest.create(false/*color*/, false/*intensity*/, false/*weight*/, 0/*thinning*/);\n }\n\n /**\n * Create the request to only read the geometry and colot.\n * @return the request.\n */\n public static getGeometryAndColor(): ReadRequest {\n return ReadRequest.create(true/*color*/, false/*intensity*/, false/*weight*/, 0/*thinning*/);\n }\n\n /**\n * Create the request to read the full geometry and all attributes.\n * @return the request.\n */\n public static getGeometryAndAttributes(): ReadRequest {\n return new ReadRequest();\n }\n\n /**\n * Should the geometry be read?\n * @return true if it should be read.\n */\n public readGeometry(): boolean {\n return this._readGeometryAttribute;\n }\n\n /**\n * Should the geometry be read?\n * @param read true if it should be read.\n */\n public setReadGeometry(read: boolean): void {\n this._readGeometryAttribute = read;\n }\n\n /**\n * Should the color be read?\n * @return true if it should be read.\n */\n public readColor(): boolean {\n return this._readColorAttribute;\n }\n\n /**\n * Should the intensity be read?\n * @return true if it should be read.\n */\n public readIntensity(): boolean {\n return this._readIntensityAttribute;\n }\n\n /**\n * Should the weight be read?\n * @return true if it should be read.\n */\n public readWeight(): boolean {\n return this._readWeightAttribute;\n }\n\n /**\n * Should thinning be used?\n * @return the thinning factor.\n */\n public getThinning(): int32 {\n return this._thinning;\n }\n\n /**\n * Should the deleted points be read?\n * @return true if they should be read.\n */\n public readDeleted(): boolean {\n return this._readDeletedAttribute;\n }\n\n /**\n * Should the deleted points be read?\n * @param read true if they should be read.\n */\n public setReadDeleted(read: boolean): void {\n this._readDeletedAttribute = read;\n }\n\n /**\n * Should all extra attributes be read?\n * @return true if all extra attribute should be read.\n */\n public readAllExtraAttributes(): boolean {\n if (this._extraAttributes.size() != 1) return false;\n let extraAttribute: string = this._extraAttributes.get(0);\n return Strings.equals(extraAttribute, \"*\");\n }\n\n /**\n * Get the list of extra attributes to read.\n * @return the list of extra attributes to read.\n */\n public getExtraAttributes(): AList<string> {\n return this._extraAttributes;\n }\n\n /**\n * Set the list of extra attributes to read.\n * @param list the list of extra attributes to read.\n */\n public setExtraAttributes(list: AList<string>): void {\n this._extraAttributes = list;\n }\n\n /**\n * Add the name of an extra attribute to read.\n * @param attributeName the name of the attribute to read.\n * @return this request for convenient chaining.\n */\n public addExtraAttribute(attributeName: string): ReadRequest {\n this._extraAttributes.add(attributeName);\n return this;\n }\n\n /**\n * Get the area filter.\n * @return the area filter.\n */\n public getAreaFilter(): Bounds {\n return this._areaFilter;\n }\n\n /**\n * Set the area filter.\n * @param filter the new area filter.\n */\n public setAreaFilter(filter: Bounds): void {\n this._areaFilter = filter;\n }\n\n /**\n * Add a number of bytes to the data size.\n * @param size the number of bytes.\n */\n public addDataSize(size: int32): void {\n this._dataSize = this._dataSize.addInt(size);\n this._dataTransactions++;\n }\n\n /**\n * Get the data size of the request.\n * @return the number of bytes.\n */\n public getDataSize(): ALong {\n return this._dataSize;\n }\n\n /**\n * Clear the data size of the request.\n */\n public clearDataSize(): void {\n this._dataSize = ALong.ZERO;\n this._dataTransactions = 0;\n }\n\n /**\n * Get the number of data transactions.\n * @return the number of data transactions.\n */\n public getDataTransactions(): int32 {\n return this._dataTransactions;\n }\n\n /**\n * Add a number of nanoseconds to the data read time.\n * @param time the number of nanoseconds.\n */\n public addDataReadTime(time: ALong): void {\n this._dataReadTime = this._dataReadTime.add(time);\n }\n\n /**\n * Get the data read time of the request.\n * @return the number of nanoseconds.\n */\n public getDataReadTime(): ALong {\n return this._dataReadTime;\n }\n\n /**\n * Clear the data read time of the request.\n */\n public clearDataReadTime(): void {\n this._dataReadTime = ALong.ZERO;\n }\n}\n"]}
@@ -15,30 +15,30 @@ import { PointAttribute } from "./PointAttribute";
15
15
  */
16
16
  /** @internal */
17
17
  export class StandardAttributes {
18
+ /** The standard "color" attribute */
19
+ static COLOR = new PointAttribute("Color", "The RGB color", AttributeTypes.TYPE_COLOR, AttributeValue.createColor(0));
20
+ /** The standard "intensity" attribute */
21
+ static INTENSITY = new PointAttribute("Intensity", "The reflection intensity", AttributeTypes.TYPE_INT2, AttributeValue.createInt2(0));
22
+ /** The standard "gps-time" attribute */
23
+ static GPS_TIME = new PointAttribute("GPSTime", "The registration time of the point", AttributeTypes.TYPE_FLOAT8, AttributeValue.createFloat8(0.0));
24
+ /** The standard "weight" attribute */
25
+ static WEIGHT = new PointAttribute("Weight", "The weight of a multi-resolution point", AttributeTypes.TYPE_INT4, AttributeValue.createInt4(0));
26
+ /** The standard "clearance" attribute */
27
+ static CLEARANCE = new PointAttribute("Clearance", "The vertical clearance of a bridge or road", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0));
28
+ /** The standard "rutting" attribute */
29
+ static RUTTING = new PointAttribute("Rutting", "The road deformation angle", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0)); // range 0..90 deg
30
+ /** The standard "color-by" attribute */
31
+ static COLOR_BY = new PointAttribute("ColorBy", "The attribute to modulate the point colors", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0));
32
+ /** The default "gps-time" attribute value */
33
+ static DEFAULT_GPS_TIME = AttributeValue.createFloat8(0.0);
34
+ /** The "adjusted" gps time offset (The offset moves the time back to near zero to improve floating point resolution).
35
+ See the "GPS Time Type" field in "LAS SPECIFICATION VERSION 1.3" */
36
+ static GPS_TIME_OFFSET = 1.0e9;
37
+ /** The number of seconds in a week (7*24*3600) */
38
+ static GPS_WEEK_SECONDS = 604800.0;
18
39
  /**
19
40
  * No instances.
20
41
  */
21
42
  constructor() { }
22
43
  }
23
- /** The standard "color" attribute */
24
- StandardAttributes.COLOR = new PointAttribute("Color", "The RGB color", AttributeTypes.TYPE_COLOR, AttributeValue.createColor(0));
25
- /** The standard "intensity" attribute */
26
- StandardAttributes.INTENSITY = new PointAttribute("Intensity", "The reflection intensity", AttributeTypes.TYPE_INT2, AttributeValue.createInt2(0));
27
- /** The standard "gps-time" attribute */
28
- StandardAttributes.GPS_TIME = new PointAttribute("GPSTime", "The registration time of the point", AttributeTypes.TYPE_FLOAT8, AttributeValue.createFloat8(0.0));
29
- /** The standard "weight" attribute */
30
- StandardAttributes.WEIGHT = new PointAttribute("Weight", "The weight of a multi-resolution point", AttributeTypes.TYPE_INT4, AttributeValue.createInt4(0));
31
- /** The standard "clearance" attribute */
32
- StandardAttributes.CLEARANCE = new PointAttribute("Clearance", "The vertical clearance of a bridge or road", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0));
33
- /** The standard "rutting" attribute */
34
- StandardAttributes.RUTTING = new PointAttribute("Rutting", "The road deformation angle", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0)); // range 0..90 deg
35
- /** The standard "color-by" attribute */
36
- StandardAttributes.COLOR_BY = new PointAttribute("ColorBy", "The attribute to modulate the point colors", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0));
37
- /** The default "gps-time" attribute value */
38
- StandardAttributes.DEFAULT_GPS_TIME = AttributeValue.createFloat8(0.0);
39
- /** The "adjusted" gps time offset (The offset moves the time back to near zero to improve floating point resolution).
40
- See the "GPS Time Type" field in "LAS SPECIFICATION VERSION 1.3" */
41
- StandardAttributes.GPS_TIME_OFFSET = 1.0e9;
42
- /** The number of seconds in a week (7*24*3600) */
43
- StandardAttributes.GPS_WEEK_SECONDS = 604800.0;
44
44
  //# sourceMappingURL=StandardAttributes.js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,WAAW,EAAE,cAAc,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,kBAAkB;AAC9L,wCAAwC;AACjB,2BAAQ,GAAmB,IAAI,cAAc,CAAC,SAAS,EAAE,4CAA4C,EAAE,cAAc,CAAC,WAAW,EAAE,cAAc,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;AAE5L,6CAA6C;AACtB,mCAAgB,GAAmB,cAAc,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;AAE3F;uEACuE;AAChD,kCAAe,GAAY,KAAK,CAAC;AACxD,kDAAkD;AAC3B,mCAAgB,GAAY,QAAQ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { AttributeTypes } from \"./AttributeTypes\";\nimport { AttributeValue } from \"./AttributeValue\";\nimport { PointAttribute } from \"./PointAttribute\";\n\n/**\n * Class StandardAttributes defines some common attributes for pointclouds.\n *\n * @version 1.0 October 2013\n */\n/** @internal */\nexport class StandardAttributes {\n /** The standard \"color\" attribute */\n public static readonly COLOR: PointAttribute = new PointAttribute(\"Color\", \"The RGB color\", AttributeTypes.TYPE_COLOR, AttributeValue.createColor(0));\n /** The standard \"intensity\" attribute */\n public static readonly INTENSITY: PointAttribute = new PointAttribute(\"Intensity\", \"The reflection intensity\", AttributeTypes.TYPE_INT2, AttributeValue.createInt2(0));\n /** The standard \"gps-time\" attribute */\n public static readonly GPS_TIME: PointAttribute = new PointAttribute(\"GPSTime\", \"The registration time of the point\", AttributeTypes.TYPE_FLOAT8, AttributeValue.createFloat8(0.0));\n /** The standard \"weight\" attribute */\n public static readonly WEIGHT: PointAttribute = new PointAttribute(\"Weight\", \"The weight of a multi-resolution point\", AttributeTypes.TYPE_INT4, AttributeValue.createInt4(0));\n /** The standard \"clearance\" attribute */\n public static readonly CLEARANCE: PointAttribute = new PointAttribute(\"Clearance\", \"The vertical clearance of a bridge or road\", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0));\n /** The standard \"rutting\" attribute */\n public static readonly RUTTING: PointAttribute = new PointAttribute(\"Rutting\", \"The road deformation angle\", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0)); // range 0..90 deg\n /** The standard \"color-by\" attribute */\n public static readonly COLOR_BY: PointAttribute = new PointAttribute(\"ColorBy\", \"The attribute to modulate the point colors\", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0));\n\n /** The default \"gps-time\" attribute value */\n public static readonly DEFAULT_GPS_TIME: AttributeValue = AttributeValue.createFloat8(0.0);\n\n /** The \"adjusted\" gps time offset (The offset moves the time back to near zero to improve floating point resolution).\n See the \"GPS Time Type\" field in \"LAS SPECIFICATION VERSION 1.3\" */\n public static readonly GPS_TIME_OFFSET: float64 = 1.0e9;\n /** The number of seconds in a week (7*24*3600) */\n public static readonly GPS_WEEK_SECONDS: float64 = 604800.0;\n\n /**\n * No instances.\n */\n private constructor() { }\n}\n"]}
1
+ {"version":3,"file":"StandardAttributes.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/StandardAttributes.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,kBAAkB;IAC3B,qCAAqC;IAC9B,MAAM,CAAU,KAAK,GAAmB,IAAI,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,cAAc,CAAC,UAAU,EA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gBAAgB,GAAY,QAAQ,CAAC;IAE5D;;OAEG;IACH,gBAAwB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { AttributeTypes } from \"./AttributeTypes\";\nimport { AttributeValue } from \"./AttributeValue\";\nimport { PointAttribute } from \"./PointAttribute\";\n\n/**\n * Class StandardAttributes defines some common attributes for pointclouds.\n *\n * @version 1.0 October 2013\n */\n/** @internal */\nexport class StandardAttributes {\n /** The standard \"color\" attribute */\n public static readonly COLOR: PointAttribute = new PointAttribute(\"Color\", \"The RGB color\", AttributeTypes.TYPE_COLOR, AttributeValue.createColor(0));\n /** The standard \"intensity\" attribute */\n public static readonly INTENSITY: PointAttribute = new PointAttribute(\"Intensity\", \"The reflection intensity\", AttributeTypes.TYPE_INT2, AttributeValue.createInt2(0));\n /** The standard \"gps-time\" attribute */\n public static readonly GPS_TIME: PointAttribute = new PointAttribute(\"GPSTime\", \"The registration time of the point\", AttributeTypes.TYPE_FLOAT8, AttributeValue.createFloat8(0.0));\n /** The standard \"weight\" attribute */\n public static readonly WEIGHT: PointAttribute = new PointAttribute(\"Weight\", \"The weight of a multi-resolution point\", AttributeTypes.TYPE_INT4, AttributeValue.createInt4(0));\n /** The standard \"clearance\" attribute */\n public static readonly CLEARANCE: PointAttribute = new PointAttribute(\"Clearance\", \"The vertical clearance of a bridge or road\", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0));\n /** The standard \"rutting\" attribute */\n public static readonly RUTTING: PointAttribute = new PointAttribute(\"Rutting\", \"The road deformation angle\", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0)); // range 0..90 deg\n /** The standard \"color-by\" attribute */\n public static readonly COLOR_BY: PointAttribute = new PointAttribute(\"ColorBy\", \"The attribute to modulate the point colors\", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0));\n\n /** The default \"gps-time\" attribute value */\n public static readonly DEFAULT_GPS_TIME: AttributeValue = AttributeValue.createFloat8(0.0);\n\n /** The \"adjusted\" gps time offset (The offset moves the time back to near zero to improve floating point resolution).\n See the \"GPS Time Type\" field in \"LAS SPECIFICATION VERSION 1.3\" */\n public static readonly GPS_TIME_OFFSET: float64 = 1.0e9;\n /** The number of seconds in a week (7*24*3600) */\n public static readonly GPS_WEEK_SECONDS: float64 = 604800.0;\n\n /**\n * No instances.\n */\n private constructor() { }\n}\n"]}
@@ -12,6 +12,22 @@
12
12
  */
13
13
  /** @internal */
14
14
  export class TileIndex {
15
+ /** The level */
16
+ level;
17
+ /** The unique key of the block */
18
+ key;
19
+ /** The index of the tile in the level */
20
+ index;
21
+ /** The grid index */
22
+ gridIndex;
23
+ /** The index of the first point in the tile (derived) */
24
+ pointIndex;
25
+ /** The point count */
26
+ pointCount;
27
+ /** The children */
28
+ children;
29
+ /** The last access time */
30
+ accessTime;
15
31
  /**
16
32
  * Create a new index.
17
33
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TileIndex.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/TileIndex.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAcH;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,SAAS;IAkBlB;;OAEG;IACH,YAAmB,KAAY,EAAE,KAAY,EAAE,SAAoB,EAAE,UAAiB,EAAE,UAAiB;QACrG,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC;QACtB,IAAI,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC;IAED;;;;OAIG;IACI,IAAI,CAAC,KAAgB;QACxB,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IACtE,CAAC;IAED;;;OAGG;IACI,MAAM;QACT,OAAO,GAAG,GAAG,IAAI,CAAC,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IACvG,CAAC;CACJ","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\n\nimport { ALong } from \"../../system/runtime/ALong\";\nimport { GridIndex } from \"./GridIndex\";\n\n/**\n * Class TileIndex defines a tile index in a pointcloud file.\n *\n * @version 1.0 January 2014\n */\n/** @internal */\nexport class TileIndex {\n /** The level */\n public level: int32;\n /** The unique key of the block */\n public key: string;\n /** The index of the tile in the level */\n public index: int32;\n /** The grid index */\n public gridIndex: GridIndex;\n /** The index of the first point in the tile (derived) */\n public pointIndex: ALong;\n /** The point count */\n public pointCount: int32;\n /** The children */\n public children: Array<TileIndex>;\n /** The last access time */\n public accessTime: float64;\n\n /**\n * Create a new index.\n */\n public constructor(level: int32, index: int32, gridIndex: GridIndex, pointIndex: ALong, pointCount: int32) {\n this.level = level;\n this.index = index;\n this.gridIndex = gridIndex;\n this.pointIndex = pointIndex;\n this.pointCount = pointCount;\n this.children = null;\n this.accessTime = 0.0;\n this.key = (\"L\" + this.level + \",T:\" + this.index);\n }\n\n /**\n * Check if two indexes are the same.\n * @param other another index.\n * @return true if same.\n */\n public same(other: TileIndex): boolean {\n return (other.level == this.level) && (other.index == this.index);\n }\n\n /**\n * Get the unique key of the tile in the pointcloud file.\n * @return the unique key (combines level and grid index).\n */\n public getKey(): string {\n return \"T\" + this.level + \"/\" + this.gridIndex.x + \"/\" + this.gridIndex.y + \"/\" + this.gridIndex.z;\n }\n}\n"]}
1
+ {"version":3,"file":"TileIndex.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/TileIndex.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAcH;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,SAAS;IAClB,gBAAgB;IACT,KAAK,CAAQ;IACpB,kCAAkC;IAC3B,GAAG,CAAS;IACnB,yCAAyC;IAClC,KAAK,CAAQ;IACpB,qBAAqB;IACd,SAAS,CAAY;IAC5B,yDAAyD;IAClD,UAAU,CAAQ;IACzB,sBAAsB;IACf,UAAU,CAAQ;IACzB,mBAAmB;IACZ,QAAQ,CAAmB;IAClC,2BAA2B;IACpB,UAAU,CAAU;IAE3B;;OAEG;IACH,YAAmB,KAAY,EAAE,KAAY,EAAE,SAAoB,EAAE,UAAiB,EAAE,UAAiB;QACrG,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC;QACtB,IAAI,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC;IAED;;;;OAIG;IACI,IAAI,CAAC,KAAgB;QACxB,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IACtE,CAAC;IAED;;;OAGG;IACI,MAAM;QACT,OAAO,GAAG,GAAG,IAAI,CAAC,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IACvG,CAAC;CACJ","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\n\nimport { ALong } from \"../../system/runtime/ALong\";\nimport { GridIndex } from \"./GridIndex\";\n\n/**\n * Class TileIndex defines a tile index in a pointcloud file.\n *\n * @version 1.0 January 2014\n */\n/** @internal */\nexport class TileIndex {\n /** The level */\n public level: int32;\n /** The unique key of the block */\n public key: string;\n /** The index of the tile in the level */\n public index: int32;\n /** The grid index */\n public gridIndex: GridIndex;\n /** The index of the first point in the tile (derived) */\n public pointIndex: ALong;\n /** The point count */\n public pointCount: int32;\n /** The children */\n public children: Array<TileIndex>;\n /** The last access time */\n public accessTime: float64;\n\n /**\n * Create a new index.\n */\n public constructor(level: int32, index: int32, gridIndex: GridIndex, pointIndex: ALong, pointCount: int32) {\n this.level = level;\n this.index = index;\n this.gridIndex = gridIndex;\n this.pointIndex = pointIndex;\n this.pointCount = pointCount;\n this.children = null;\n this.accessTime = 0.0;\n this.key = (\"L\" + this.level + \",T:\" + this.index);\n }\n\n /**\n * Check if two indexes are the same.\n * @param other another index.\n * @return true if same.\n */\n public same(other: TileIndex): boolean {\n return (other.level == this.level) && (other.index == this.index);\n }\n\n /**\n * Get the unique key of the tile in the pointcloud file.\n * @return the unique key (combines level and grid index).\n */\n public getKey(): string {\n return \"T\" + this.level + \"/\" + this.gridIndex.x + \"/\" + this.gridIndex.y + \"/\" + this.gridIndex.z;\n }\n}\n"]}
@@ -13,6 +13,12 @@ import { IntMap } from "../../system/collection/IntMap";
13
13
  */
14
14
  /** @internal */
15
15
  export class Block {
16
+ /** The index of the block */
17
+ _index;
18
+ /** The full list of tiles in the block (can be null if the tile-list has not been loaded) */
19
+ _tileList;
20
+ /** The map of tiles in the block */
21
+ _tileMap;
16
22
  /**
17
23
  * Create a new block.
18
24
  * @param index the index of the block.
@@ -1 +1 @@
1
- {"version":3,"file":"Block.js","sourceRoot":"","sources":["../../../../src/pointcloud/render/Block.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAYH,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAMxD;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,KAAK;IAQjB;;;OAGG;IACH,YAAmB,KAAiB;QACnC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACtB,CAAC;IAED;;;OAGG;IACI,aAAa;QACnB,OAAO,IAAI,CAAC,MAAM,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACI,cAAc,CAAC,KAAY;QACjC,OAAO,KAAK,CAAC,YAAY,EA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AK,GAAU,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;YACpC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACvB,CAAC;IACF,CAAC;IAED;;;OAGG;IACI,QAAQ;QACd,OAAO,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC;IACjC,CAAC;IAED;;;;OAIG;IACI,QAAQ,CAAC,YAA+B;QAC9C,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE,CAAC;YAC5B,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YAC/C,OAAO,IAAI,CAAC;QACb,CAAC;QACD,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,QAAQ,CAAC,aAAwB;QACvC,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QACvC,IAAI,KAAK,GAAU,aAAa,CAAC,CAAC,CAAC;QACnC,IAAI,KAAK,GAA8B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAChE,IAAI,KAAK,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAC/B,IAAI,KAAK,GAAU,aAAa,CAAC,CAAC,CAAC;QACnC,IAAI,IAAI,GAAsB,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC/C,IAAI,IAAI,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAC9B,IAAI,KAAK,GAAU,aAAa,CAAC,CAAC,CAAC;QACnC,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;CACD","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.render;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { Bounds } from \"../../spatial/geom/Bounds\";\nimport { AList } from \"../../system/collection/AList\";\nimport { IntMap } from \"../../system/collection/IntMap\";\nimport { BlockIndex } from \"../model/BlockIndex\";\nimport { GridIndex } from \"../model/GridIndex\";\nimport { TileIndex } from \"../model/TileIndex\";\nimport { Level } from \"./Level\";\n\n/**\n * Class Block defines a block of tiles.\n *\n * @version 1.0 November 2015\n */\n/** @internal */\nexport class Block {\n\t/** The index of the block */\n\tprivate _index: BlockIndex;\n\t/** The full list of tiles in the block (can be null if the tile-list has not been loaded) */\n\tprivate _tileList: Array<TileIndex>;\n\t/** The map of tiles in the block */\n\tprivate _tileMap: IntMap<IntMap<IntMap<TileIndex>>>;\n\n\t/**\n\t * Create a new block.\n\t * @param index the index of the block.\n\t */\n\tpublic constructor(index: BlockIndex) {\n\t\tthis._index = index;\n\t\tthis._tileList = null;\n\t\tthis._tileMap = null;\n\t}\n\n\t/**\n\t * Get the index of the block.\n\t * @return the index of the block.\n\t */\n\tpublic getBlockIndex(): BlockIndex {\n\t\treturn this._index;\n\t}\n\n\t/**\n\t * Get the spatial bounds of the block.\n\t * @param level the level to which the block belongs.\n\t * @return the spatial bounds of the block.\n\t */\n\tpublic getBlockBounds(level: Level): Bounds {\n\t\treturn level.getBlockGrid().getCellBounds(this._index.gridIndex);\n\t}\n\n\t/**\n\t * Add a block to the list of blocks to load.\n * @param blocksToLoad the list of blocks to load.\n * @param block the block to add.\n */\n\tprivate static addToLoadList(blocksToLoad: AList<BlockIndex>, block: BlockIndex): void {\n\t\tfor (let i: number = 0; i < blocksToLoad.size(); i++) if (blocksToLoad.get(i).same(block)) return;\n\t\tblocksToLoad.add(block);\n\t}\n\n\t/**\n\t * Set the tiles in the block.\n\t * @param tileList the list of tiles.\n\t */\n\tpublic setTiles(tileList: Array<TileIndex>): void {\n\t\t/* Store the list */\n\t\tthis._tileList = tileList;\n\t\t/* Make the map */\n\t\tthis._tileMap = new IntMap<IntMap<IntMap<TileIndex>>>();\n\t\tfor (let tile of this._tileList) {\n\t\t\tlet tileX: int32 = tile.gridIndex.x;\n\t\t\tlet yzMap: IntMap<IntMap<TileIndex>> = this._tileMap.get(tileX);\n\t\t\tif (yzMap == null) {\n\t\t\t\tyzMap = new IntMap<IntMap<TileIndex>>();\n\t\t\t\tthis._tileMap.set(tileX, yzMap);\n\t\t\t}\n\t\t\tlet tileY: int32 = tile.gridIndex.y;\n\t\t\tlet zMap: IntMap<TileIndex> = yzMap.get(tileY);\n\t\t\tif (zMap == null) {\n\t\t\t\tzMap = new IntMap<TileIndex>();\n\t\t\t\tyzMap.set(tileY, zMap);\n\t\t\t}\n\t\t\tlet tileZ: int32 = tile.gridIndex.z;\n\t\t\tzMap.set(tileZ, tile);\n\t\t}\n\t}\n\n\t/**\n\t * Have the tiles been set?\n\t * @return true if the tiles have been set.\n\t */\n\tpublic hasTiles(): boolean {\n\t\treturn (this._tileList != null);\n\t}\n\n\t/**\n\t * List all tiles.\n * @param blocksToLoad the list of blocks to load.\n\t * @return all tiles (null if tiles are not loaded).\n\t */\n\tpublic getTiles(blocksToLoad: AList<BlockIndex>): Array<TileIndex> {\n\t\tif (this._tileList == null) {\n\t\t\tBlock.addToLoadList(blocksToLoad, this._index);\n\t\t\treturn null;\n\t\t}\n\t\treturn this._tileList;\n\t}\n\n\t/**\n\t * Find a tile.\n * @param tileGridIndex the grid index of the tile.\n\t * @return the tile (null if not found).\n\t */\n\tpublic findTile(tileGridIndex: GridIndex): TileIndex {\n\t\tif (this._tileMap == null) return null;\n\t\tlet tileX: int32 = tileGridIndex.x;\n\t\tlet yzMap: IntMap<IntMap<TileIndex>> = this._tileMap.get(tileX);\n\t\tif (yzMap == null) return null;\n\t\tlet tileY: int32 = tileGridIndex.y;\n\t\tlet zMap: IntMap<TileIndex> = yzMap.get(tileY);\n\t\tif (zMap == null) return null;\n\t\tlet tileZ: int32 = tileGridIndex.z;\n\t\treturn zMap.get(tileZ);\n\t}\n}\n"]}
1
+ {"version":3,"file":"Block.js","sourceRoot":"","sources":["../../../../src/pointcloud/render/Block.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAYH,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAMxD;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,KAAK;IACjB,6BAA6B;IACrB,MAAM,CAAa;IAC3B,6FAA6F;IACrF,SAAS,CAAmB;IACpC,oCAAoC;IAC5B,QAAQ,CAAoC;IAEpD;;;OAGG;IACH,YAAmB,KAAiB;QACnC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACtB,CAAC;IAED;;;OAGG;IACI,aAAa;QACnB,OAAO,IAAI,CAAC,MAAM,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACI,cAAc,CAAC,KAAY;QACjC,OAAO,KAAK,CAAC,YAAY,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAClE,CAAC;IAED;;;;OAIM;IACE,MAAM,CAAC,aAAa,CAAC,YAA+B,EAAE,KAAiB;QAC9E,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE;YAAE,IAAI,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;gBAAE,OAAO;QAClG,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IAED;;;OAGG;IACI,QAAQ,CAAC,QAA0B;QACzC,oBAAoB;QACpB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,kBAAkB;QAClB,IAAI,CAAC,QAAQ,GAAG,IAAI,MAAM,EAA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IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QACvC,IAAI,KAAK,GAAU,aAAa,CAAC,CAAC,CAAC;QACnC,IAAI,KAAK,GAA8B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAChE,IAAI,KAAK,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAC/B,IAAI,KAAK,GAAU,aAAa,CAAC,CAAC,CAAC;QACnC,IAAI,IAAI,GAAsB,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC/C,IAAI,IAAI,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAC9B,IAAI,KAAK,GAAU,aAAa,CAAC,CAAC,CAAC;QACnC,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;CACD","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.render;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { Bounds } from \"../../spatial/geom/Bounds\";\nimport { AList } from \"../../system/collection/AList\";\nimport { IntMap } from \"../../system/collection/IntMap\";\nimport { BlockIndex } from \"../model/BlockIndex\";\nimport { GridIndex } from \"../model/GridIndex\";\nimport { TileIndex } from \"../model/TileIndex\";\nimport { Level } from \"./Level\";\n\n/**\n * Class Block defines a block of tiles.\n *\n * @version 1.0 November 2015\n */\n/** @internal */\nexport class Block {\n\t/** The index of the block */\n\tprivate _index: BlockIndex;\n\t/** The full list of tiles in the block (can be null if the tile-list has not been loaded) */\n\tprivate _tileList: Array<TileIndex>;\n\t/** The map of tiles in the block */\n\tprivate _tileMap: IntMap<IntMap<IntMap<TileIndex>>>;\n\n\t/**\n\t * Create a new block.\n\t * @param index the index of the block.\n\t */\n\tpublic constructor(index: BlockIndex) {\n\t\tthis._index = index;\n\t\tthis._tileList = null;\n\t\tthis._tileMap = null;\n\t}\n\n\t/**\n\t * Get the index of the block.\n\t * @return the index of the block.\n\t */\n\tpublic getBlockIndex(): BlockIndex {\n\t\treturn this._index;\n\t}\n\n\t/**\n\t * Get the spatial bounds of the block.\n\t * @param level the level to which the block belongs.\n\t * @return the spatial bounds of the block.\n\t */\n\tpublic getBlockBounds(level: Level): Bounds {\n\t\treturn level.getBlockGrid().getCellBounds(this._index.gridIndex);\n\t}\n\n\t/**\n\t * Add a block to the list of blocks to load.\n * @param blocksToLoad the list of blocks to load.\n * @param block the block to add.\n */\n\tprivate static addToLoadList(blocksToLoad: AList<BlockIndex>, block: BlockIndex): void {\n\t\tfor (let i: number = 0; i < blocksToLoad.size(); i++) if (blocksToLoad.get(i).same(block)) return;\n\t\tblocksToLoad.add(block);\n\t}\n\n\t/**\n\t * Set the tiles in the block.\n\t * @param tileList the list of tiles.\n\t */\n\tpublic setTiles(tileList: Array<TileIndex>): void {\n\t\t/* Store the list */\n\t\tthis._tileList = tileList;\n\t\t/* Make the map */\n\t\tthis._tileMap = new IntMap<IntMap<IntMap<TileIndex>>>();\n\t\tfor (let tile of this._tileList) {\n\t\t\tlet tileX: int32 = tile.gridIndex.x;\n\t\t\tlet yzMap: IntMap<IntMap<TileIndex>> = this._tileMap.get(tileX);\n\t\t\tif (yzMap == null) {\n\t\t\t\tyzMap = new IntMap<IntMap<TileIndex>>();\n\t\t\t\tthis._tileMap.set(tileX, yzMap);\n\t\t\t}\n\t\t\tlet tileY: int32 = tile.gridIndex.y;\n\t\t\tlet zMap: IntMap<TileIndex> = yzMap.get(tileY);\n\t\t\tif (zMap == null) {\n\t\t\t\tzMap = new IntMap<TileIndex>();\n\t\t\t\tyzMap.set(tileY, zMap);\n\t\t\t}\n\t\t\tlet tileZ: int32 = tile.gridIndex.z;\n\t\t\tzMap.set(tileZ, tile);\n\t\t}\n\t}\n\n\t/**\n\t * Have the tiles been set?\n\t * @return true if the tiles have been set.\n\t */\n\tpublic hasTiles(): boolean {\n\t\treturn (this._tileList != null);\n\t}\n\n\t/**\n\t * List all tiles.\n * @param blocksToLoad the list of blocks to load.\n\t * @return all tiles (null if tiles are not loaded).\n\t */\n\tpublic getTiles(blocksToLoad: AList<BlockIndex>): Array<TileIndex> {\n\t\tif (this._tileList == null) {\n\t\t\tBlock.addToLoadList(blocksToLoad, this._index);\n\t\t\treturn null;\n\t\t}\n\t\treturn this._tileList;\n\t}\n\n\t/**\n\t * Find a tile.\n * @param tileGridIndex the grid index of the tile.\n\t * @return the tile (null if not found).\n\t */\n\tpublic findTile(tileGridIndex: GridIndex): TileIndex {\n\t\tif (this._tileMap == null) return null;\n\t\tlet tileX: int32 = tileGridIndex.x;\n\t\tlet yzMap: IntMap<IntMap<TileIndex>> = this._tileMap.get(tileX);\n\t\tif (yzMap == null) return null;\n\t\tlet tileY: int32 = tileGridIndex.y;\n\t\tlet zMap: IntMap<TileIndex> = yzMap.get(tileY);\n\t\tif (zMap == null) return null;\n\t\tlet tileZ: int32 = tileGridIndex.z;\n\t\treturn zMap.get(tileZ);\n\t}\n}\n"]}
@@ -21,6 +21,42 @@ import { ViewTree } from "./ViewTree";
21
21
  */
22
22
  /** @internal */
23
23
  export class DataManager {
24
+ /** The name of this module */
25
+ static MODULE = "DataManager";
26
+ /** The maximum size of a single file-content request */
27
+ static MAX_FILE_CONTENT_SIZE = 128 * 1024;
28
+ /** The expire time to unload unused point data (seconds) */
29
+ static POINT_DATA_EXIRE_TIME = 5 * 60.0;
30
+ /** The reader of the pointcloud */
31
+ _pointCloudReader;
32
+ /*** The CRS of the pointcloud */
33
+ _pointCloudCRS;
34
+ /** The data format to read */
35
+ _dataFormat;
36
+ /** The spatial index */
37
+ _fileTileIndex;
38
+ /** The data pool */
39
+ _dataPool;
40
+ /** The set of levels we requested (index) */
41
+ _levelsLoading;
42
+ /** The set of levels we received (index) */
43
+ _levelsLoaded;
44
+ /** The set of blocks we requested (key) */
45
+ _blocksLoading;
46
+ /** The set of blocks we received (key) */
47
+ _blocksLoaded;
48
+ /** The set of tiles we requested (key) */
49
+ _tilesLoading;
50
+ /** The set of tiles we received (key) */
51
+ _tilesLoaded;
52
+ /** Is new data being loaded? */
53
+ _loadingData;
54
+ /** The time when the data loading stopped */
55
+ _loadedDataTime;
56
+ /** The total size of data that has been loaded */
57
+ _dataLoadSize;
58
+ /** The last garbage collection time */
59
+ _lastGarbageCollectTime;
24
60
  /**
25
61
  * Create a new data model (to be shared between different views).
26
62
  * @param pointCloudReader the reader of the pointcloud file.
@@ -330,10 +366,4 @@ export class DataManager {
330
366
  Message.print(DataManager.MODULE, "Dropped the point data of " + dropCount + " tiles");
331
367
  }
332
368
  }
333
- /** The name of this module */
334
- DataManager.MODULE = "DataManager";
335
- /** The maximum size of a single file-content request */
336
- DataManager.MAX_FILE_CONTENT_SIZE = 128 * 1024;
337
- /** The expire time to unload unused point data (seconds) */
338
- DataManager.POINT_DATA_EXIRE_TIME = 5 * 60.0;
339
369
  //# sourceMappingURL=DataManager.js.map