@itwin/core-orbitgt 5.5.0-dev.1 → 5.5.0-dev.2

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 (205) hide show
  1. package/lib/cjs/core-orbitgt.js.map +1 -1
  2. package/lib/cjs/pointcloud/format/opc/AttributeMask.js.map +1 -1
  3. package/lib/cjs/pointcloud/format/opc/AttributeReader.js.map +1 -1
  4. package/lib/cjs/pointcloud/format/opc/BlockRecord.js.map +1 -1
  5. package/lib/cjs/pointcloud/format/opc/ContainerFile.js.map +1 -1
  6. package/lib/cjs/pointcloud/format/opc/ContainerFilePart.js.map +1 -1
  7. package/lib/cjs/pointcloud/format/opc/DirectoryReader.js.map +1 -1
  8. package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js.map +1 -1
  9. package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -1
  10. package/lib/cjs/pointcloud/format/opc/FileAccess.js.map +1 -1
  11. package/lib/cjs/pointcloud/format/opc/FileReader.js.map +1 -1
  12. package/lib/cjs/pointcloud/format/opc/FileRecord.js.map +1 -1
  13. package/lib/cjs/pointcloud/format/opc/GeometryReader.js.map +1 -1
  14. package/lib/cjs/pointcloud/format/opc/GeometryRecord.js.map +1 -1
  15. package/lib/cjs/pointcloud/format/opc/OPCReader.js.map +1 -1
  16. package/lib/cjs/pointcloud/format/opc/PointReader.js.map +1 -1
  17. package/lib/cjs/pointcloud/format/opc/TileReadBuffer.js.map +1 -1
  18. package/lib/cjs/pointcloud/format/opc/TileRecord.js.map +1 -1
  19. package/lib/cjs/pointcloud/model/AttributeTypes.js.map +1 -1
  20. package/lib/cjs/pointcloud/model/AttributeValue.js.map +1 -1
  21. package/lib/cjs/pointcloud/model/BlockIndex.js.map +1 -1
  22. package/lib/cjs/pointcloud/model/CloudPoint.js.map +1 -1
  23. package/lib/cjs/pointcloud/model/Grid.js.map +1 -1
  24. package/lib/cjs/pointcloud/model/GridIndex.js.map +1 -1
  25. package/lib/cjs/pointcloud/model/PointAttribute.js.map +1 -1
  26. package/lib/cjs/pointcloud/model/PointCloudReader.js.map +1 -1
  27. package/lib/cjs/pointcloud/model/PointData.js.map +1 -1
  28. package/lib/cjs/pointcloud/model/PointDataRaw.js.map +1 -1
  29. package/lib/cjs/pointcloud/model/ReadRequest.js.map +1 -1
  30. package/lib/cjs/pointcloud/model/StandardAttributes.js.map +1 -1
  31. package/lib/cjs/pointcloud/model/TileIndex.js.map +1 -1
  32. package/lib/cjs/pointcloud/render/AViewRequest.js.map +1 -1
  33. package/lib/cjs/pointcloud/render/Block.js.map +1 -1
  34. package/lib/cjs/pointcloud/render/DataManager.js.map +1 -1
  35. package/lib/cjs/pointcloud/render/FrameData.js.map +1 -1
  36. package/lib/cjs/pointcloud/render/Level.js.map +1 -1
  37. package/lib/cjs/pointcloud/render/TileLoadSorter.js.map +1 -1
  38. package/lib/cjs/pointcloud/render/ViewTree.js.map +1 -1
  39. package/lib/cjs/spatial/crs/CRSEngine.js.map +1 -1
  40. package/lib/cjs/spatial/crs/CRSManager.js.map +1 -1
  41. package/lib/cjs/spatial/ecrs/Axis.js.map +1 -1
  42. package/lib/cjs/spatial/ecrs/CRS.js.map +1 -1
  43. package/lib/cjs/spatial/ecrs/CoordinateSystem.js.map +1 -1
  44. package/lib/cjs/spatial/ecrs/DataFileUnit.js.map +1 -1
  45. package/lib/cjs/spatial/ecrs/Datum.js.map +1 -1
  46. package/lib/cjs/spatial/ecrs/Ellipsoid.js.map +1 -1
  47. package/lib/cjs/spatial/ecrs/OnlineEngine.js.map +1 -1
  48. package/lib/cjs/spatial/ecrs/OnlineRegistry.js.map +1 -1
  49. package/lib/cjs/spatial/ecrs/Operation.js.map +1 -1
  50. package/lib/cjs/spatial/ecrs/OperationMethod.js.map +1 -1
  51. package/lib/cjs/spatial/ecrs/ParameterValue.js.map +1 -1
  52. package/lib/cjs/spatial/ecrs/ParameterValueList.js.map +1 -1
  53. package/lib/cjs/spatial/ecrs/PrimeMeridian.js.map +1 -1
  54. package/lib/cjs/spatial/ecrs/Registry.js.map +1 -1
  55. package/lib/cjs/spatial/ecrs/Transform.js.map +1 -1
  56. package/lib/cjs/spatial/ecrs/Unit.js.map +1 -1
  57. package/lib/cjs/spatial/ecrs/VerticalModel.js.map +1 -1
  58. package/lib/cjs/spatial/ecrs/WellKnownText.js.map +1 -1
  59. package/lib/cjs/spatial/ecrs/WellKnownTextNode.js.map +1 -1
  60. package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
  61. package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
  62. package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
  63. package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
  64. package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
  65. package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
  66. package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
  67. package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
  68. package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
  69. package/lib/cjs/spatial/ecrs/transformation/PositionVector.js.map +1 -1
  70. package/lib/cjs/spatial/geom/Bounds.js.map +1 -1
  71. package/lib/cjs/spatial/geom/Coordinate.js.map +1 -1
  72. package/lib/cjs/spatial/geom/Line.js.map +1 -1
  73. package/lib/cjs/spatial/geom/Transform.js.map +1 -1
  74. package/lib/cjs/system/buffer/ABuffer.js.map +1 -1
  75. package/lib/cjs/system/buffer/Float32Buffer.js.map +1 -1
  76. package/lib/cjs/system/buffer/LittleEndian.js.map +1 -1
  77. package/lib/cjs/system/buffer/Uint16Buffer.js.map +1 -1
  78. package/lib/cjs/system/buffer/Uint8Buffer.js.map +1 -1
  79. package/lib/cjs/system/collection/AList.js.map +1 -1
  80. package/lib/cjs/system/collection/IntMap.js.map +1 -1
  81. package/lib/cjs/system/collection/StringMap.js.map +1 -1
  82. package/lib/cjs/system/io/ABufferInStream.js.map +1 -1
  83. package/lib/cjs/system/io/InStream.js.map +1 -1
  84. package/lib/cjs/system/io/OutStream.js.map +1 -1
  85. package/lib/cjs/system/runtime/ALong.js.map +1 -1
  86. package/lib/cjs/system/runtime/ASystem.js.map +1 -1
  87. package/lib/cjs/system/runtime/Downloader.js.map +1 -1
  88. package/lib/cjs/system/runtime/DownloaderNode.js.map +1 -1
  89. package/lib/cjs/system/runtime/DownloaderXhr.js.map +1 -1
  90. package/lib/cjs/system/runtime/Message.js.map +1 -1
  91. package/lib/cjs/system/runtime/Numbers.js.map +1 -1
  92. package/lib/cjs/system/runtime/Strings.js.map +1 -1
  93. package/lib/cjs/system/runtime/iComparator.js.map +1 -1
  94. package/lib/cjs/system/storage/CacheList.js.map +1 -1
  95. package/lib/cjs/system/storage/CachedItem.js.map +1 -1
  96. package/lib/cjs/system/storage/ContentLoader.js.map +1 -1
  97. package/lib/cjs/system/storage/FileContent.js.map +1 -1
  98. package/lib/cjs/system/storage/FileRange.js.map +1 -1
  99. package/lib/cjs/system/storage/FileStorage.js.map +1 -1
  100. package/lib/cjs/system/storage/NodeFS.js.map +1 -1
  101. package/lib/cjs/system/storage/PageCachedFile.js.map +1 -1
  102. package/lib/cjs/system/storage/UrlFS.js.map +1 -1
  103. package/lib/esm/core-orbitgt.js.map +1 -1
  104. package/lib/esm/pointcloud/format/opc/AttributeMask.js.map +1 -1
  105. package/lib/esm/pointcloud/format/opc/AttributeReader.js.map +1 -1
  106. package/lib/esm/pointcloud/format/opc/BlockRecord.js.map +1 -1
  107. package/lib/esm/pointcloud/format/opc/ContainerFile.js.map +1 -1
  108. package/lib/esm/pointcloud/format/opc/ContainerFilePart.js.map +1 -1
  109. package/lib/esm/pointcloud/format/opc/DirectoryReader.js.map +1 -1
  110. package/lib/esm/pointcloud/format/opc/DirectoryRecord.js.map +1 -1
  111. package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -1
  112. package/lib/esm/pointcloud/format/opc/FileAccess.js.map +1 -1
  113. package/lib/esm/pointcloud/format/opc/FileReader.js.map +1 -1
  114. package/lib/esm/pointcloud/format/opc/FileRecord.js.map +1 -1
  115. package/lib/esm/pointcloud/format/opc/GeometryReader.js.map +1 -1
  116. package/lib/esm/pointcloud/format/opc/GeometryRecord.js.map +1 -1
  117. package/lib/esm/pointcloud/format/opc/OPCReader.js.map +1 -1
  118. package/lib/esm/pointcloud/format/opc/PointReader.js.map +1 -1
  119. package/lib/esm/pointcloud/format/opc/TileReadBuffer.js.map +1 -1
  120. package/lib/esm/pointcloud/format/opc/TileRecord.js.map +1 -1
  121. package/lib/esm/pointcloud/model/AttributeTypes.js.map +1 -1
  122. package/lib/esm/pointcloud/model/AttributeValue.js.map +1 -1
  123. package/lib/esm/pointcloud/model/BlockIndex.js.map +1 -1
  124. package/lib/esm/pointcloud/model/CloudPoint.js.map +1 -1
  125. package/lib/esm/pointcloud/model/Grid.js.map +1 -1
  126. package/lib/esm/pointcloud/model/GridIndex.js.map +1 -1
  127. package/lib/esm/pointcloud/model/PointAttribute.js.map +1 -1
  128. package/lib/esm/pointcloud/model/PointCloudReader.js.map +1 -1
  129. package/lib/esm/pointcloud/model/PointData.js.map +1 -1
  130. package/lib/esm/pointcloud/model/PointDataRaw.js.map +1 -1
  131. package/lib/esm/pointcloud/model/ReadRequest.js.map +1 -1
  132. package/lib/esm/pointcloud/model/StandardAttributes.js.map +1 -1
  133. package/lib/esm/pointcloud/model/TileIndex.js.map +1 -1
  134. package/lib/esm/pointcloud/render/AViewRequest.js.map +1 -1
  135. package/lib/esm/pointcloud/render/Block.js.map +1 -1
  136. package/lib/esm/pointcloud/render/DataManager.js.map +1 -1
  137. package/lib/esm/pointcloud/render/FrameData.js.map +1 -1
  138. package/lib/esm/pointcloud/render/Level.js.map +1 -1
  139. package/lib/esm/pointcloud/render/TileLoadSorter.js.map +1 -1
  140. package/lib/esm/pointcloud/render/ViewTree.js.map +1 -1
  141. package/lib/esm/spatial/crs/CRSEngine.js.map +1 -1
  142. package/lib/esm/spatial/crs/CRSManager.js.map +1 -1
  143. package/lib/esm/spatial/ecrs/Axis.js.map +1 -1
  144. package/lib/esm/spatial/ecrs/CRS.js.map +1 -1
  145. package/lib/esm/spatial/ecrs/CoordinateSystem.js.map +1 -1
  146. package/lib/esm/spatial/ecrs/DataFileUnit.js.map +1 -1
  147. package/lib/esm/spatial/ecrs/Datum.js.map +1 -1
  148. package/lib/esm/spatial/ecrs/Ellipsoid.js.map +1 -1
  149. package/lib/esm/spatial/ecrs/OnlineEngine.js.map +1 -1
  150. package/lib/esm/spatial/ecrs/OnlineRegistry.js.map +1 -1
  151. package/lib/esm/spatial/ecrs/Operation.js.map +1 -1
  152. package/lib/esm/spatial/ecrs/OperationMethod.js.map +1 -1
  153. package/lib/esm/spatial/ecrs/ParameterValue.js.map +1 -1
  154. package/lib/esm/spatial/ecrs/ParameterValueList.js.map +1 -1
  155. package/lib/esm/spatial/ecrs/PrimeMeridian.js.map +1 -1
  156. package/lib/esm/spatial/ecrs/Registry.js.map +1 -1
  157. package/lib/esm/spatial/ecrs/Transform.js.map +1 -1
  158. package/lib/esm/spatial/ecrs/Unit.js.map +1 -1
  159. package/lib/esm/spatial/ecrs/VerticalModel.js.map +1 -1
  160. package/lib/esm/spatial/ecrs/WellKnownText.js.map +1 -1
  161. package/lib/esm/spatial/ecrs/WellKnownTextNode.js.map +1 -1
  162. package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
  163. package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
  164. package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
  165. package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
  166. package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
  167. package/lib/esm/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
  168. package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
  169. package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
  170. package/lib/esm/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
  171. package/lib/esm/spatial/ecrs/transformation/PositionVector.js.map +1 -1
  172. package/lib/esm/spatial/geom/Bounds.js.map +1 -1
  173. package/lib/esm/spatial/geom/Coordinate.js.map +1 -1
  174. package/lib/esm/spatial/geom/Line.js.map +1 -1
  175. package/lib/esm/spatial/geom/Transform.js.map +1 -1
  176. package/lib/esm/system/buffer/ABuffer.js.map +1 -1
  177. package/lib/esm/system/buffer/Float32Buffer.js.map +1 -1
  178. package/lib/esm/system/buffer/LittleEndian.js.map +1 -1
  179. package/lib/esm/system/buffer/Uint16Buffer.js.map +1 -1
  180. package/lib/esm/system/buffer/Uint8Buffer.js.map +1 -1
  181. package/lib/esm/system/collection/AList.js.map +1 -1
  182. package/lib/esm/system/collection/IntMap.js.map +1 -1
  183. package/lib/esm/system/collection/StringMap.js.map +1 -1
  184. package/lib/esm/system/io/ABufferInStream.js.map +1 -1
  185. package/lib/esm/system/io/InStream.js.map +1 -1
  186. package/lib/esm/system/io/OutStream.js.map +1 -1
  187. package/lib/esm/system/runtime/ALong.js.map +1 -1
  188. package/lib/esm/system/runtime/ASystem.js.map +1 -1
  189. package/lib/esm/system/runtime/Downloader.js.map +1 -1
  190. package/lib/esm/system/runtime/DownloaderNode.js.map +1 -1
  191. package/lib/esm/system/runtime/DownloaderXhr.js.map +1 -1
  192. package/lib/esm/system/runtime/Message.js.map +1 -1
  193. package/lib/esm/system/runtime/Numbers.js.map +1 -1
  194. package/lib/esm/system/runtime/Strings.js.map +1 -1
  195. package/lib/esm/system/runtime/iComparator.js.map +1 -1
  196. package/lib/esm/system/storage/CacheList.js.map +1 -1
  197. package/lib/esm/system/storage/CachedItem.js.map +1 -1
  198. package/lib/esm/system/storage/ContentLoader.js.map +1 -1
  199. package/lib/esm/system/storage/FileContent.js.map +1 -1
  200. package/lib/esm/system/storage/FileRange.js.map +1 -1
  201. package/lib/esm/system/storage/FileStorage.js.map +1 -1
  202. package/lib/esm/system/storage/NodeFS.js.map +1 -1
  203. package/lib/esm/system/storage/PageCachedFile.js.map +1 -1
  204. package/lib/esm/system/storage/UrlFS.js.map +1 -1
  205. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"AttributeValue.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/AttributeValue.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAGhE,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;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,cAAc;IACvB,wBAAwB;IACjB,MAAM,CAAU,KAAK,GAAmB,cAAc,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACnF,uBAAuB;IAChB,MAAM,CAAU,IAAI,GAAmB,cAAc,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAEjF,eAAe;IACP,KAAK,CAAQ;IACrB,iDAAiD;IACzC,QAAQ,CAAQ;IACxB,+BAA+B;IACvB,QAAQ,CAAQ;IACxB,iCAAiC;IACzB,QAAQ,CAAU;IAC1B,iCAAiC;IACzB,QAAQ,CAAU;IAE1B;;OAEG;IACH;QACI,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;QACf,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,Q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S;YAAE,YAAY,CAAC,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;aACrG,IAAI,aAAa,IAAI,cAAc,CAAC,WAAW;YAAE,YAAY,CAAC,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;aAC1G,IAAI,aAAa,IAAI,cAAc,CAAC,WAAW;YAAE,YAAY,CAAC,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;aAC3G,IAAI,aAAa,IAAI,cAAc,CAAC,UAAU;YAAE,YAAY,CAAC,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;;YACvG,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,oCAAoC,GAAG,aAAa,CAAC,CAAC;IACvF,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { ABuffer } from \"../../system/buffer/ABuffer\";\r\nimport { LittleEndian } from \"../../system/buffer/LittleEndian\";\r\nimport { InStream } from \"../../system/io/InStream\";\r\nimport { OutStream } from \"../../system/io/OutStream\";\r\nimport { ALong } from \"../../system/runtime/ALong\";\r\nimport { ASystem } from \"../../system/runtime/ASystem\";\r\nimport { Numbers } from \"../../system/runtime/Numbers\";\r\nimport { AttributeTypes } from \"./AttributeTypes\";\r\n\r\n/**\r\n * Class AttributeValue holds a single (typed) attribute value.\r\n *\r\n * @version 1.0 August 2013\r\n */\r\n/** @internal */\r\nexport class AttributeValue {\r\n /** The 'false' value */\r\n public static readonly FALSE: AttributeValue = AttributeValue.createBoolean(false);\r\n /** The 'true' value */\r\n public static readonly TRUE: AttributeValue = AttributeValue.createBoolean(true);\r\n\r\n /** The type */\r\n private _type: int32;\r\n /** The value for boolean/int1/int2/int4 types */\r\n private _valueI4: int32;\r\n /** The value for int8 types */\r\n private _valueI8: ALong;\r\n /** The value for float4 types */\r\n private _valueF4: float32;\r\n /** The value for float8 types */\r\n private _valueF8: float64;\r\n\r\n /**\r\n * Create a new (empty) value.\r\n */\r\n public constructor() {\r\n this._type = 0;\r\n this._valueI4 = 0;\r\n this._valueI8 = ALong.ZERO;\r\n this._valueF4 = 0.0;\r\n this._valueF8 = 0.0;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createBoolean(value: boolean): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setBoolean(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createInt1(value: int32): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setInt1(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createInt2(value: int32): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setInt2(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createInt4(value: int32): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setInt4(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createInt8(value: ALong): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setInt8(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createFloat4(value: float32): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setFloat4(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createFloat8(value: float64): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setFloat8(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createColor(value: int32): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setColor(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Get the type.\r\n * @return the type.\r\n */\r\n public getType(): int32 {\r\n return this._type;\r\n }\r\n\r\n /**\r\n * Clear the value.\r\n */\r\n public clear(): void {\r\n this._type = 0;\r\n }\r\n\r\n /**\r\n * Is this an empty value?\r\n * @return true for empty.\r\n */\r\n public isEmpty(): boolean {\r\n return (this._type == 0);\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getBoolean(): boolean {\r\n return (this._valueI4 != 0);\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getBooleanAsInt(): int32 {\r\n return this._valueI4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setBoolean(value: boolean): void {\r\n this._type = AttributeTypes.TYPE_BOOLEAN;\r\n if (value) this._valueI4 = 1;\r\n else this._valueI4 = 0;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setBooleanFromInt(value: int32): void {\r\n this._type = AttributeTypes.TYPE_BOOLEAN;\r\n if (value == 0) this._valueI4 = 0;\r\n else this._valueI4 = 1;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getInt1(): int32 {\r\n return this._valueI4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setInt1(value: int32): void {\r\n this._type = AttributeTypes.TYPE_INT1;\r\n this._valueI4 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getInt2(): int32 {\r\n return this._valueI4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setInt2(value: int32): void {\r\n this._type = AttributeTypes.TYPE_INT2;\r\n this._valueI4 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getInt4(): int32 {\r\n return this._valueI4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setInt4(value: int32): void {\r\n this._type = AttributeTypes.TYPE_INT4;\r\n this._valueI4 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getInt8(): ALong {\r\n return this._valueI8;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setInt8(value: ALong): void {\r\n this._type = AttributeTypes.TYPE_INT8;\r\n this._valueI8 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getFloat4(): float32 {\r\n return this._valueF4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setFloat4(value: float32): void {\r\n this._type = AttributeTypes.TYPE_FLOAT4;\r\n this._valueF4 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getFloat8(): float64 {\r\n return this._valueF8;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setFloat8(value: float64): void {\r\n this._type = AttributeTypes.TYPE_FLOAT8;\r\n this._valueF8 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getColor(): int32 {\r\n return this._valueI4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setColor(value: int32): void {\r\n this._type = AttributeTypes.TYPE_COLOR;\r\n this._valueI4 = value;\r\n }\r\n\r\n /**\r\n * Check if the value equals another value.\r\n * @param other the other value.\r\n * @return true if same.\r\n */\r\n public same(other: AttributeValue): boolean {\r\n /* Check the type */\r\n if (other._type != this._type) return false;\r\n /* Check the value */\r\n if (this._type == AttributeTypes.TYPE_BOOLEAN) return (other._valueI4 == this._valueI4);\r\n if (this._type == AttributeTypes.TYPE_INT1) return (other._valueI4 == this._valueI4);\r\n if (this._type == AttributeTypes.TYPE_INT2) return (other._valueI4 == this._valueI4);\r\n if (this._type == AttributeTypes.TYPE_INT4) return (other._valueI4 == this._valueI4);\r\n if (this._type == AttributeTypes.TYPE_INT8) return (other._valueI8.same(this._valueI8));\r\n if (this._type == AttributeTypes.TYPE_FLOAT4) return (other._valueF4 == this._valueF4);\r\n if (this._type == AttributeTypes.TYPE_FLOAT8) return (other._valueF8 == this._valueF8);\r\n if (this._type == AttributeTypes.TYPE_COLOR) return (other._valueI4 == this._valueI4);\r\n /* Empty value */\r\n return true;\r\n }\r\n\r\n /**\r\n * Copy to another value.\r\n * @param other the other value to copy to.\r\n */\r\n public copyTo(other: AttributeValue): void {\r\n /* Copy the type */\r\n other._type = this._type;\r\n /* Check the value */\r\n if (this._type == AttributeTypes.TYPE_BOOLEAN) { other._valueI4 = this._valueI4; return; }\r\n if (this._type == AttributeTypes.TYPE_INT1) { other._valueI4 = this._valueI4; return; }\r\n if (this._type == AttributeTypes.TYPE_INT2) { other._valueI4 = this._valueI4; return; }\r\n if (this._type == AttributeTypes.TYPE_INT4) { other._valueI4 = this._valueI4; return; }\r\n if (this._type == AttributeTypes.TYPE_INT8) { other._valueI8 = this._valueI8; return; }\r\n if (this._type == AttributeTypes.TYPE_FLOAT4) { other._valueF4 = this._valueF4; return; }\r\n if (this._type == AttributeTypes.TYPE_FLOAT8) { other._valueF8 = this._valueF8; return; }\r\n if (this._type == AttributeTypes.TYPE_COLOR) { other._valueI4 = this._valueI4; return; }\r\n /* Empty value */\r\n }\r\n\r\n /**\r\n * Copy the value.\r\n * @return the copied value.\r\n */\r\n public copy(): AttributeValue {\r\n let copy: AttributeValue = new AttributeValue();\r\n this.copyTo(copy);\r\n return copy;\r\n }\r\n\r\n /**\r\n * Copy a list of values.\r\n * @return the copied values.\r\n */\r\n public static copyList(list: Array<AttributeValue>): Array<AttributeValue> {\r\n if (list == null) return null;\r\n let list2: Array<AttributeValue> = new Array<AttributeValue>(list.length);\r\n for (let i: number = 0; i < list.length; i++) list2[i] = list[i].copy();\r\n return list2;\r\n }\r\n\r\n /**\r\n * Get the value as a string.\r\n * @return the string.\r\n */\r\n public asString(): string {\r\n if (this._type == AttributeTypes.TYPE_BOOLEAN) return \"\" + this.getBoolean();\r\n else if (this._type == AttributeTypes.TYPE_INT1) return \"\" + this.getInt1();\r\n else if (this._type == AttributeTypes.TYPE_INT2) return \"\" + this.getInt2();\r\n else if (this._type == AttributeTypes.TYPE_INT4) return \"\" + this.getInt4();\r\n else if (this._type == AttributeTypes.TYPE_INT8) return \"\" + this.getInt8().toString();\r\n else if (this._type == AttributeTypes.TYPE_FLOAT4) return \"\" + this.getFloat4();\r\n else if (this._type == AttributeTypes.TYPE_FLOAT8) return \"\" + this.getFloat8();\r\n else if (this._type == AttributeTypes.TYPE_COLOR) return Numbers.rgbToString(this.getColor());\r\n return \"\";\r\n }\r\n\r\n /**\r\n * The standard toString method.\r\n * @see Object#toString\r\n */\r\n public toString(): string {\r\n return \"[AttributeValue:type=\" + AttributeTypes.getTypeName(this._type) + \",value=\" + this.asString() + \"]\";\r\n }\r\n\r\n /**\r\n * Create a default attribute value.\r\n * @param type the type of value.\r\n * @return a default value.\r\n */\r\n public static createDefault(type: int32): AttributeValue {\r\n if (type == AttributeTypes.TYPE_BOOLEAN) return AttributeValue.createBoolean(false);\r\n if (type == AttributeTypes.TYPE_INT1) return AttributeValue.createInt1(0);\r\n if (type == AttributeTypes.TYPE_INT2) return AttributeValue.createInt2(0);\r\n if (type == AttributeTypes.TYPE_INT4) return AttributeValue.createInt4(0);\r\n if (type == AttributeTypes.TYPE_INT8) return AttributeValue.createInt8(ALong.ZERO);\r\n if (type == AttributeTypes.TYPE_FLOAT4) return AttributeValue.createFloat4(0.0);\r\n if (type == AttributeTypes.TYPE_FLOAT8) return AttributeValue.createFloat8(0.0);\r\n if (type == AttributeTypes.TYPE_COLOR) return AttributeValue.createColor(0);\r\n ASystem.assertNot(true, \"Cannot create attribute value of type \" + type);\r\n return null;\r\n }\r\n\r\n /**\r\n * Read an attribute value.\r\n * @param buffer the buffer to read from.\r\n * @param bufferOffset the buffer offset to read from.\r\n * @param attributeType the type of the attribute.\r\n * @param the value to read into.\r\n */\r\n public static readFromBufferTo(buffer: ABuffer, bufferOffset: int32, attributeType: int32, value: AttributeValue): void {\r\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) value.setBoolean(LittleEndian.readBufferByte(buffer, bufferOffset) != 0);\r\n else if (attributeType == AttributeTypes.TYPE_INT1) value.setInt1(LittleEndian.readBufferByte(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_INT2) value.setInt2(LittleEndian.readBufferShort(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_INT4) value.setInt4(LittleEndian.readBufferInt(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_INT8) value.setInt8(LittleEndian.readBufferLong(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT4) value.setFloat4(LittleEndian.readBufferFloat(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT8) value.setFloat8(LittleEndian.readBufferDouble(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_COLOR) value.setColor(LittleEndian.readBufferInt3(buffer, bufferOffset));\r\n else ASystem.assertNot(true, \"Cannot read attribute value type \" + attributeType);\r\n }\r\n\r\n /**\r\n * Read an attribute value.\r\n * @param input the input stream to read from.\r\n * @param attributeType the type of the attribute.\r\n * @param the value to read into.\r\n */\r\n public static readFromStreamTo(stream: InStream, attributeType: int32, value: AttributeValue): void {\r\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) value.setBoolean(LittleEndian.readStreamByte(stream) != 0);\r\n else if (attributeType == AttributeTypes.TYPE_INT1) value.setInt1(LittleEndian.readStreamByte(stream));\r\n else if (attributeType == AttributeTypes.TYPE_INT2) value.setInt2(LittleEndian.readStreamShort(stream));\r\n else if (attributeType == AttributeTypes.TYPE_INT4) value.setInt4(LittleEndian.readStreamInt(stream));\r\n else if (attributeType == AttributeTypes.TYPE_INT8) value.setInt8(LittleEndian.readStreamLong(stream));\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT4) value.setFloat4(LittleEndian.readStreamFloat(stream));\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT8) value.setFloat8(LittleEndian.readStreamDouble(stream));\r\n else if (attributeType == AttributeTypes.TYPE_COLOR) value.setColor(LittleEndian.readStreamInt3(stream));\r\n else ASystem.assertNot(true, \"Cannot read attribute value type \" + attributeType);\r\n }\r\n\r\n /**\r\n * Read an attribute value.\r\n * @param input the input stream to read from.\r\n * @param attributeType the type of the attribute.\r\n * @return the value.\r\n */\r\n public static readFromStream(stream: InStream, attributeType: int32): AttributeValue {\r\n let value: AttributeValue = new AttributeValue();\r\n AttributeValue.readFromStreamTo(stream, attributeType, value);\r\n return value;\r\n }\r\n\r\n /**\r\n * Write an attribute value.\r\n * @param output the output stream to write to.\r\n * @param attributeType the type of the attribute.\r\n * @param value the value of the attribute.\r\n */\r\n public static writeToStream(stream: OutStream, attributeType: int32, value: AttributeValue): void {\r\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) LittleEndian.writeStreamByte(stream, value.getBooleanAsInt());\r\n else if (attributeType == AttributeTypes.TYPE_INT1) LittleEndian.writeStreamByte(stream, value.getInt1());\r\n else if (attributeType == AttributeTypes.TYPE_INT2) LittleEndian.writeStreamShort(stream, value.getInt2());\r\n else if (attributeType == AttributeTypes.TYPE_INT4) LittleEndian.writeStreamInt(stream, value.getInt4());\r\n else if (attributeType == AttributeTypes.TYPE_INT8) LittleEndian.writeStreamLong(stream, value.getInt8());\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT4) LittleEndian.writeStreamFloat(stream, value.getFloat4());\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT8) LittleEndian.writeStreamDouble(stream, value.getFloat8());\r\n else if (attributeType == AttributeTypes.TYPE_COLOR) LittleEndian.writeStreamInt3(stream, value.getColor());\r\n else ASystem.assertNot(true, \"Cannot write attribute value type \" + attributeType);\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"AttributeValue.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/AttributeValue.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAGhE,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;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,cAAc;IACvB,wBAAwB;IACjB,MAAM,CAAU,KAAK,GAAmB,cAAc,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACnF,uBAAuB;IAChB,MAAM,CAAU,IAAI,GAAmB,cAAc,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAEjF,eAAe;IACP,KAAK,CAAQ;IACrB,iDAAiD;IACzC,QAAQ,CAAQ;IACxB,+BAA+B;IACvB,QAAQ,CAAQ;IACxB,iCAAiC;IACzB,QAAQ,CAAU;IAC1B,iCAAiC;IACzB,QAAQ,CAAU;IAE1B;;OAEG;IACH;QACI,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;QACf,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,Q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S;YAAE,YAAY,CAAC,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;aACrG,IAAI,aAAa,IAAI,cAAc,CAAC,WAAW;YAAE,YAAY,CAAC,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;aAC1G,IAAI,aAAa,IAAI,cAAc,CAAC,WAAW;YAAE,YAAY,CAAC,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;aAC3G,IAAI,aAAa,IAAI,cAAc,CAAC,UAAU;YAAE,YAAY,CAAC,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;;YACvG,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,oCAAoC,GAAG,aAAa,CAAC,CAAC;IACvF,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 { ABuffer } from \"../../system/buffer/ABuffer\";\nimport { LittleEndian } from \"../../system/buffer/LittleEndian\";\nimport { InStream } from \"../../system/io/InStream\";\nimport { OutStream } from \"../../system/io/OutStream\";\nimport { ALong } from \"../../system/runtime/ALong\";\nimport { ASystem } from \"../../system/runtime/ASystem\";\nimport { Numbers } from \"../../system/runtime/Numbers\";\nimport { AttributeTypes } from \"./AttributeTypes\";\n\n/**\n * Class AttributeValue holds a single (typed) attribute value.\n *\n * @version 1.0 August 2013\n */\n/** @internal */\nexport class AttributeValue {\n /** The 'false' value */\n public static readonly FALSE: AttributeValue = AttributeValue.createBoolean(false);\n /** The 'true' value */\n public static readonly TRUE: AttributeValue = AttributeValue.createBoolean(true);\n\n /** The type */\n private _type: int32;\n /** The value for boolean/int1/int2/int4 types */\n private _valueI4: int32;\n /** The value for int8 types */\n private _valueI8: ALong;\n /** The value for float4 types */\n private _valueF4: float32;\n /** The value for float8 types */\n private _valueF8: float64;\n\n /**\n * Create a new (empty) value.\n */\n public constructor() {\n this._type = 0;\n this._valueI4 = 0;\n this._valueI8 = ALong.ZERO;\n this._valueF4 = 0.0;\n this._valueF8 = 0.0;\n }\n\n /**\n * Create a new value.\n * @param value the value.\n */\n public static createBoolean(value: boolean): AttributeValue {\n let avalue: AttributeValue = new AttributeValue();\n avalue.setBoolean(value);\n return avalue;\n }\n\n /**\n * Create a new value.\n * @param value the value.\n */\n public static createInt1(value: int32): AttributeValue {\n let avalue: AttributeValue = new AttributeValue();\n avalue.setInt1(value);\n return avalue;\n }\n\n /**\n * Create a new value.\n * @param value the value.\n */\n public static createInt2(value: int32): AttributeValue {\n let avalue: AttributeValue = new AttributeValue();\n avalue.setInt2(value);\n return avalue;\n }\n\n /**\n * Create a new value.\n * @param value the value.\n */\n public static createInt4(value: int32): AttributeValue {\n let avalue: AttributeValue = new AttributeValue();\n avalue.setInt4(value);\n return avalue;\n }\n\n /**\n * Create a new value.\n * @param value the value.\n */\n public static createInt8(value: ALong): AttributeValue {\n let avalue: AttributeValue = new AttributeValue();\n avalue.setInt8(value);\n return avalue;\n }\n\n /**\n * Create a new value.\n * @param value the value.\n */\n public static createFloat4(value: float32): AttributeValue {\n let avalue: AttributeValue = new AttributeValue();\n avalue.setFloat4(value);\n return avalue;\n }\n\n /**\n * Create a new value.\n * @param value the value.\n */\n public static createFloat8(value: float64): AttributeValue {\n let avalue: AttributeValue = new AttributeValue();\n avalue.setFloat8(value);\n return avalue;\n }\n\n /**\n * Create a new value.\n * @param value the value.\n */\n public static createColor(value: int32): AttributeValue {\n let avalue: AttributeValue = new AttributeValue();\n avalue.setColor(value);\n return avalue;\n }\n\n /**\n * Get the type.\n * @return the type.\n */\n public getType(): int32 {\n return this._type;\n }\n\n /**\n * Clear the value.\n */\n public clear(): void {\n this._type = 0;\n }\n\n /**\n * Is this an empty value?\n * @return true for empty.\n */\n public isEmpty(): boolean {\n return (this._type == 0);\n }\n\n /**\n * Get the value.\n * @return the value.\n */\n public getBoolean(): boolean {\n return (this._valueI4 != 0);\n }\n\n /**\n * Get the value.\n * @return the value.\n */\n public getBooleanAsInt(): int32 {\n return this._valueI4;\n }\n\n /**\n * Set the value.\n * @param value the new value.\n */\n public setBoolean(value: boolean): void {\n this._type = AttributeTypes.TYPE_BOOLEAN;\n if (value) this._valueI4 = 1;\n else this._valueI4 = 0;\n }\n\n /**\n * Set the value.\n * @param value the new value.\n */\n public setBooleanFromInt(value: int32): void {\n this._type = AttributeTypes.TYPE_BOOLEAN;\n if (value == 0) this._valueI4 = 0;\n else this._valueI4 = 1;\n }\n\n /**\n * Get the value.\n * @return the value.\n */\n public getInt1(): int32 {\n return this._valueI4;\n }\n\n /**\n * Set the value.\n * @param value the new value.\n */\n public setInt1(value: int32): void {\n this._type = AttributeTypes.TYPE_INT1;\n this._valueI4 = value;\n }\n\n /**\n * Get the value.\n * @return the value.\n */\n public getInt2(): int32 {\n return this._valueI4;\n }\n\n /**\n * Set the value.\n * @param value the new value.\n */\n public setInt2(value: int32): void {\n this._type = AttributeTypes.TYPE_INT2;\n this._valueI4 = value;\n }\n\n /**\n * Get the value.\n * @return the value.\n */\n public getInt4(): int32 {\n return this._valueI4;\n }\n\n /**\n * Set the value.\n * @param value the new value.\n */\n public setInt4(value: int32): void {\n this._type = AttributeTypes.TYPE_INT4;\n this._valueI4 = value;\n }\n\n /**\n * Get the value.\n * @return the value.\n */\n public getInt8(): ALong {\n return this._valueI8;\n }\n\n /**\n * Set the value.\n * @param value the new value.\n */\n public setInt8(value: ALong): void {\n this._type = AttributeTypes.TYPE_INT8;\n this._valueI8 = value;\n }\n\n /**\n * Get the value.\n * @return the value.\n */\n public getFloat4(): float32 {\n return this._valueF4;\n }\n\n /**\n * Set the value.\n * @param value the new value.\n */\n public setFloat4(value: float32): void {\n this._type = AttributeTypes.TYPE_FLOAT4;\n this._valueF4 = value;\n }\n\n /**\n * Get the value.\n * @return the value.\n */\n public getFloat8(): float64 {\n return this._valueF8;\n }\n\n /**\n * Set the value.\n * @param value the new value.\n */\n public setFloat8(value: float64): void {\n this._type = AttributeTypes.TYPE_FLOAT8;\n this._valueF8 = value;\n }\n\n /**\n * Get the value.\n * @return the value.\n */\n public getColor(): int32 {\n return this._valueI4;\n }\n\n /**\n * Set the value.\n * @param value the new value.\n */\n public setColor(value: int32): void {\n this._type = AttributeTypes.TYPE_COLOR;\n this._valueI4 = value;\n }\n\n /**\n * Check if the value equals another value.\n * @param other the other value.\n * @return true if same.\n */\n public same(other: AttributeValue): boolean {\n /* Check the type */\n if (other._type != this._type) return false;\n /* Check the value */\n if (this._type == AttributeTypes.TYPE_BOOLEAN) return (other._valueI4 == this._valueI4);\n if (this._type == AttributeTypes.TYPE_INT1) return (other._valueI4 == this._valueI4);\n if (this._type == AttributeTypes.TYPE_INT2) return (other._valueI4 == this._valueI4);\n if (this._type == AttributeTypes.TYPE_INT4) return (other._valueI4 == this._valueI4);\n if (this._type == AttributeTypes.TYPE_INT8) return (other._valueI8.same(this._valueI8));\n if (this._type == AttributeTypes.TYPE_FLOAT4) return (other._valueF4 == this._valueF4);\n if (this._type == AttributeTypes.TYPE_FLOAT8) return (other._valueF8 == this._valueF8);\n if (this._type == AttributeTypes.TYPE_COLOR) return (other._valueI4 == this._valueI4);\n /* Empty value */\n return true;\n }\n\n /**\n * Copy to another value.\n * @param other the other value to copy to.\n */\n public copyTo(other: AttributeValue): void {\n /* Copy the type */\n other._type = this._type;\n /* Check the value */\n if (this._type == AttributeTypes.TYPE_BOOLEAN) { other._valueI4 = this._valueI4; return; }\n if (this._type == AttributeTypes.TYPE_INT1) { other._valueI4 = this._valueI4; return; }\n if (this._type == AttributeTypes.TYPE_INT2) { other._valueI4 = this._valueI4; return; }\n if (this._type == AttributeTypes.TYPE_INT4) { other._valueI4 = this._valueI4; return; }\n if (this._type == AttributeTypes.TYPE_INT8) { other._valueI8 = this._valueI8; return; }\n if (this._type == AttributeTypes.TYPE_FLOAT4) { other._valueF4 = this._valueF4; return; }\n if (this._type == AttributeTypes.TYPE_FLOAT8) { other._valueF8 = this._valueF8; return; }\n if (this._type == AttributeTypes.TYPE_COLOR) { other._valueI4 = this._valueI4; return; }\n /* Empty value */\n }\n\n /**\n * Copy the value.\n * @return the copied value.\n */\n public copy(): AttributeValue {\n let copy: AttributeValue = new AttributeValue();\n this.copyTo(copy);\n return copy;\n }\n\n /**\n * Copy a list of values.\n * @return the copied values.\n */\n public static copyList(list: Array<AttributeValue>): Array<AttributeValue> {\n if (list == null) return null;\n let list2: Array<AttributeValue> = new Array<AttributeValue>(list.length);\n for (let i: number = 0; i < list.length; i++) list2[i] = list[i].copy();\n return list2;\n }\n\n /**\n * Get the value as a string.\n * @return the string.\n */\n public asString(): string {\n if (this._type == AttributeTypes.TYPE_BOOLEAN) return \"\" + this.getBoolean();\n else if (this._type == AttributeTypes.TYPE_INT1) return \"\" + this.getInt1();\n else if (this._type == AttributeTypes.TYPE_INT2) return \"\" + this.getInt2();\n else if (this._type == AttributeTypes.TYPE_INT4) return \"\" + this.getInt4();\n else if (this._type == AttributeTypes.TYPE_INT8) return \"\" + this.getInt8().toString();\n else if (this._type == AttributeTypes.TYPE_FLOAT4) return \"\" + this.getFloat4();\n else if (this._type == AttributeTypes.TYPE_FLOAT8) return \"\" + this.getFloat8();\n else if (this._type == AttributeTypes.TYPE_COLOR) return Numbers.rgbToString(this.getColor());\n return \"\";\n }\n\n /**\n * The standard toString method.\n * @see Object#toString\n */\n public toString(): string {\n return \"[AttributeValue:type=\" + AttributeTypes.getTypeName(this._type) + \",value=\" + this.asString() + \"]\";\n }\n\n /**\n * Create a default attribute value.\n * @param type the type of value.\n * @return a default value.\n */\n public static createDefault(type: int32): AttributeValue {\n if (type == AttributeTypes.TYPE_BOOLEAN) return AttributeValue.createBoolean(false);\n if (type == AttributeTypes.TYPE_INT1) return AttributeValue.createInt1(0);\n if (type == AttributeTypes.TYPE_INT2) return AttributeValue.createInt2(0);\n if (type == AttributeTypes.TYPE_INT4) return AttributeValue.createInt4(0);\n if (type == AttributeTypes.TYPE_INT8) return AttributeValue.createInt8(ALong.ZERO);\n if (type == AttributeTypes.TYPE_FLOAT4) return AttributeValue.createFloat4(0.0);\n if (type == AttributeTypes.TYPE_FLOAT8) return AttributeValue.createFloat8(0.0);\n if (type == AttributeTypes.TYPE_COLOR) return AttributeValue.createColor(0);\n ASystem.assertNot(true, \"Cannot create attribute value of type \" + type);\n return null;\n }\n\n /**\n * Read an attribute value.\n * @param buffer the buffer to read from.\n * @param bufferOffset the buffer offset to read from.\n * @param attributeType the type of the attribute.\n * @param the value to read into.\n */\n public static readFromBufferTo(buffer: ABuffer, bufferOffset: int32, attributeType: int32, value: AttributeValue): void {\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) value.setBoolean(LittleEndian.readBufferByte(buffer, bufferOffset) != 0);\n else if (attributeType == AttributeTypes.TYPE_INT1) value.setInt1(LittleEndian.readBufferByte(buffer, bufferOffset));\n else if (attributeType == AttributeTypes.TYPE_INT2) value.setInt2(LittleEndian.readBufferShort(buffer, bufferOffset));\n else if (attributeType == AttributeTypes.TYPE_INT4) value.setInt4(LittleEndian.readBufferInt(buffer, bufferOffset));\n else if (attributeType == AttributeTypes.TYPE_INT8) value.setInt8(LittleEndian.readBufferLong(buffer, bufferOffset));\n else if (attributeType == AttributeTypes.TYPE_FLOAT4) value.setFloat4(LittleEndian.readBufferFloat(buffer, bufferOffset));\n else if (attributeType == AttributeTypes.TYPE_FLOAT8) value.setFloat8(LittleEndian.readBufferDouble(buffer, bufferOffset));\n else if (attributeType == AttributeTypes.TYPE_COLOR) value.setColor(LittleEndian.readBufferInt3(buffer, bufferOffset));\n else ASystem.assertNot(true, \"Cannot read attribute value type \" + attributeType);\n }\n\n /**\n * Read an attribute value.\n * @param input the input stream to read from.\n * @param attributeType the type of the attribute.\n * @param the value to read into.\n */\n public static readFromStreamTo(stream: InStream, attributeType: int32, value: AttributeValue): void {\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) value.setBoolean(LittleEndian.readStreamByte(stream) != 0);\n else if (attributeType == AttributeTypes.TYPE_INT1) value.setInt1(LittleEndian.readStreamByte(stream));\n else if (attributeType == AttributeTypes.TYPE_INT2) value.setInt2(LittleEndian.readStreamShort(stream));\n else if (attributeType == AttributeTypes.TYPE_INT4) value.setInt4(LittleEndian.readStreamInt(stream));\n else if (attributeType == AttributeTypes.TYPE_INT8) value.setInt8(LittleEndian.readStreamLong(stream));\n else if (attributeType == AttributeTypes.TYPE_FLOAT4) value.setFloat4(LittleEndian.readStreamFloat(stream));\n else if (attributeType == AttributeTypes.TYPE_FLOAT8) value.setFloat8(LittleEndian.readStreamDouble(stream));\n else if (attributeType == AttributeTypes.TYPE_COLOR) value.setColor(LittleEndian.readStreamInt3(stream));\n else ASystem.assertNot(true, \"Cannot read attribute value type \" + attributeType);\n }\n\n /**\n * Read an attribute value.\n * @param input the input stream to read from.\n * @param attributeType the type of the attribute.\n * @return the value.\n */\n public static readFromStream(stream: InStream, attributeType: int32): AttributeValue {\n let value: AttributeValue = new AttributeValue();\n AttributeValue.readFromStreamTo(stream, attributeType, value);\n return value;\n }\n\n /**\n * Write an attribute value.\n * @param output the output stream to write to.\n * @param attributeType the type of the attribute.\n * @param value the value of the attribute.\n */\n public static writeToStream(stream: OutStream, attributeType: int32, value: AttributeValue): void {\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) LittleEndian.writeStreamByte(stream, value.getBooleanAsInt());\n else if (attributeType == AttributeTypes.TYPE_INT1) LittleEndian.writeStreamByte(stream, value.getInt1());\n else if (attributeType == AttributeTypes.TYPE_INT2) LittleEndian.writeStreamShort(stream, value.getInt2());\n else if (attributeType == AttributeTypes.TYPE_INT4) LittleEndian.writeStreamInt(stream, value.getInt4());\n else if (attributeType == AttributeTypes.TYPE_INT8) LittleEndian.writeStreamLong(stream, value.getInt8());\n else if (attributeType == AttributeTypes.TYPE_FLOAT4) LittleEndian.writeStreamFloat(stream, value.getFloat4());\n else if (attributeType == AttributeTypes.TYPE_FLOAT8) LittleEndian.writeStreamDouble(stream, value.getFloat8());\n else if (attributeType == AttributeTypes.TYPE_COLOR) LittleEndian.writeStreamInt3(stream, value.getColor());\n else ASystem.assertNot(true, \"Cannot write attribute value type \" + attributeType);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"BlockIndex.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/BlockIndex.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAcH;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,UAAU;IACnB,gBAAgB;IACT,KAAK,CAAQ;IACpB,kCAAkC;IAC3B,GAAG,CAAS;IACnB,0CAA0C;IACnC,KAAK,CAAQ;IACpB,qBAAqB;IACd,SAAS,CAAY;IAC5B,yDAAyD;IAClD,SAAS,CAAQ;IACxB,qBAAqB;IACd,SAAS,CAAQ;IACxB,0DAA0D;IACnD,UAAU,CAAQ;IACzB,sBAAsB;IACf,UAAU,CAAQ;IACzB,2BAA2B;IACpB,UAAU,CAAU;IAE3B;;OAEG;IACH,YAAmB,KAAY,EAAE,KAAY,EAAE,SAAoB,EAAE,SAAgB,EAAE,SAAgB,EAAE,UAAiB,EAAE,UAAiB;QACzI,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,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,KAAiB;QACzB,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":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\n\r\nimport { ALong } from \"../../system/runtime/ALong\";\r\nimport { GridIndex } from \"./GridIndex\";\r\n\r\n/**\r\n * Class BlockIndex defines a block index in a pointcloud file.\r\n *\r\n * @version 1.0 January 2014\r\n */\r\n/** @internal */\r\nexport class BlockIndex {\r\n /** The level */\r\n public level: int32;\r\n /** The unique key of the block */\r\n public key: string;\r\n /** The index of the block in the level */\r\n public index: int32;\r\n /** The grid index */\r\n public gridIndex: GridIndex;\r\n /** The index of the first tile in the block (derived) */\r\n public tileIndex: int32;\r\n /** The tile count */\r\n public tileCount: int32;\r\n /** The index of the first point in the block (derived) */\r\n public pointIndex: ALong;\r\n /** The point count */\r\n public pointCount: ALong;\r\n /** The last access time */\r\n public accessTime: float64;\r\n\r\n /**\r\n * Create a new index.\r\n */\r\n public constructor(level: int32, index: int32, gridIndex: GridIndex, tileIndex: int32, tileCount: int32, pointIndex: ALong, pointCount: ALong) {\r\n this.level = level;\r\n this.index = index;\r\n this.gridIndex = gridIndex;\r\n this.tileIndex = tileIndex;\r\n this.tileCount = tileCount;\r\n this.pointIndex = pointIndex;\r\n this.pointCount = pointCount;\r\n this.accessTime = 0.0;\r\n this.key = (\"L\" + this.level + \",B:\" + this.index);\r\n }\r\n\r\n /**\r\n * Check if two indexes are the same.\r\n * @param other another index.\r\n * @return true if same.\r\n */\r\n public same(other: BlockIndex): boolean {\r\n return (other.level == this.level) && (other.index == this.index);\r\n }\r\n\r\n /**\r\n * Get the unique key of the block in the pointcloud file.\r\n * @return the unique key (combines level and grid index).\r\n */\r\n public getKey(): string {\r\n return \"B\" + this.level + \"/\" + this.gridIndex.x + \"/\" + this.gridIndex.y + \"/\" + this.gridIndex.z;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"BlockIndex.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/BlockIndex.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAcH;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,UAAU;IACnB,gBAAgB;IACT,KAAK,CAAQ;IACpB,kCAAkC;IAC3B,GAAG,CAAS;IACnB,0CAA0C;IACnC,KAAK,CAAQ;IACpB,qBAAqB;IACd,SAAS,CAAY;IAC5B,yDAAyD;IAClD,SAAS,CAAQ;IACxB,qBAAqB;IACd,SAAS,CAAQ;IACxB,0DAA0D;IACnD,UAAU,CAAQ;IACzB,sBAAsB;IACf,UAAU,CAAQ;IACzB,2BAA2B;IACpB,UAAU,CAAU;IAE3B;;OAEG;IACH,YAAmB,KAAY,EAAE,KAAY,EAAE,SAAoB,EAAE,SAAgB,EAAE,SAAgB,EAAE,UAAiB,EAAE,UAAiB;QACzI,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,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,KAAiB;QACzB,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 BlockIndex defines a block index in a pointcloud file.\n *\n * @version 1.0 January 2014\n */\n/** @internal */\nexport class BlockIndex {\n /** The level */\n public level: int32;\n /** The unique key of the block */\n public key: string;\n /** The index of the block in the level */\n public index: int32;\n /** The grid index */\n public gridIndex: GridIndex;\n /** The index of the first tile in the block (derived) */\n public tileIndex: int32;\n /** The tile count */\n public tileCount: int32;\n /** The index of the first point in the block (derived) */\n public pointIndex: ALong;\n /** The point count */\n public pointCount: ALong;\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, tileIndex: int32, tileCount: int32, pointIndex: ALong, pointCount: ALong) {\n this.level = level;\n this.index = index;\n this.gridIndex = gridIndex;\n this.tileIndex = tileIndex;\n this.tileCount = tileCount;\n this.pointIndex = pointIndex;\n this.pointCount = pointCount;\n this.accessTime = 0.0;\n this.key = (\"L\" + this.level + \",B:\" + 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: BlockIndex): boolean {\n return (other.level == this.level) && (other.index == this.index);\n }\n\n /**\n * Get the unique key of the block in the pointcloud file.\n * @return the unique key (combines level and grid index).\n */\n public getKey(): string {\n return \"B\" + this.level + \"/\" + this.gridIndex.x + \"/\" + this.gridIndex.y + \"/\" + this.gridIndex.z;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CloudPoint.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/CloudPoint.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,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,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G,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1D,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;QACzF,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAC/E,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;QAClE,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5D,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;QAChE,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI;YAAE,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,EAAE;gBAAE,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACtM,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Coordinate } from \"../../spatial/geom/Coordinate\";\r\nimport { ALong } from \"../../system/runtime/ALong\";\r\nimport { Message } from \"../../system/runtime/Message\";\r\nimport { Numbers } from \"../../system/runtime/Numbers\";\r\nimport { AttributeValue } from \"./AttributeValue\";\r\nimport { PointAttribute } from \"./PointAttribute\";\r\n\r\n/**\r\n * Class CloudPoint defines a point in the point cloud.\r\n *\r\n * @version 1.0 November 2011\r\n */\r\n/** @internal */\r\nexport class CloudPoint {\r\n /** The name of this module */\r\n private static readonly MODULE: string = \"CloudPoint\";\r\n\r\n /** The index */\r\n private _index: ALong;\r\n /** The x position */\r\n private _x: float64;\r\n /** The y position */\r\n private _y: float64;\r\n /** The z position */\r\n private _z: float64;\r\n /** The ARGB color */\r\n private _color: int32;\r\n /** The intensity */\r\n private _intensity: int32;\r\n /** The weight */\r\n private _weight: int32;\r\n /** Has the point been selected? */\r\n private _selected: boolean;\r\n\r\n /** The definitions of the extra attributes */\r\n private _attributes: Array<PointAttribute>;\r\n /** The values of the extra attributes */\r\n private _values: Array<AttributeValue>;\r\n\r\n /**\r\n * Create a new point.\r\n */\r\n public constructor() {\r\n this._index = ALong.ZERO;\r\n this._x = 0.0;\r\n this._y = 0.0;\r\n this._z = 0.0;\r\n this._color = 0;\r\n this._intensity = 0;\r\n this._weight = 0;\r\n this._selected = false;\r\n this._attributes = null;\r\n this._values = null;\r\n }\r\n\r\n /**\r\n * Create a new point.\r\n * @param index the index of the point.\r\n * @param x the x position.\r\n * @param y the y position.\r\n * @param z the z position.\r\n * @param color the ARGB color.\r\n * @param intensity the intensity.\r\n * @return the new point.\r\n */\r\n public static create(index: ALong, x: float64, y: float64, z: float64, color: int32, intensity: int32): CloudPoint {\r\n let point: CloudPoint = new CloudPoint();\r\n point._index = index;\r\n point._x = x;\r\n point._y = y;\r\n point._z = z;\r\n point._color = color;\r\n point._intensity = intensity;\r\n return point;\r\n }\r\n\r\n /**\r\n * Create a new point.\r\n * @param attributes the definitions of the attributes.\r\n * @return the new point.\r\n */\r\n public static createWithAttributes(attributes: Array<PointAttribute>): CloudPoint {\r\n let point: CloudPoint = new CloudPoint();\r\n point._attributes = attributes;\r\n if (attributes != null) {\r\n point._values = new Array<AttributeValue>(attributes.length);\r\n for (let i: number = 0; i < attributes.length; i++) point._values[i] = new AttributeValue();\r\n }\r\n return point;\r\n }\r\n\r\n /**\r\n * Clear the point.\r\n */\r\n public clear(): void {\r\n this._index = ALong.ZERO;\r\n this._x = 0.0;\r\n this._y = 0.0;\r\n this._z = 0.0;\r\n this._color = 0;\r\n this._intensity = 0;\r\n this._weight = 0;\r\n this._selected = false;\r\n }\r\n\r\n /**\r\n * Get the index.\r\n * @return the index.\r\n */\r\n public getIndex(): ALong {\r\n return this._index;\r\n }\r\n\r\n /**\r\n * Set the index.\r\n * @param index the index.\r\n */\r\n public setIndex(index: ALong): void {\r\n this._index = index;\r\n }\r\n\r\n /**\r\n * Get the x position.\r\n * @return the x position.\r\n */\r\n public getX(): float64 {\r\n return this._x;\r\n }\r\n\r\n /**\r\n * Set the x position.\r\n * @param x the new x position.\r\n */\r\n public setX(x: float64): void {\r\n this._x = x;\r\n }\r\n\r\n /**\r\n * Get the y position.\r\n * @return the y position.\r\n */\r\n public getY(): float64 {\r\n return this._y;\r\n }\r\n\r\n /**\r\n * Set the y position.\r\n * @param y the new y position.\r\n */\r\n public setY(y: float64): void {\r\n this._y = y;\r\n }\r\n\r\n /**\r\n * Get the z position.\r\n * @return the z position.\r\n */\r\n public getZ(): float64 {\r\n return this._z;\r\n }\r\n\r\n /**\r\n * Set the z position.\r\n * @param z the new z position.\r\n */\r\n public setZ(z: float64): void {\r\n this._z = z;\r\n }\r\n\r\n /**\r\n * Get the ARGB color.\r\n * @return the color.\r\n */\r\n public getColor(): int32 {\r\n return this._color;\r\n }\r\n\r\n /**\r\n * Set the color.\r\n * @param color the new color.\r\n */\r\n public setColor(color: int32): void {\r\n this._color = color;\r\n }\r\n\r\n /**\r\n * Get the intensity.\r\n * @return the intensity.\r\n */\r\n public getIntensity(): int32 {\r\n return this._intensity;\r\n }\r\n\r\n /**\r\n * Set the intensity.\r\n * @param intensity the new intensity.\r\n */\r\n public setIntensity(intensity: int32): void {\r\n this._intensity = intensity;\r\n }\r\n\r\n /**\r\n * Get the weight.\r\n * @return the weight.\r\n */\r\n public getWeight(): int32 {\r\n return this._weight;\r\n }\r\n\r\n /**\r\n * Set the weight.\r\n * @param weight the weight.\r\n */\r\n public setWeight(weight: int32): void {\r\n this._weight = weight;\r\n }\r\n\r\n /**\r\n * Has the point been selected?\r\n * @return true if selected.\r\n */\r\n public isSelected(): boolean {\r\n return this._selected;\r\n }\r\n\r\n /**\r\n * Select the point.\r\n * @param selected true if the point has been selected.\r\n */\r\n public setSelected(selected: boolean): void {\r\n this._selected = selected;\r\n }\r\n\r\n /**\r\n * Get the attribute definitions.\r\n * @return the attribute definitions.\r\n */\r\n public getAttributes(): Array<PointAttribute> {\r\n return this._attributes;\r\n }\r\n\r\n /**\r\n * Get an attribute definitions.\r\n * @param index the index of the attribute.\r\n * @return an attribute definitions.\r\n */\r\n public getAttribute(index: int32): PointAttribute {\r\n return this._attributes[index];\r\n }\r\n\r\n /**\r\n * Get the attribute values.\r\n * @return the attribute values.\r\n */\r\n public getAttributeValues(): Array<AttributeValue> {\r\n return this._values;\r\n }\r\n\r\n /**\r\n * Get an attribute value.\r\n * @param index the index of the value.\r\n * @return the value.\r\n */\r\n public getAttributeValue(index: int32): AttributeValue {\r\n return this._values[index];\r\n }\r\n\r\n /**\r\n * Get an attribute value.\r\n * @param attributeName the name of the attribute.\r\n * @return the value.\r\n */\r\n public getNamedAttributeValue(attributeName: string): AttributeValue {\r\n let index: int32 = PointAttribute.indexOfName(this._attributes, attributeName);\r\n return (index < 0) ? (null) : this._values[index];\r\n }\r\n\r\n /**\r\n * Set the attributes.\r\n * @param attributes the definitions of the attributes.\r\n * @param values the values of the attributes.\r\n */\r\n public setAttributes(attributes: Array<PointAttribute>, values: Array<AttributeValue>): void {\r\n this._attributes = attributes;\r\n this._values = values;\r\n }\r\n\r\n /**\r\n * Copy the values to another point.\r\n * @param other the other point.\r\n */\r\n public copyTo(other: CloudPoint): void {\r\n other._index = this._index;\r\n other._x = this._x;\r\n other._y = this._y;\r\n other._z = this._z;\r\n other._color = this._color;\r\n other._intensity = this._intensity;\r\n other._weight = this._weight;\r\n other._selected = this._selected;\r\n other._attributes = this._attributes;\r\n other._values = AttributeValue.copyList(this._values);\r\n }\r\n\r\n /**\r\n * Make a copy.\r\n * @return a copy.\r\n */\r\n public copy(): CloudPoint {\r\n let copy: CloudPoint = new CloudPoint();\r\n this.copyTo(copy);\r\n return copy;\r\n }\r\n\r\n /**\r\n * Get the distance to another point.\r\n * @param other the other point.\r\n * @return the distance.\r\n */\r\n public getDistance(other: CloudPoint): float64 {\r\n let dx: float64 = (other._x - this._x);\r\n let dy: float64 = (other._y - this._y);\r\n let dz: float64 = (other._z - this._z);\r\n return Math.sqrt(dx * dx + dy * dy + dz * dz);\r\n }\r\n\r\n /**\r\n * Get the square distance to another point.\r\n * @param other the other point.\r\n * @return the square distance.\r\n */\r\n public getSquareDistance(other: CloudPoint): float64 {\r\n let dx: float64 = (other._x - this._x);\r\n let dy: float64 = (other._y - this._y);\r\n let dz: float64 = (other._z - this._z);\r\n return (dx * dx + dy * dy + dz * dz);\r\n }\r\n\r\n /**\r\n * Get a coordinate.\r\n * @return a coordinate.\r\n */\r\n public getCoordinate(): Coordinate {\r\n return new Coordinate(this._x, this._y, this._z);\r\n }\r\n\r\n /**\r\n * Print the point.\r\n */\r\n public print(): void {\r\n Message.print(CloudPoint.MODULE, \"Index: \" + this._index);\r\n Message.print(CloudPoint.MODULE, \"Position: \" + this._x + \",\" + this._y + \",\" + this._z);\r\n Message.print(CloudPoint.MODULE, \"Color: \" + Numbers.rgbToString(this._color));\r\n Message.print(CloudPoint.MODULE, \"Intensity: \" + this._intensity);\r\n Message.print(CloudPoint.MODULE, \"Weight: \" + this._weight);\r\n Message.print(CloudPoint.MODULE, \"Selected? \" + this._selected);\r\n if (this._attributes != null) for (let i: number = 0; i < this._attributes.length; i++) Message.print(CloudPoint.MODULE, \"Attribute '\" + this._attributes[i].getName() + \"': \" + this._values[i]);\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"CloudPoint.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/CloudPoint.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,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,UAAU;IACnB,8BAA8B;IACtB,MAAM,CAAU,MAAM,GAAW,YAAY,CAAC;IAEtD,gBAAgB;IACR,MAAM,CAAQ;IACtB,qBAAqB;IACb,EAAE,CAAU;IACpB,qBAAqB;IACb,EAAE,CAAU;IACpB,qBAAqB;IACb,EAAE,CAAU;IACpB,qBAAqB;IACb,MAAM,CAAQ;IACtB,oBAAoB;IACZ,UAAU,CAAQ;IAC1B,iBAAiB;IACT,OAAO,CAAQ;IACvB,mCAAmC;IAC3B,SAAS,CAAU;IAE3B,8CAA8C;IACtC,WAAW,CAAwB;IAC3C,yCAAyC;IACjC,OAAO,CAAwB;IAEvC;;OAEG;IACH;QACI,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC;QACd,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC;QACd,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC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IAAI;YAAE,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,EAAE;gBAAE,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACtM,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 { Coordinate } from \"../../spatial/geom/Coordinate\";\nimport { ALong } from \"../../system/runtime/ALong\";\nimport { Message } from \"../../system/runtime/Message\";\nimport { Numbers } from \"../../system/runtime/Numbers\";\nimport { AttributeValue } from \"./AttributeValue\";\nimport { PointAttribute } from \"./PointAttribute\";\n\n/**\n * Class CloudPoint defines a point in the point cloud.\n *\n * @version 1.0 November 2011\n */\n/** @internal */\nexport class CloudPoint {\n /** The name of this module */\n private static readonly MODULE: string = \"CloudPoint\";\n\n /** The index */\n private _index: ALong;\n /** The x position */\n private _x: float64;\n /** The y position */\n private _y: float64;\n /** The z position */\n private _z: float64;\n /** The ARGB color */\n private _color: int32;\n /** The intensity */\n private _intensity: int32;\n /** The weight */\n private _weight: int32;\n /** Has the point been selected? */\n private _selected: boolean;\n\n /** The definitions of the extra attributes */\n private _attributes: Array<PointAttribute>;\n /** The values of the extra attributes */\n private _values: Array<AttributeValue>;\n\n /**\n * Create a new point.\n */\n public constructor() {\n this._index = ALong.ZERO;\n this._x = 0.0;\n this._y = 0.0;\n this._z = 0.0;\n this._color = 0;\n this._intensity = 0;\n this._weight = 0;\n this._selected = false;\n this._attributes = null;\n this._values = null;\n }\n\n /**\n * Create a new point.\n * @param index the index of the point.\n * @param x the x position.\n * @param y the y position.\n * @param z the z position.\n * @param color the ARGB color.\n * @param intensity the intensity.\n * @return the new point.\n */\n public static create(index: ALong, x: float64, y: float64, z: float64, color: int32, intensity: int32): CloudPoint {\n let point: CloudPoint = new CloudPoint();\n point._index = index;\n point._x = x;\n point._y = y;\n point._z = z;\n point._color = color;\n point._intensity = intensity;\n return point;\n }\n\n /**\n * Create a new point.\n * @param attributes the definitions of the attributes.\n * @return the new point.\n */\n public static createWithAttributes(attributes: Array<PointAttribute>): CloudPoint {\n let point: CloudPoint = new CloudPoint();\n point._attributes = attributes;\n if (attributes != null) {\n point._values = new Array<AttributeValue>(attributes.length);\n for (let i: number = 0; i < attributes.length; i++) point._values[i] = new AttributeValue();\n }\n return point;\n }\n\n /**\n * Clear the point.\n */\n public clear(): void {\n this._index = ALong.ZERO;\n this._x = 0.0;\n this._y = 0.0;\n this._z = 0.0;\n this._color = 0;\n this._intensity = 0;\n this._weight = 0;\n this._selected = false;\n }\n\n /**\n * Get the index.\n * @return the index.\n */\n public getIndex(): ALong {\n return this._index;\n }\n\n /**\n * Set the index.\n * @param index the index.\n */\n public setIndex(index: ALong): void {\n this._index = index;\n }\n\n /**\n * Get the x position.\n * @return the x position.\n */\n public getX(): float64 {\n return this._x;\n }\n\n /**\n * Set the x position.\n * @param x the new x position.\n */\n public setX(x: float64): void {\n this._x = x;\n }\n\n /**\n * Get the y position.\n * @return the y position.\n */\n public getY(): float64 {\n return this._y;\n }\n\n /**\n * Set the y position.\n * @param y the new y position.\n */\n public setY(y: float64): void {\n this._y = y;\n }\n\n /**\n * Get the z position.\n * @return the z position.\n */\n public getZ(): float64 {\n return this._z;\n }\n\n /**\n * Set the z position.\n * @param z the new z position.\n */\n public setZ(z: float64): void {\n this._z = z;\n }\n\n /**\n * Get the ARGB color.\n * @return the color.\n */\n public getColor(): int32 {\n return this._color;\n }\n\n /**\n * Set the color.\n * @param color the new color.\n */\n public setColor(color: int32): void {\n this._color = color;\n }\n\n /**\n * Get the intensity.\n * @return the intensity.\n */\n public getIntensity(): int32 {\n return this._intensity;\n }\n\n /**\n * Set the intensity.\n * @param intensity the new intensity.\n */\n public setIntensity(intensity: int32): void {\n this._intensity = intensity;\n }\n\n /**\n * Get the weight.\n * @return the weight.\n */\n public getWeight(): int32 {\n return this._weight;\n }\n\n /**\n * Set the weight.\n * @param weight the weight.\n */\n public setWeight(weight: int32): void {\n this._weight = weight;\n }\n\n /**\n * Has the point been selected?\n * @return true if selected.\n */\n public isSelected(): boolean {\n return this._selected;\n }\n\n /**\n * Select the point.\n * @param selected true if the point has been selected.\n */\n public setSelected(selected: boolean): void {\n this._selected = selected;\n }\n\n /**\n * Get the attribute definitions.\n * @return the attribute definitions.\n */\n public getAttributes(): Array<PointAttribute> {\n return this._attributes;\n }\n\n /**\n * Get an attribute definitions.\n * @param index the index of the attribute.\n * @return an attribute definitions.\n */\n public getAttribute(index: int32): PointAttribute {\n return this._attributes[index];\n }\n\n /**\n * Get the attribute values.\n * @return the attribute values.\n */\n public getAttributeValues(): Array<AttributeValue> {\n return this._values;\n }\n\n /**\n * Get an attribute value.\n * @param index the index of the value.\n * @return the value.\n */\n public getAttributeValue(index: int32): AttributeValue {\n return this._values[index];\n }\n\n /**\n * Get an attribute value.\n * @param attributeName the name of the attribute.\n * @return the value.\n */\n public getNamedAttributeValue(attributeName: string): AttributeValue {\n let index: int32 = PointAttribute.indexOfName(this._attributes, attributeName);\n return (index < 0) ? (null) : this._values[index];\n }\n\n /**\n * Set the attributes.\n * @param attributes the definitions of the attributes.\n * @param values the values of the attributes.\n */\n public setAttributes(attributes: Array<PointAttribute>, values: Array<AttributeValue>): void {\n this._attributes = attributes;\n this._values = values;\n }\n\n /**\n * Copy the values to another point.\n * @param other the other point.\n */\n public copyTo(other: CloudPoint): void {\n other._index = this._index;\n other._x = this._x;\n other._y = this._y;\n other._z = this._z;\n other._color = this._color;\n other._intensity = this._intensity;\n other._weight = this._weight;\n other._selected = this._selected;\n other._attributes = this._attributes;\n other._values = AttributeValue.copyList(this._values);\n }\n\n /**\n * Make a copy.\n * @return a copy.\n */\n public copy(): CloudPoint {\n let copy: CloudPoint = new CloudPoint();\n this.copyTo(copy);\n return copy;\n }\n\n /**\n * Get the distance to another point.\n * @param other the other point.\n * @return the distance.\n */\n public getDistance(other: CloudPoint): float64 {\n let dx: float64 = (other._x - this._x);\n let dy: float64 = (other._y - this._y);\n let dz: float64 = (other._z - this._z);\n return Math.sqrt(dx * dx + dy * dy + dz * dz);\n }\n\n /**\n * Get the square distance to another point.\n * @param other the other point.\n * @return the square distance.\n */\n public getSquareDistance(other: CloudPoint): float64 {\n let dx: float64 = (other._x - this._x);\n let dy: float64 = (other._y - this._y);\n let dz: float64 = (other._z - this._z);\n return (dx * dx + dy * dy + dz * dz);\n }\n\n /**\n * Get a coordinate.\n * @return a coordinate.\n */\n public getCoordinate(): Coordinate {\n return new Coordinate(this._x, this._y, this._z);\n }\n\n /**\n * Print the point.\n */\n public print(): void {\n Message.print(CloudPoint.MODULE, \"Index: \" + this._index);\n Message.print(CloudPoint.MODULE, \"Position: \" + this._x + \",\" + this._y + \",\" + this._z);\n Message.print(CloudPoint.MODULE, \"Color: \" + Numbers.rgbToString(this._color));\n Message.print(CloudPoint.MODULE, \"Intensity: \" + this._intensity);\n Message.print(CloudPoint.MODULE, \"Weight: \" + this._weight);\n Message.print(CloudPoint.MODULE, \"Selected? \" + this._selected);\n if (this._attributes != null) for (let i: number = 0; i < this._attributes.length; i++) Message.print(CloudPoint.MODULE, \"Attribute '\" + this._attributes[i].getName() + \"': \" + this._values[i]);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/Grid.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH,OAAO,EAAE,MAAM,EAA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AAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3I,CAAC;IAED;;;OAGG;IACI,QAAQ;QACX,OAAO,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;IACxJ,CAAC;CACJ","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Bounds } from \"../../spatial/geom/Bounds\";\r\nimport { Coordinate } from \"../../spatial/geom/Coordinate\";\r\nimport { Numbers } from \"../../system/runtime/Numbers\";\r\nimport { GridIndex } from \"./GridIndex\";\r\n\r\n/**\r\n * Class Grid defines an infinite 3D grid of cells.\r\n *\r\n * @version 1.0 January 2012\r\n */\r\n/** @internal */\r\nexport class Grid {\r\n /** The x origin */\r\n public p0: Coordinate;\r\n /** The cell X size */\r\n public size: Coordinate;\r\n\r\n /**\r\n * Create a new grid.\r\n * @param x0 the x origin.\r\n * @param y0 the y origin.\r\n * @param z0 the z origin.\r\n * @param sizeX the cell X size.\r\n * @param sizeY the cell Y size.\r\n * @param sizeZ the cell Z size.\r\n */\r\n public constructor(p0: Coordinate, size: Coordinate) {\r\n this.p0 = p0;\r\n this.size = size;\r\n }\r\n\r\n /**\r\n * Get the cell index of an X position.\r\n * @param x the x position.\r\n * @return the cell index.\r\n */\r\n public getCellX(x: float64): float64 {\r\n return (x - this.p0.x) / this.size.x;\r\n }\r\n\r\n /**\r\n * Get the cell index of a Y position.\r\n * @param y the y position.\r\n * @return the cell index.\r\n */\r\n public getCellY(y: float64): float64 {\r\n return (y - this.p0.y) / this.size.y;\r\n }\r\n\r\n /**\r\n * Get the cell index of a Z position.\r\n * @param z the z position.\r\n * @return the cell index.\r\n */\r\n public getCellZ(z: float64): float64 {\r\n return (z - this.p0.z) / this.size.z;\r\n }\r\n\r\n /**\r\n * Get the cell index of a position.\r\n * @param position the position.\r\n * @param cellIndex the cell index.\r\n */\r\n public getCellIndexTo(position: Coordinate, cellIndex: GridIndex): GridIndex {\r\n cellIndex.x = Numbers.intFloor((position.x - this.p0.x) / this.size.x);\r\n cellIndex.y = Numbers.intFloor((position.y - this.p0.y) / this.size.y);\r\n cellIndex.z = Numbers.intFloor((position.z - this.p0.z) / this.size.z);\r\n return cellIndex;\r\n }\r\n\r\n /**\r\n * Get the cell index of a position.\r\n * @param position the position.\r\n * @return the cell index.\r\n */\r\n public getCellIndex(position: Coordinate): GridIndex {\r\n return this.getCellIndexTo(position, new GridIndex(0, 0, 0));\r\n }\r\n\r\n /**\r\n * Get the center point of a cell.\r\n * @param cellIndex the index of the cell.\r\n * @return the center point.\r\n */\r\n public getCellCenter(cellIndex: GridIndex): Coordinate {\r\n let cx: float64 = this.p0.x + (cellIndex.x + 0.5) * this.size.x;\r\n let cy: float64 = this.p0.y + (cellIndex.y + 0.5) * this.size.y;\r\n let cz: float64 = this.p0.z + (cellIndex.z + 0.5) * this.size.z;\r\n return new Coordinate(cx, cy, cz);\r\n }\r\n\r\n /**\r\n * Get the bounds of a cell.\r\n * @param cellIndex the index of the cell.\r\n * @return the bounds.\r\n */\r\n public getCellBounds(cellIndex: GridIndex): Bounds {\r\n let x0: float64 = this.p0.x + (cellIndex.x) * this.size.x;\r\n let y0: float64 = this.p0.y + (cellIndex.y) * this.size.y;\r\n let z0: float64 = this.p0.z + (cellIndex.z) * this.size.z;\r\n let bounds: Bounds = new Bounds();\r\n bounds.addXYZ(x0, y0, z0);\r\n bounds.addXYZ(x0 + this.size.x, y0 + this.size.y, z0 + this.size.z);\r\n return bounds;\r\n }\r\n\r\n /**\r\n * Scale the grid.\r\n * @param scale the scale factor.\r\n * @return the scaled grid.\r\n */\r\n public scale(scale: float64): Grid {\r\n return new Grid(new Coordinate(this.p0.x, this.p0.y, this.p0.z), new Coordinate(scale * this.size.x, scale * this.size.y, scale * this.size.z));\r\n }\r\n\r\n /**\r\n * Move the grid.\r\n * @param dx the x offset.\r\n * @param dy the y offset.\r\n * @param dz the z offset.\r\n * @return the scaled grid.\r\n */\r\n public scale3(dx: float64, dy: float64, dz: float64): Grid {\r\n return new Grid(new Coordinate(this.p0.x + dx, this.p0.y + dy, this.p0.z + dz), new Coordinate(this.size.x, this.size.y, this.size.z));\r\n }\r\n\r\n /**\r\n * The standard toString method.\r\n * @see Object#toString\r\n */\r\n public toString(): string {\r\n return \"[Grid:x0=\" + this.p0.x + \",y0=\" + this.p0.y + \",z0=\" + this.p0.z + \",sx=\" + this.size.x + \",sy=\" + this.size.y + \",sz=\" + this.size.z + \"]\";\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"Grid.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/Grid.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,IAAI;IACb,mBAAm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AC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;IACxJ,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 { Bounds } from \"../../spatial/geom/Bounds\";\nimport { Coordinate } from \"../../spatial/geom/Coordinate\";\nimport { Numbers } from \"../../system/runtime/Numbers\";\nimport { GridIndex } from \"./GridIndex\";\n\n/**\n * Class Grid defines an infinite 3D grid of cells.\n *\n * @version 1.0 January 2012\n */\n/** @internal */\nexport class Grid {\n /** The x origin */\n public p0: Coordinate;\n /** The cell X size */\n public size: Coordinate;\n\n /**\n * Create a new grid.\n * @param x0 the x origin.\n * @param y0 the y origin.\n * @param z0 the z origin.\n * @param sizeX the cell X size.\n * @param sizeY the cell Y size.\n * @param sizeZ the cell Z size.\n */\n public constructor(p0: Coordinate, size: Coordinate) {\n this.p0 = p0;\n this.size = size;\n }\n\n /**\n * Get the cell index of an X position.\n * @param x the x position.\n * @return the cell index.\n */\n public getCellX(x: float64): float64 {\n return (x - this.p0.x) / this.size.x;\n }\n\n /**\n * Get the cell index of a Y position.\n * @param y the y position.\n * @return the cell index.\n */\n public getCellY(y: float64): float64 {\n return (y - this.p0.y) / this.size.y;\n }\n\n /**\n * Get the cell index of a Z position.\n * @param z the z position.\n * @return the cell index.\n */\n public getCellZ(z: float64): float64 {\n return (z - this.p0.z) / this.size.z;\n }\n\n /**\n * Get the cell index of a position.\n * @param position the position.\n * @param cellIndex the cell index.\n */\n public getCellIndexTo(position: Coordinate, cellIndex: GridIndex): GridIndex {\n cellIndex.x = Numbers.intFloor((position.x - this.p0.x) / this.size.x);\n cellIndex.y = Numbers.intFloor((position.y - this.p0.y) / this.size.y);\n cellIndex.z = Numbers.intFloor((position.z - this.p0.z) / this.size.z);\n return cellIndex;\n }\n\n /**\n * Get the cell index of a position.\n * @param position the position.\n * @return the cell index.\n */\n public getCellIndex(position: Coordinate): GridIndex {\n return this.getCellIndexTo(position, new GridIndex(0, 0, 0));\n }\n\n /**\n * Get the center point of a cell.\n * @param cellIndex the index of the cell.\n * @return the center point.\n */\n public getCellCenter(cellIndex: GridIndex): Coordinate {\n let cx: float64 = this.p0.x + (cellIndex.x + 0.5) * this.size.x;\n let cy: float64 = this.p0.y + (cellIndex.y + 0.5) * this.size.y;\n let cz: float64 = this.p0.z + (cellIndex.z + 0.5) * this.size.z;\n return new Coordinate(cx, cy, cz);\n }\n\n /**\n * Get the bounds of a cell.\n * @param cellIndex the index of the cell.\n * @return the bounds.\n */\n public getCellBounds(cellIndex: GridIndex): Bounds {\n let x0: float64 = this.p0.x + (cellIndex.x) * this.size.x;\n let y0: float64 = this.p0.y + (cellIndex.y) * this.size.y;\n let z0: float64 = this.p0.z + (cellIndex.z) * this.size.z;\n let bounds: Bounds = new Bounds();\n bounds.addXYZ(x0, y0, z0);\n bounds.addXYZ(x0 + this.size.x, y0 + this.size.y, z0 + this.size.z);\n return bounds;\n }\n\n /**\n * Scale the grid.\n * @param scale the scale factor.\n * @return the scaled grid.\n */\n public scale(scale: float64): Grid {\n return new Grid(new Coordinate(this.p0.x, this.p0.y, this.p0.z), new Coordinate(scale * this.size.x, scale * this.size.y, scale * this.size.z));\n }\n\n /**\n * Move the grid.\n * @param dx the x offset.\n * @param dy the y offset.\n * @param dz the z offset.\n * @return the scaled grid.\n */\n public scale3(dx: float64, dy: float64, dz: float64): Grid {\n return new Grid(new Coordinate(this.p0.x + dx, this.p0.y + dy, this.p0.z + dz), new Coordinate(this.size.x, this.size.y, this.size.z));\n }\n\n /**\n * The standard toString method.\n * @see Object#toString\n */\n public toString(): string {\n return \"[Grid:x0=\" + this.p0.x + \",y0=\" + this.p0.y + \",z0=\" + this.p0.z + \",sx=\" + this.size.x + \",sy=\" + this.size.y + \",sz=\" + this.size.z + \"]\";\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"GridIndex.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/GridIndex.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD,gBAAgB;AAChB,MAAM,OAAO,SAAS;IAClB,kBAAkB;IACX,CAAC,CAAQ;IAChB,kBAAkB;IACX,CAAC,CAAQ;IAChB,kBAAkB;IACX,CAAC,CAAQ;IAEhB;;;;;OAKG;IACH,YAAmB,CAAQ,EAAE,CAAQ,EAAE,CAAQ;QAC3C,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACf,CAAC;IAED;;;;OAIG;IACI,UAAU,CAAC,KAAgB;QAC9B,IAAI,EAAE,GAAU,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACnC,IAAI,EAAE,GAAU,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACnC,IAAI,EAAE,GAAU,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACnC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED;;;;OAIG;IACI,QAAQ,CAAC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G,IAAI,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;IACxE,CAAC;CACJ","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Numbers } from \"../../system/runtime/Numbers\";\r\n\r\n/** @internal */\r\nexport class GridIndex {\r\n /** The x index */\r\n public x: int32;\r\n /** The y index */\r\n public y: int32;\r\n /** The z index */\r\n public z: int32;\r\n\r\n /**\r\n * Create a new point.\r\n * @param x the x index.\r\n * @param y the y index.\r\n * @param z the z index.\r\n */\r\n public constructor(x: int32, y: int32, z: int32) {\r\n this.x = x;\r\n this.y = y;\r\n this.z = z;\r\n }\r\n\r\n /**\r\n * Get the square distance to another cell.\r\n * @param other the other cell.\r\n * @return the square distance.\r\n */\r\n public distanceSq(other: GridIndex): int32 {\r\n let dx: int32 = (other.x - this.x);\r\n let dy: int32 = (other.y - this.y);\r\n let dz: int32 = (other.z - this.z);\r\n return (dx * dx) + (dy * dy) + (dz * dz);\r\n }\r\n\r\n /**\r\n * Get the distance to another cell.\r\n * @param other the other cell.\r\n * @return the distance.\r\n */\r\n public distance(other: GridIndex): float64 {\r\n return Numbers.sqrt(this.distanceSq(other));\r\n }\r\n\r\n /**\r\n * Get a next-level index.\r\n * @param index the index at the current level.\r\n * @return the next-level index.\r\n */\r\n private static getNextLevelIndex1(index: int32): int32 {\r\n if (index < 0) return Numbers.divInt(index - 1, 2);\r\n return Numbers.divInt(index, 2);\r\n }\r\n\r\n /**\r\n * Get a next-level index.\r\n * @param nextLevel the index at the next level.\r\n */\r\n public getNextLevelIndex(nextLevel: GridIndex): void {\r\n nextLevel.x = GridIndex.getNextLevelIndex1(this.x);\r\n nextLevel.y = GridIndex.getNextLevelIndex1(this.y);\r\n nextLevel.z = GridIndex.getNextLevelIndex1(this.z);\r\n }\r\n\r\n /**\r\n * Does this point equal another?\r\n * @param other the other point.\r\n * @return true if equal.\r\n */\r\n public same(other: GridIndex): boolean {\r\n return (other.x == this.x && other.y == this.y && other.z == this.z);\r\n }\r\n\r\n /**\r\n * Create a copy.\r\n * @return a copy.\r\n */\r\n public copy(): GridIndex {\r\n return new GridIndex(this.x, this.y, this.z);\r\n }\r\n\r\n /**\r\n * Get the unique key.\r\n * @return the unique key.\r\n */\r\n public getKey(): string {\r\n return \"{x:\" + this.x + \",y:\" + this.y + \",z:\" + this.z + \"}\";\r\n }\r\n\r\n /**\r\n * The standard toString method.\r\n * @see Object#toString\r\n */\r\n public toString(): string {\r\n return \"[GridPoint3D:\" + this.x + \",\" + this.y + \",\" + this.z + \"]\";\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"GridIndex.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/GridIndex.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD,gBAAgB;AAChB,MAAM,OAAO,SAAS;IAClB,kBAAkB;IACX,CAAC,CAAQ;IAChB,kBAAkB;IACX,CAAC,CAAQ;IAChB,kBAAkB;IACX,CAAC,CAAQ;IAEhB;;;;;OAKG;IACH,YAAmB,CAAQ,EAAE,CAAQ,EAAE,CAAQ;QAC3C,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACf,CAAC;IAED;;;;OAIG;IACI,UAAU,CAAC,KAAgB;QAC9B,IAAI,EAAE,GAAU,CA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AAC,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 +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;IACvB,gCAAgC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,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE;YAAE,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;gBAAE,OAAO,CAAC,CAAC;QAC3G,OAAO,CAAC,CAAC,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,WAAW,CAAC,UAAiC,EAAE,SAAyB;QAClF,IAAI,UAAU,IAAI,IAAI;YAAE,OAAO,CAAC,CAAC,CAAC;QAClC,IAAI,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":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { AList } from \"../../system/collection/AList\";\r\nimport { ALong } from \"../../system/runtime/ALong\";\r\nimport { ASystem } from \"../../system/runtime/ASystem\";\r\nimport { Strings } from \"../../system/runtime/Strings\";\r\nimport { AttributeTypes } from \"./AttributeTypes\";\r\nimport { AttributeValue } from \"./AttributeValue\";\r\n\r\n/**\r\n * Class PointAttribute defines an attribute of a point.\r\n *\r\n * @version 1.0 August 2013\r\n */\r\n/** @internal */\r\nexport class PointAttribute {\r\n /** The name of the attribute */\r\n private _name: string;\r\n /** The description of the attribute */\r\n private _description: string;\r\n /** The type of the attribute */\r\n private _type: int32;\r\n /** The default value of the attribute */\r\n private _defaultValue: AttributeValue;\r\n /** The optional minimum value of the attribute */\r\n private _minValue: AttributeValue;\r\n /** The optional maximum value of the attribute */\r\n private _maxValue: AttributeValue;\r\n\r\n /** Is this a standard attribute? (color/intensity/weight)? */\r\n private _standardAttribute: boolean;\r\n\r\n /**\r\n * Create a new point attribute.\r\n * @param name the name of the attribute.\r\n * @param description the description of the attribute.\r\n * @param type the type of the attribute.\r\n * @param default value the default value of the attribute (use null to create a default value).\r\n */\r\n public constructor(name: string, description: string, type: int32, defaultValue: AttributeValue) {\r\n if (defaultValue == null) defaultValue = AttributeValue.createDefault(type);\r\n ASystem.assert0(defaultValue.getType() == type, \"Default value \" + defaultValue + \" does not match attribute type \" + type);\r\n this._name = name;\r\n this._description = description;\r\n this._type = type;\r\n this._defaultValue = defaultValue;\r\n this._minValue = null;\r\n this._maxValue = null;\r\n this._standardAttribute = false;\r\n }\r\n\r\n /**\r\n * Get the name.\r\n * @return the name.\r\n */\r\n public getName(): string {\r\n return this._name;\r\n }\r\n\r\n /**\r\n * Set the name.\r\n * @param name the new name.\r\n */\r\n public setName(name: string): void {\r\n this._name = name;\r\n }\r\n\r\n /**\r\n * Check the name.\r\n * @param name the name to check.\r\n * @return true if equal.\r\n */\r\n public hasName(name: string): boolean {\r\n if (name == null) return false;\r\n if (Strings.equalsIgnoreCase(name, this._name)) return true;\r\n return false;\r\n }\r\n\r\n /**\r\n * Get the description.\r\n * @return the description.\r\n */\r\n public getDescription(): string {\r\n return this._description;\r\n }\r\n\r\n /**\r\n * Get the type.\r\n * @return the type.\r\n */\r\n public getType(): int32 {\r\n return this._type;\r\n }\r\n\r\n /**\r\n * Get the byte-size of the type.\r\n * @return the byte-size of the type.\r\n */\r\n public getTypeByteSize(): int32 {\r\n return PointAttribute.getByteSize(this._type, 1);\r\n }\r\n\r\n /**\r\n * Get the byte-size of a number of values.\r\n * @param attributeCount the number of values.\r\n * @return the byte-size.\r\n */\r\n public getTypeByteSizeForCount(attributeCount: int32): int32 {\r\n return PointAttribute.getByteSize(this._type, attributeCount);\r\n }\r\n\r\n /**\r\n * Get the byte-size of a number of values.\r\n * @param attributeCount the number of values.\r\n * @return the byte-size.\r\n */\r\n public getTypeByteSizeForLongCount(attributeCount: ALong): ALong {\r\n return PointAttribute.getByteSizeForCount(this._type, attributeCount);\r\n }\r\n\r\n /**\r\n * Get the default value.\r\n * @return the default value.\r\n */\r\n public getDefaultValue(): AttributeValue {\r\n return this._defaultValue;\r\n }\r\n\r\n /**\r\n * Get the optional minimum value.\r\n * @return the optional minimum value.\r\n */\r\n public getMinValue(): AttributeValue {\r\n return this._minValue;\r\n }\r\n\r\n /**\r\n * Set the optional minimum value.\r\n * @param value the optional minimum value.\r\n */\r\n public setMinValue(value: AttributeValue): void {\r\n this._minValue = value;\r\n }\r\n\r\n /**\r\n * Get the optional maximum value.\r\n * @return the optional maximum value.\r\n */\r\n public getMaxValue(): AttributeValue {\r\n return this._maxValue;\r\n }\r\n\r\n /**\r\n * Set the optional maximum value.\r\n * @param value the optional maximum value.\r\n */\r\n public setMaxValue(value: AttributeValue): void {\r\n this._maxValue = value;\r\n }\r\n\r\n /**\r\n * Set the description of a copy.\r\n * @param description the new description.\r\n * @return the copy.\r\n */\r\n public setDescription(description: string): PointAttribute {\r\n return new PointAttribute(this._name, description, this._type, this._defaultValue);\r\n }\r\n\r\n /**\r\n * Is this a standard attribute (like color/intensity/weight)?\r\n * @return true for a standard attribute.\r\n */\r\n public isStandardAttribute(): boolean {\r\n return this._standardAttribute;\r\n }\r\n\r\n /**\r\n * Make this a standard attribute (like color/intensity/weight).\r\n * @param standard true if this is a standard attribute.\r\n * @return this attribute for convenience.\r\n */\r\n public setStandardAttribute(standard: boolean): PointAttribute {\r\n this._standardAttribute = standard;\r\n return this;\r\n }\r\n\r\n /**\r\n * The standard toString method.\r\n * @see Object#toString\r\n */\r\n public toString(): string {\r\n return \"[PointAttribute:name='\" + this._name + \"',type=\" + PointAttribute.getTypeName(this._type) + \",default=\" + this._defaultValue + \"]\";\r\n }\r\n\r\n /**\r\n * Get the name of a type.\r\n * @param attributeType the type of attributes.\r\n * @return the name.\r\n */\r\n public static getTypeName(attributeType: int32): string {\r\n if (attributeType <= 0) return \"none\";\r\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) return \"boolean\";\r\n if (attributeType == AttributeTypes.TYPE_INT1) return \"int1\";\r\n if (attributeType == AttributeTypes.TYPE_INT2) return \"int2\";\r\n if (attributeType == AttributeTypes.TYPE_INT4) return \"int4\";\r\n if (attributeType == AttributeTypes.TYPE_INT8) return \"int8\";\r\n if (attributeType == AttributeTypes.TYPE_FLOAT4) return \"float4\";\r\n if (attributeType == AttributeTypes.TYPE_FLOAT8) return \"float8\";\r\n if (attributeType == AttributeTypes.TYPE_COLOR) return \"color\";\r\n return \"\" + attributeType;\r\n }\r\n\r\n /**\r\n * Get the bit size for a type.\r\n * @param attributeType the type of attributes.\r\n * @return the number of bits.\r\n */\r\n public static getBitSize(attributeType: int32): int32 {\r\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) return 1;\r\n if (attributeType == AttributeTypes.TYPE_INT1) return 8;\r\n if (attributeType == AttributeTypes.TYPE_INT2) return 16;\r\n if (attributeType == AttributeTypes.TYPE_INT4) return 32;\r\n if (attributeType == AttributeTypes.TYPE_INT8) return 64;\r\n if (attributeType == AttributeTypes.TYPE_FLOAT4) return 32;\r\n if (attributeType == AttributeTypes.TYPE_FLOAT8) return 64;\r\n if (attributeType == AttributeTypes.TYPE_COLOR) return 24;\r\n return 0;\r\n }\r\n\r\n /**\r\n * Get the byte size for a number of attributes.\r\n * @param attributeType the type of attributes.\r\n * @param attributeCount the number of attributes.\r\n */\r\n public static getByteSize(attributeType: int32, attributeCount: int32): int32 {\r\n if (attributeCount <= 0) return 0;\r\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) return ((attributeCount - 1) >> 3) + 1;\r\n if (attributeType == AttributeTypes.TYPE_INT1) return (attributeCount);\r\n if (attributeType == AttributeTypes.TYPE_INT2) return (attributeCount << 1);\r\n if (attributeType == AttributeTypes.TYPE_INT4) return (attributeCount << 2);\r\n if (attributeType == AttributeTypes.TYPE_INT8) return (attributeCount << 3);\r\n if (attributeType == AttributeTypes.TYPE_FLOAT4) return (attributeCount << 2);\r\n if (attributeType == AttributeTypes.TYPE_FLOAT8) return (attributeCount << 3);\r\n if (attributeType == AttributeTypes.TYPE_COLOR) return (attributeCount * 3);\r\n return 0;\r\n }\r\n\r\n /**\r\n * Get the byte size for a number of attributes.\r\n * @param attributeType the type of attributes.\r\n * @param attributeCount the number of attributes.\r\n */\r\n public static getByteSizeForCount(attributeType: int32, attributeCount: ALong): ALong {\r\n if (attributeCount.isPositive() == false) return ALong.ZERO;\r\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) return attributeCount.subInt(1).divInt(8).addInt(1);\r\n if (attributeType == AttributeTypes.TYPE_INT1) return attributeCount.mulInt(1);\r\n if (attributeType == AttributeTypes.TYPE_INT2) return attributeCount.mulInt(2);\r\n if (attributeType == AttributeTypes.TYPE_INT4) return attributeCount.mulInt(4);\r\n if (attributeType == AttributeTypes.TYPE_INT8) return attributeCount.mulInt(8);\r\n if (attributeType == AttributeTypes.TYPE_FLOAT4) return attributeCount.mulInt(4);\r\n if (attributeType == AttributeTypes.TYPE_FLOAT8) return attributeCount.mulInt(8);\r\n if (attributeType == AttributeTypes.TYPE_COLOR) return attributeCount.mulInt(3);\r\n return ALong.ZERO;\r\n }\r\n\r\n /**\r\n * Find the index of an attribute.\r\n * @param attributes the list of attributes.\r\n * @param attributeName the name of an attribute.\r\n * @return the index (negative if not found).\r\n */\r\n public static indexOfName(attributes: Array<PointAttribute>, attributeName: string): int32 {\r\n if (attributes == null) return -1;\r\n if (attributeName == null) return -1;\r\n for (let i: number = 0; i < attributes.length; i++) if (attributes[i].hasName(attributeName)) return i;\r\n return -1;\r\n }\r\n\r\n /**\r\n * Find the index of an attribute.\r\n * @param attributes the list of attributes.\r\n * @param attribute the definition of an attribute.\r\n * @return the index (negative if not found).\r\n */\r\n public static indexOf(attributes: Array<PointAttribute>, attribute: PointAttribute): int32 {\r\n if (attributes == null) return -1;\r\n if (attribute == null) return -1;\r\n for (let i: number = 0; i < attributes.length; i++) if (attributes[i].hasName(attribute.getName())) return i;\r\n return -1;\r\n }\r\n\r\n /**\r\n * Check if an attribute exists.\r\n * @param attributes the list of attributes.\r\n * @param attributeName the name of an attribute.\r\n * @return true if found.\r\n */\r\n public static hasAttributeName(attributes: Array<PointAttribute>, attributeName: string): boolean {\r\n return (PointAttribute.indexOfName(attributes, attributeName) >= 0);\r\n }\r\n\r\n /**\r\n * Check if an attribute exists.\r\n * @param attributes the list of attributes.\r\n * @param attribute the definition of an attribute.\r\n * @return true if found.\r\n */\r\n public static hasAttribute(attributes: Array<PointAttribute>, attribute: PointAttribute): boolean {\r\n return (PointAttribute.indexOf(attributes, attribute) >= 0);\r\n }\r\n\r\n /**\r\n * Find the index of an attribute.\r\n * @param attributes the list of attributes.\r\n * @param attributeName the name of an attribute.\r\n * @return the index (negative if not found).\r\n */\r\n public static listIndexOfName(attributes: AList<PointAttribute>, attributeName: string): int32 {\r\n if (attributes == null) return -1;\r\n if (attributeName == null) return -1;\r\n for (let i: number = 0; i < attributes.size(); i++) if (attributes.get(i).hasName(attributeName)) return i;\r\n return -1;\r\n }\r\n\r\n /**\r\n * Find the index of an attribute.\r\n * @param attributes the list of attributes.\r\n * @param attribute the definition of an attribute.\r\n * @return the index (negative if not found).\r\n */\r\n public static listIndexOf(attributes: AList<PointAttribute>, attribute: PointAttribute): int32 {\r\n if (attributes == null) return -1;\r\n if (attribute == null) return -1;\r\n for (let i: number = 0; i < attributes.size(); i++) if (attributes.get(i).hasName(attribute.getName())) return i;\r\n return -1;\r\n }\r\n\r\n /**\r\n * Check if an attribute exists.\r\n * @param attributes the list of attributes.\r\n * @param attributeName the name of an attribute.\r\n * @return true if found.\r\n */\r\n public static listHasAttributeName(attributes: AList<PointAttribute>, attributeName: string): boolean {\r\n return (PointAttribute.listIndexOfName(attributes, attributeName) >= 0);\r\n }\r\n\r\n /**\r\n * Check if an attribute exists.\r\n * @param attributes the list of attributes.\r\n * @param attribute the definition of an attribute.\r\n * @return true if found.\r\n */\r\n public static listHasAttribute(attributes: AList<PointAttribute>, attribute: PointAttribute): boolean {\r\n return (PointAttribute.listIndexOf(attributes, attribute) >= 0);\r\n }\r\n}\r\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,CAA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AC;gBAAE,OAAO,CAAC,CAAC;QAC3G,OAAO,CAAC,CAAC,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,WAAW,CAAC,UAAiC,EAAE,SAAyB;QAClF,IAAI,UAAU,IAAI,IAAI;YAAE,OAAO,CAAC,CAAC,CAAC;QAClC,IAAI,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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"PointCloudReader.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/PointCloudReader.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAaH,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAYnD;;;;;;;;;;;GAWG;AACH,gBAAgB;AAChB,MAAM,OAAO,gBAAgB;IACzB;;OAEG;IACH;IACA,CAAC;IAED;;OAEG;IACI,KAAK;IACZ,CAAC;IAED;;;OAGG;IACI,WAAW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,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAAC,SAAoB,EAAE,UAAiB,EAAE,UAAmB,EAAE,YAA2B;QAC1G,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;;OAKG;IACI,gBAAgB,CAAC,WAAkB,EAAE,UAAiB;QACzD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\n\r\nimport { Bounds } from \"../../spatial/geom/Bounds\";\r\nimport { AList } from \"../../system/collection/AList\";\r\nimport { ALong } from \"../../system/runtime/ALong\";\r\nimport { ContentLoader } from \"../../system/storage/ContentLoader\";\r\nimport { FileStorage } from \"../../system/storage/FileStorage\";\r\nimport { AttributeValue } from \"./AttributeValue\";\r\nimport { BlockIndex } from \"./BlockIndex\";\r\nimport { CloudPoint } from \"./CloudPoint\";\r\nimport { Grid } from \"./Grid\";\r\nimport { PointAttribute } from \"./PointAttribute\";\r\nimport { PointData } from \"./PointData\";\r\nimport { ReadRequest } from \"./ReadRequest\";\r\nimport { TileIndex } from \"./TileIndex\";\r\n\r\n/**\r\n * Abstract class PointCloudReader allows reading of blocks, tiles and points from pointcloud files using the two-step content loader technique.\r\n *\r\n * Point cloud access often results in many requests for small parts of the point cloud file. To avoid making too many requests a content loader can be used.\r\n *\r\n * Create a new content loader and call the needed methods to gather the file ranges to fetch from storage, ignoring the method results.\r\n * Then await the content loader request to load all needed data and wait for the results.\r\n * Then call the needed method again, they will have access to the data and return the right results.\r\n * This technique allows a single fetch request from storage to return multiple small file content ranges.\r\n *\r\n * @version 1.0 March 2016\r\n */\r\n/** @internal */\r\nexport class PointCloudReader {\r\n /**\r\n * Create a new reader.\r\n */\r\n public constructor() {\r\n }\r\n\r\n /**\r\n * Close the reader.\r\n */\r\n public close(): void {\r\n }\r\n\r\n /**\r\n * Get a certain property of the reader.\r\n * @return the value (null if not defined).\r\n */\r\n public getProperty(propertyName: string): Object {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the storage of the file.\r\n * @return the storage of the file.\r\n */\r\n public getFileStorage(): FileStorage {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the name of the file.\r\n * @return the name of the file.\r\n */\r\n public getFileName(): string {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the CRS of the file.\r\n * @return the CRS of the file.\r\n */\r\n public getFileCRS(): string {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the spatial bounds of the file.\r\n * @return the spatial bounds of the file.\r\n */\r\n public getFileBounds(): Bounds {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the attributes of the points.\r\n * @return the attributes of the points.\r\n */\r\n public getPointAttributes(): Array<PointAttribute> {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the minimum value of an attribute.\r\n * @param attribute the attribute.\r\n * @return the minimum value (null if unknown).\r\n */\r\n public getMinAttributeValue(attribute: PointAttribute): AttributeValue {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the maximum value of an attribute.\r\n * @param attribute the attribute.\r\n * @return the maximum value (null if unknown).\r\n */\r\n public getMaxAttributeValue(attribute: PointAttribute): AttributeValue {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the number of levels.\r\n * @return the number of levels.\r\n */\r\n public getLevelCount(): int32 {\r\n return 0;\r\n }\r\n\r\n /**\r\n * Get the number of points.\r\n * @param level the index of the level.\r\n * @return the number of points.\r\n */\r\n public getLevelPointCount(level: int32): ALong {\r\n return ALong.ZERO;\r\n }\r\n\r\n /**\r\n * Get the bounds of points.\r\n * @param level the index of the level.\r\n * @return the bounds of points.\r\n */\r\n public getLevelPointBounds(level: int32): Bounds {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the block grid.\r\n * @param level the index of the level.\r\n * @return the block grid (null if there is no spatial grid).\r\n */\r\n public getLevelBlockGrid(level: int32): Grid {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the tile grid.\r\n * @param level the index of the level.\r\n * @return the tile grid (null if there is no spatial grid).\r\n */\r\n public getLevelTileGrid(level: int32): Grid {\r\n return null;\r\n }\r\n\r\n /**\r\n * Peek at block indexes.\r\n * @param level the index of the level.\r\n * @return the block indexes (zero length if the level has not yet been accessed in case of lazy loading).\r\n */\r\n public peekBlockIndexes(level: int32): Array<BlockIndex> {\r\n return null;\r\n }\r\n\r\n /**\r\n * Read block indexes (with a 2-step file content fetching sequence).\r\n * @param level the index of the level.\r\n * @param fileContents the file contents.\r\n * @return the tile indexes.\r\n */\r\n public readBlockIndexes(level: int32, fileContents: ContentLoader): Array<BlockIndex> {\r\n return null;\r\n }\r\n\r\n /**\r\n * Read tile indexes (with a 2-step file content fetching sequence).\r\n * @param block the index of the block.\r\n * @param fileContents the file contents.\r\n * @return the tile indexes.\r\n */\r\n public readTileIndexes(block: BlockIndex, fileContents: ContentLoader): Array<TileIndex> {\r\n return null;\r\n }\r\n\r\n /**\r\n * Read the points of a tile (with a 2-step file content fetching sequence).\r\n * @param tileIndex the tile index.\r\n * @param parameters the read parameters (contains the result read statistics).\r\n * @param fileContents the file contents.\r\n * @param processor the point processor.\r\n */\r\n public readPoints(tileIndex: TileIndex, parameters: ReadRequest, fileContents: ContentLoader): AList<CloudPoint> {\r\n return null;\r\n }\r\n\r\n /**\r\n * Read the points of a tile (with a 2-step file content fetching sequence).\r\n * @param tileIndex the tile index.\r\n * @param dataFormat the data format.\r\n * @param accessTime the current access time.\r\n * @param fileContents the file contents.\r\n */\r\n public readPointData(tileIndex: TileIndex, dataFormat: int32, accessTime: float64, fileContents: ContentLoader): PointData {\r\n return null;\r\n }\r\n\r\n /**\r\n * Clip the reader to a certain range of levels.\r\n * @param levelOffset the index of the first level.\r\n * @param levelCount the number of levels.\r\n * @return the clipped pointcloud.\r\n */\r\n public clipToLevelRange(levelOffset: int32, levelCount: int32): PointCloudReader {\r\n return null;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"PointCloudReader.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/PointCloudReader.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAaH,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAYnD;;;;;;;;;;;GAWG;AACH,gBAAgB;AAChB,MAAM,OAAO,gBAAgB;IACzB;;OAEG;IACH;IACA,CAAC;IAED;;OAEG;IACI,KAAK;IACZ,CAAC;IAED;;;OAGG;IACI,WAAW,CAAC,YAAoB;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,cAAc;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,WAAW;QACd,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,UAAU;QACb,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,aAAa;QAChB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,kBAAkB;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;OAIG;IACI,oBAAoB,CAAC,SAAyB;QACjD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;OAIG;IACI,oBAAoB,CAAC,SAAyB;QACjD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,aAAa;QAChB,OAAO,CAAC,CAAC;IACb,CAAC;IAED;;;;OAIG;IACI,kBAAkB,CAAC,KAAY;QAClC,OAAO,KAAK,CAAC,IAAI,CAAC;IACtB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CAAC,KAAY;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;OAIG;IACI,iBAAiB,CAAC,KAAY;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;OAIG;IACI,gBAAgB,CAAC,KAAY;QAChC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;OAIG;IACI,gBAAgB,CAAC,KAAY;QAChC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;;OAKG;IACI,gBAAgB,CAAC,KAAY,EAAE,YAA2B;QAC7D,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CAAC,KAAiB,EAAE,YAA2B;QACjE,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;;;OAMG;IACI,UAAU,CAAC,SAAoB,EAAE,UAAuB,EAAE,YAA2B;QACxF,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAAC,SAAoB,EAAE,UAAiB,EAAE,UAAmB,EAAE,YAA2B;QAC1G,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;;OAKG;IACI,gBAAgB,CAAC,WAAkB,EAAE,UAAiB;QACzD,OAAO,IAAI,CAAC;IAChB,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 { Bounds } from \"../../spatial/geom/Bounds\";\nimport { AList } from \"../../system/collection/AList\";\nimport { ALong } from \"../../system/runtime/ALong\";\nimport { ContentLoader } from \"../../system/storage/ContentLoader\";\nimport { FileStorage } from \"../../system/storage/FileStorage\";\nimport { AttributeValue } from \"./AttributeValue\";\nimport { BlockIndex } from \"./BlockIndex\";\nimport { CloudPoint } from \"./CloudPoint\";\nimport { Grid } from \"./Grid\";\nimport { PointAttribute } from \"./PointAttribute\";\nimport { PointData } from \"./PointData\";\nimport { ReadRequest } from \"./ReadRequest\";\nimport { TileIndex } from \"./TileIndex\";\n\n/**\n * Abstract class PointCloudReader allows reading of blocks, tiles and points from pointcloud files using the two-step content loader technique.\n *\n * Point cloud access often results in many requests for small parts of the point cloud file. To avoid making too many requests a content loader can be used.\n *\n * Create a new content loader and call the needed methods to gather the file ranges to fetch from storage, ignoring the method results.\n * Then await the content loader request to load all needed data and wait for the results.\n * Then call the needed method again, they will have access to the data and return the right results.\n * This technique allows a single fetch request from storage to return multiple small file content ranges.\n *\n * @version 1.0 March 2016\n */\n/** @internal */\nexport class PointCloudReader {\n /**\n * Create a new reader.\n */\n public constructor() {\n }\n\n /**\n * Close the reader.\n */\n public close(): void {\n }\n\n /**\n * Get a certain property of the reader.\n * @return the value (null if not defined).\n */\n public getProperty(propertyName: string): Object {\n return null;\n }\n\n /**\n * Get the storage of the file.\n * @return the storage of the file.\n */\n public getFileStorage(): FileStorage {\n return null;\n }\n\n /**\n * Get the name of the file.\n * @return the name of the file.\n */\n public getFileName(): string {\n return null;\n }\n\n /**\n * Get the CRS of the file.\n * @return the CRS of the file.\n */\n public getFileCRS(): string {\n return null;\n }\n\n /**\n * Get the spatial bounds of the file.\n * @return the spatial bounds of the file.\n */\n public getFileBounds(): Bounds {\n return null;\n }\n\n /**\n * Get the attributes of the points.\n * @return the attributes of the points.\n */\n public getPointAttributes(): Array<PointAttribute> {\n return null;\n }\n\n /**\n * Get the minimum value of an attribute.\n * @param attribute the attribute.\n * @return the minimum value (null if unknown).\n */\n public getMinAttributeValue(attribute: PointAttribute): AttributeValue {\n return null;\n }\n\n /**\n * Get the maximum value of an attribute.\n * @param attribute the attribute.\n * @return the maximum value (null if unknown).\n */\n public getMaxAttributeValue(attribute: PointAttribute): AttributeValue {\n return null;\n }\n\n /**\n * Get the number of levels.\n * @return the number of levels.\n */\n public getLevelCount(): int32 {\n return 0;\n }\n\n /**\n * Get the number of points.\n * @param level the index of the level.\n * @return the number of points.\n */\n public getLevelPointCount(level: int32): ALong {\n return ALong.ZERO;\n }\n\n /**\n * Get the bounds of points.\n * @param level the index of the level.\n * @return the bounds of points.\n */\n public getLevelPointBounds(level: int32): Bounds {\n return null;\n }\n\n /**\n * Get the block grid.\n * @param level the index of the level.\n * @return the block grid (null if there is no spatial grid).\n */\n public getLevelBlockGrid(level: int32): Grid {\n return null;\n }\n\n /**\n * Get the tile grid.\n * @param level the index of the level.\n * @return the tile grid (null if there is no spatial grid).\n */\n public getLevelTileGrid(level: int32): Grid {\n return null;\n }\n\n /**\n * Peek at block indexes.\n * @param level the index of the level.\n * @return the block indexes (zero length if the level has not yet been accessed in case of lazy loading).\n */\n public peekBlockIndexes(level: int32): Array<BlockIndex> {\n return null;\n }\n\n /**\n * Read block indexes (with a 2-step file content fetching sequence).\n * @param level the index of the level.\n * @param fileContents the file contents.\n * @return the tile indexes.\n */\n public readBlockIndexes(level: int32, fileContents: ContentLoader): Array<BlockIndex> {\n return null;\n }\n\n /**\n * Read tile indexes (with a 2-step file content fetching sequence).\n * @param block the index of the block.\n * @param fileContents the file contents.\n * @return the tile indexes.\n */\n public readTileIndexes(block: BlockIndex, fileContents: ContentLoader): Array<TileIndex> {\n return null;\n }\n\n /**\n * Read the points of a tile (with a 2-step file content fetching sequence).\n * @param tileIndex the tile index.\n * @param parameters the read parameters (contains the result read statistics).\n * @param fileContents the file contents.\n * @param processor the point processor.\n */\n public readPoints(tileIndex: TileIndex, parameters: ReadRequest, fileContents: ContentLoader): AList<CloudPoint> {\n return null;\n }\n\n /**\n * Read the points of a tile (with a 2-step file content fetching sequence).\n * @param tileIndex the tile index.\n * @param dataFormat the data format.\n * @param accessTime the current access time.\n * @param fileContents the file contents.\n */\n public readPointData(tileIndex: TileIndex, dataFormat: int32, accessTime: float64, fileContents: ContentLoader): PointData {\n return null;\n }\n\n /**\n * Clip the reader to a certain range of levels.\n * @param levelOffset the index of the first level.\n * @param levelCount the number of levels.\n * @return the clipped pointcloud.\n */\n public clipToLevelRange(levelOffset: int32, levelCount: int32): PointCloudReader {\n return null;\n }\n}\n"]}
@@ -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;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":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\n\r\nimport { Bounds } from \"../../spatial/geom/Bounds\";\r\nimport { TileIndex } from \"./TileIndex\";\r\n\r\n/**\r\n * Abstract class PointData stores the data of the points in a tile.\r\n */\r\n/** @internal */\r\nexport class PointData {\r\n\t// the index of the tile\r\n\tpublic tileIndex: TileIndex;\r\n\t// the spatial bounds of the tile\r\n\tpublic bounds: Bounds;\r\n\r\n\t/**\r\n\t * Create new point data.\r\n\t */\r\n\tpublic constructor(tileIndex: TileIndex, bounds: Bounds) {\r\n\t\tthis.tileIndex = tileIndex;\r\n\t\tthis.bounds = bounds;\r\n\t}\r\n}\r\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"]}
@@ -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;IAC1C,qCAAqC;IAC9B,MAAM,CAAU,IAAI,GAAU,CAAC,CAAC;IAEvC,0DAA0D;IACnD,QAAQ,CAAe;IAC9B,yDAAyD;IAClD,OAAO,CAAc;IAC5B,sDAAsD;IAC/C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,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":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Bounds } from \"../../spatial/geom/Bounds\";\r\nimport { ABuffer } from \"../../system/buffer/ABuffer\";\r\nimport { Uint16Buffer } from \"../../system/buffer/Uint16Buffer\";\r\nimport { Uint8Buffer } from \"../../system/buffer/Uint8Buffer\";\r\nimport { PointData } from \"./PointData\";\r\nimport { TileIndex } from \"./TileIndex\";\r\n\r\n/**\r\n * Class PointDataRaw stores point data with 8 or 16-bit XYZ geometry and 24-bit BGR color precision.\r\n */\r\n/** @internal */\r\nexport class PointDataRaw extends PointData {\r\n\t// the identifier of this data format\r\n\tpublic static readonly TYPE: int32 = 1;\r\n\r\n\t// the 16-bit XYZ geometries (length tileIndex.pointCount)\r\n\tpublic points16: Uint16Buffer;\r\n\t// the 8-bit XYZ geometries (length tileIndex.pointCount)\r\n\tpublic points8: Uint8Buffer;\r\n\t// the 24-bit BGR colors (length tileIndex.pointCount)\r\n\tpublic colors: Uint8Buffer;\r\n\r\n\t/**\r\n\t * Create new point data.\r\n\t */\r\n\tpublic constructor(tileIndex: TileIndex, bounds: Bounds, points16: Uint16Buffer, points8: Uint8Buffer, colors: Uint8Buffer) {\r\n\t\tsuper(tileIndex, bounds);\r\n\t\tthis.bounds = bounds;\r\n\t\tthis.points16 = points16;\r\n\t\tthis.points8 = points8;\r\n\t\tthis.colors = colors;\r\n\t}\r\n\r\n\tpublic getRawX(pointIndex: int32): int32 {\r\n\t\tif (this.points16 == null) return this.points8.get(3 * pointIndex + 0);\r\n\t\treturn this.points16.get(3 * pointIndex + 0);\r\n\t}\r\n\r\n\tpublic getRawY(pointIndex: int32): int32 {\r\n\t\tif (this.points16 == null) return this.points8.get(3 * pointIndex + 1);\r\n\t\treturn this.points16.get(3 * pointIndex + 1);\r\n\t}\r\n\r\n\tpublic getRawZ(pointIndex: int32): int32 {\r\n\t\tif (this.points16 == null) return this.points8.get(3 * pointIndex + 2);\r\n\t\treturn this.points16.get(3 * pointIndex + 2);\r\n\t}\r\n\r\n\tpublic getX(pointIndex: int32): float64 {\r\n\t\tlet range: float64 = (this.points16 == null) ? 256.0 : 65536.0;\r\n\t\tlet bias: float64 = (this.points16 == null) ? 0.5 : 0.0;\r\n\t\treturn this.bounds.min.x + ((this.getRawX(pointIndex) + bias) / range) * (this.bounds.max.x - this.bounds.min.x);\r\n\t}\r\n\r\n\tpublic getY(pointIndex: int32): float64 {\r\n\t\tlet range: float64 = (this.points16 == null) ? 256.0 : 65536.0;\r\n\t\tlet bias: float64 = (this.points16 == null) ? 0.5 : 0.0;\r\n\t\treturn this.bounds.min.y + ((this.getRawY(pointIndex) + bias) / range) * (this.bounds.max.y - this.bounds.min.y);\r\n\t}\r\n\r\n\tpublic getZ(pointIndex: int32): float64 {\r\n\t\tlet range: float64 = (this.points16 == null) ? 256.0 : 65536.0;\r\n\t\tlet bias: float64 = (this.points16 == null) ? 0.5 : 0.0;\r\n\t\treturn this.bounds.min.z + ((this.getRawZ(pointIndex) + bias) / range) * (this.bounds.max.z - this.bounds.min.z);\r\n\t}\r\n\r\n\tpublic getRed(pointIndex: int32): int32 {\r\n\t\treturn this.colors.get(3 * pointIndex + 2);\r\n\t}\r\n\r\n\tpublic getGreen(pointIndex: int32): int32 {\r\n\t\treturn this.colors.get(3 * pointIndex + 1);\r\n\t}\r\n\r\n\tpublic getBlue(pointIndex: int32): int32 {\r\n\t\treturn this.colors.get(3 * pointIndex + 0);\r\n\t}\r\n}\r\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,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C,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"]}