@itwin/core-orbitgt 4.0.0-dev.44 → 4.0.0-dev.48
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.
- package/lib/cjs/core-orbitgt.d.ts +26 -26
- package/lib/cjs/core-orbitgt.js +58 -58
- package/lib/cjs/core-orbitgt.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/AttributeMask.d.ts +30 -30
- package/lib/cjs/pointcloud/format/opc/AttributeMask.js +47 -47
- package/lib/cjs/pointcloud/format/opc/AttributeMask.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/AttributeReader.d.ts +63 -63
- package/lib/cjs/pointcloud/format/opc/AttributeReader.js +24 -24
- package/lib/cjs/pointcloud/format/opc/AttributeReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/BlockRecord.d.ts +54 -54
- package/lib/cjs/pointcloud/format/opc/BlockRecord.js +84 -84
- package/lib/cjs/pointcloud/format/opc/BlockRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/ContainerFile.d.ts +85 -85
- package/lib/cjs/pointcloud/format/opc/ContainerFile.js +199 -199
- package/lib/cjs/pointcloud/format/opc/ContainerFile.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/ContainerFilePart.d.ts +55 -55
- package/lib/cjs/pointcloud/format/opc/ContainerFilePart.js +75 -75
- package/lib/cjs/pointcloud/format/opc/ContainerFilePart.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.d.ts +75 -75
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.js +169 -169
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.d.ts +59 -59
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js +89 -89
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.d.ts +106 -106
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js +197 -197
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileAccess.d.ts +39 -39
- package/lib/cjs/pointcloud/format/opc/FileAccess.js +48 -48
- package/lib/cjs/pointcloud/format/opc/FileAccess.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileReader.d.ts +118 -118
- package/lib/cjs/pointcloud/format/opc/FileReader.js +248 -248
- package/lib/cjs/pointcloud/format/opc/FileReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileRecord.d.ts +89 -89
- package/lib/cjs/pointcloud/format/opc/FileRecord.js +125 -125
- package/lib/cjs/pointcloud/format/opc/FileRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/GeometryReader.d.ts +79 -79
- package/lib/cjs/pointcloud/format/opc/GeometryReader.js +163 -163
- package/lib/cjs/pointcloud/format/opc/GeometryReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/GeometryRecord.d.ts +53 -53
- package/lib/cjs/pointcloud/format/opc/GeometryRecord.js +107 -107
- package/lib/cjs/pointcloud/format/opc/GeometryRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/OPCReader.d.ts +157 -157
- package/lib/cjs/pointcloud/format/opc/OPCReader.js +319 -319
- package/lib/cjs/pointcloud/format/opc/OPCReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/PointReader.d.ts +72 -72
- package/lib/cjs/pointcloud/format/opc/PointReader.js +152 -152
- package/lib/cjs/pointcloud/format/opc/PointReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.d.ts +63 -63
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.js +92 -92
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/TileRecord.d.ts +88 -88
- package/lib/cjs/pointcloud/format/opc/TileRecord.js +161 -161
- package/lib/cjs/pointcloud/format/opc/TileRecord.js.map +1 -1
- package/lib/cjs/pointcloud/model/AttributeTypes.d.ts +37 -37
- package/lib/cjs/pointcloud/model/AttributeTypes.js +64 -64
- package/lib/cjs/pointcloud/model/AttributeTypes.js.map +1 -1
- package/lib/cjs/pointcloud/model/AttributeValue.d.ts +247 -247
- package/lib/cjs/pointcloud/model/AttributeValue.js +508 -508
- package/lib/cjs/pointcloud/model/AttributeValue.js.map +1 -1
- package/lib/cjs/pointcloud/model/BlockIndex.d.ts +49 -49
- package/lib/cjs/pointcloud/model/BlockIndex.js +48 -48
- package/lib/cjs/pointcloud/model/BlockIndex.js.map +1 -1
- package/lib/cjs/pointcloud/model/CloudPoint.d.ts +210 -210
- package/lib/cjs/pointcloud/model/CloudPoint.js +318 -318
- package/lib/cjs/pointcloud/model/CloudPoint.js.map +1 -1
- package/lib/cjs/pointcloud/model/Grid.d.ts +91 -91
- package/lib/cjs/pointcloud/model/Grid.js +129 -129
- package/lib/cjs/pointcloud/model/Grid.js.map +1 -1
- package/lib/cjs/pointcloud/model/GridIndex.d.ts +66 -66
- package/lib/cjs/pointcloud/model/GridIndex.js +93 -93
- package/lib/cjs/pointcloud/model/GridIndex.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointAttribute.d.ts +208 -208
- package/lib/cjs/pointcloud/model/PointAttribute.js +374 -374
- package/lib/cjs/pointcloud/model/PointAttribute.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointCloudReader.d.ts +156 -156
- package/lib/cjs/pointcloud/model/PointCloudReader.js +189 -189
- package/lib/cjs/pointcloud/model/PointCloudReader.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointData.d.ts +17 -17
- package/lib/cjs/pointcloud/model/PointData.js +24 -24
- package/lib/cjs/pointcloud/model/PointData.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointDataRaw.d.ts +34 -34
- package/lib/cjs/pointcloud/model/PointDataRaw.js +69 -69
- package/lib/cjs/pointcloud/model/PointDataRaw.js.map +1 -1
- package/lib/cjs/pointcloud/model/ReadRequest.d.ts +175 -175
- package/lib/cjs/pointcloud/model/ReadRequest.js +239 -239
- package/lib/cjs/pointcloud/model/ReadRequest.js.map +1 -1
- package/lib/cjs/pointcloud/model/StandardAttributes.d.ts +40 -40
- package/lib/cjs/pointcloud/model/StandardAttributes.js +47 -47
- package/lib/cjs/pointcloud/model/StandardAttributes.js.map +1 -1
- package/lib/cjs/pointcloud/model/TileIndex.d.ts +47 -47
- package/lib/cjs/pointcloud/model/TileIndex.js +47 -47
- package/lib/cjs/pointcloud/model/TileIndex.js.map +1 -1
- package/lib/cjs/pointcloud/render/AViewRequest.d.ts +38 -38
- package/lib/cjs/pointcloud/render/AViewRequest.js +24 -24
- package/lib/cjs/pointcloud/render/AViewRequest.js.map +1 -1
- package/lib/cjs/pointcloud/render/Block.d.ts +67 -67
- package/lib/cjs/pointcloud/render/Block.js +119 -119
- package/lib/cjs/pointcloud/render/Block.js.map +1 -1
- package/lib/cjs/pointcloud/render/DataManager.d.ts +136 -136
- package/lib/cjs/pointcloud/render/DataManager.js +342 -342
- package/lib/cjs/pointcloud/render/DataManager.js.map +1 -1
- package/lib/cjs/pointcloud/render/FrameData.d.ts +30 -30
- package/lib/cjs/pointcloud/render/FrameData.js +39 -39
- package/lib/cjs/pointcloud/render/FrameData.js.map +1 -1
- package/lib/cjs/pointcloud/render/Level.d.ts +90 -90
- package/lib/cjs/pointcloud/render/Level.js +119 -119
- package/lib/cjs/pointcloud/render/Level.js.map +1 -1
- package/lib/cjs/pointcloud/render/TileLoadSorter.d.ts +60 -60
- package/lib/cjs/pointcloud/render/TileLoadSorter.js +99 -99
- package/lib/cjs/pointcloud/render/TileLoadSorter.js.map +1 -1
- package/lib/cjs/pointcloud/render/ViewTree.d.ts +113 -113
- package/lib/cjs/pointcloud/render/ViewTree.js +363 -363
- package/lib/cjs/pointcloud/render/ViewTree.js.map +1 -1
- package/lib/cjs/spatial/crs/CRSEngine.d.ts +55 -55
- package/lib/cjs/spatial/crs/CRSEngine.js +93 -93
- package/lib/cjs/spatial/crs/CRSEngine.js.map +1 -1
- package/lib/cjs/spatial/crs/CRSManager.d.ts +49 -49
- package/lib/cjs/spatial/crs/CRSManager.js +109 -109
- package/lib/cjs/spatial/crs/CRSManager.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Axis.d.ts +77 -77
- package/lib/cjs/spatial/ecrs/Axis.js +93 -93
- package/lib/cjs/spatial/ecrs/Axis.js.map +1 -1
- package/lib/cjs/spatial/ecrs/CRS.d.ts +447 -447
- package/lib/cjs/spatial/ecrs/CRS.js +930 -930
- package/lib/cjs/spatial/ecrs/CRS.js.map +1 -1
- package/lib/cjs/spatial/ecrs/CoordinateSystem.d.ts +142 -142
- package/lib/cjs/spatial/ecrs/CoordinateSystem.js +326 -326
- package/lib/cjs/spatial/ecrs/CoordinateSystem.js.map +1 -1
- package/lib/cjs/spatial/ecrs/DataFileUnit.d.ts +10 -10
- package/lib/cjs/spatial/ecrs/DataFileUnit.js +104 -104
- package/lib/cjs/spatial/ecrs/DataFileUnit.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Datum.d.ts +111 -111
- package/lib/cjs/spatial/ecrs/Datum.js +166 -166
- package/lib/cjs/spatial/ecrs/Datum.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Ellipsoid.d.ts +188 -188
- package/lib/cjs/spatial/ecrs/Ellipsoid.js +336 -336
- package/lib/cjs/spatial/ecrs/Ellipsoid.js.map +1 -1
- package/lib/cjs/spatial/ecrs/OnlineEngine.d.ts +48 -48
- package/lib/cjs/spatial/ecrs/OnlineEngine.js +102 -102
- package/lib/cjs/spatial/ecrs/OnlineEngine.js.map +1 -1
- package/lib/cjs/spatial/ecrs/OnlineRegistry.d.ts +37 -37
- package/lib/cjs/spatial/ecrs/OnlineRegistry.js +76 -76
- package/lib/cjs/spatial/ecrs/OnlineRegistry.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Operation.d.ts +191 -191
- package/lib/cjs/spatial/ecrs/Operation.js +345 -345
- package/lib/cjs/spatial/ecrs/Operation.js.map +1 -1
- package/lib/cjs/spatial/ecrs/OperationMethod.d.ts +71 -71
- package/lib/cjs/spatial/ecrs/OperationMethod.js +75 -75
- package/lib/cjs/spatial/ecrs/OperationMethod.js.map +1 -1
- package/lib/cjs/spatial/ecrs/ParameterValue.d.ts +49 -49
- package/lib/cjs/spatial/ecrs/ParameterValue.js +65 -65
- package/lib/cjs/spatial/ecrs/ParameterValue.js.map +1 -1
- package/lib/cjs/spatial/ecrs/ParameterValueList.d.ts +72 -72
- package/lib/cjs/spatial/ecrs/ParameterValueList.js +120 -120
- package/lib/cjs/spatial/ecrs/ParameterValueList.js.map +1 -1
- package/lib/cjs/spatial/ecrs/PrimeMeridian.d.ts +78 -78
- package/lib/cjs/spatial/ecrs/PrimeMeridian.js +108 -108
- package/lib/cjs/spatial/ecrs/PrimeMeridian.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Registry.d.ts +109 -109
- package/lib/cjs/spatial/ecrs/Registry.js +207 -207
- package/lib/cjs/spatial/ecrs/Registry.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Transform.d.ts +77 -77
- package/lib/cjs/spatial/ecrs/Transform.js +396 -396
- package/lib/cjs/spatial/ecrs/Transform.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Unit.d.ts +170 -170
- package/lib/cjs/spatial/ecrs/Unit.js +336 -336
- package/lib/cjs/spatial/ecrs/Unit.js.map +1 -1
- package/lib/cjs/spatial/ecrs/VerticalModel.d.ts +69 -69
- package/lib/cjs/spatial/ecrs/VerticalModel.js +88 -88
- package/lib/cjs/spatial/ecrs/VerticalModel.js.map +1 -1
- package/lib/cjs/spatial/ecrs/WellKnownText.d.ts +153 -153
- package/lib/cjs/spatial/ecrs/WellKnownText.js +494 -494
- package/lib/cjs/spatial/ecrs/WellKnownText.js.map +1 -1
- package/lib/cjs/spatial/ecrs/WellKnownTextNode.d.ts +69 -69
- package/lib/cjs/spatial/ecrs/WellKnownTextNode.js +128 -128
- package/lib/cjs/spatial/ecrs/WellKnownTextNode.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.d.ts +101 -101
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js +162 -162
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.d.ts +79 -79
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js +125 -125
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.d.ts +47 -47
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js +73 -73
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.d.ts +72 -72
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js +129 -129
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.d.ts +120 -120
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js +179 -179
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.d.ts +73 -73
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js +112 -112
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.d.ts +96 -96
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js +173 -173
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.d.ts +123 -123
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js +208 -208
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.d.ts +108 -108
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js +183 -183
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/transformation/PositionVector.d.ts +90 -90
- package/lib/cjs/spatial/ecrs/transformation/PositionVector.js +130 -130
- package/lib/cjs/spatial/ecrs/transformation/PositionVector.js.map +1 -1
- package/lib/cjs/spatial/geom/Bounds.d.ts +33 -33
- package/lib/cjs/spatial/geom/Bounds.js +156 -156
- package/lib/cjs/spatial/geom/Bounds.js.map +1 -1
- package/lib/cjs/spatial/geom/Coordinate.d.ts +61 -61
- package/lib/cjs/spatial/geom/Coordinate.js +186 -186
- package/lib/cjs/spatial/geom/Coordinate.js.map +1 -1
- package/lib/cjs/spatial/geom/Line.d.ts +225 -225
- package/lib/cjs/spatial/geom/Line.js +432 -432
- package/lib/cjs/spatial/geom/Line.js.map +1 -1
- package/lib/cjs/spatial/geom/Transform.d.ts +340 -340
- package/lib/cjs/spatial/geom/Transform.js +748 -748
- package/lib/cjs/spatial/geom/Transform.js.map +1 -1
- package/lib/cjs/system/buffer/ABuffer.d.ts +51 -51
- package/lib/cjs/system/buffer/ABuffer.js +90 -90
- package/lib/cjs/system/buffer/ABuffer.js.map +1 -1
- package/lib/cjs/system/buffer/Float32Buffer.d.ts +46 -46
- package/lib/cjs/system/buffer/Float32Buffer.js +60 -60
- package/lib/cjs/system/buffer/Float32Buffer.js.map +1 -1
- package/lib/cjs/system/buffer/LittleEndian.d.ts +149 -149
- package/lib/cjs/system/buffer/LittleEndian.js +303 -303
- package/lib/cjs/system/buffer/LittleEndian.js.map +1 -1
- package/lib/cjs/system/buffer/Uint16Buffer.d.ts +49 -49
- package/lib/cjs/system/buffer/Uint16Buffer.js +65 -65
- package/lib/cjs/system/buffer/Uint16Buffer.js.map +1 -1
- package/lib/cjs/system/buffer/Uint8Buffer.d.ts +49 -49
- package/lib/cjs/system/buffer/Uint8Buffer.js +65 -65
- package/lib/cjs/system/buffer/Uint8Buffer.js.map +1 -1
- package/lib/cjs/system/collection/AList.d.ts +30 -30
- package/lib/cjs/system/collection/AList.js +70 -70
- package/lib/cjs/system/collection/AList.js.map +1 -1
- package/lib/cjs/system/collection/IntMap.d.ts +18 -18
- package/lib/cjs/system/collection/IntMap.js +35 -35
- package/lib/cjs/system/collection/IntMap.js.map +1 -1
- package/lib/cjs/system/collection/StringMap.d.ts +26 -26
- package/lib/cjs/system/collection/StringMap.js +63 -63
- package/lib/cjs/system/collection/StringMap.js.map +1 -1
- package/lib/cjs/system/io/ABufferInStream.d.ts +29 -29
- package/lib/cjs/system/io/ABufferInStream.js +46 -46
- package/lib/cjs/system/io/ABufferInStream.js.map +1 -1
- package/lib/cjs/system/io/InStream.d.ts +23 -23
- package/lib/cjs/system/io/InStream.js +34 -34
- package/lib/cjs/system/io/InStream.js.map +1 -1
- package/lib/cjs/system/io/OutStream.d.ts +23 -23
- package/lib/cjs/system/io/OutStream.js +33 -33
- package/lib/cjs/system/io/OutStream.js.map +1 -1
- package/lib/cjs/system/runtime/ALong.d.ts +329 -329
- package/lib/cjs/system/runtime/ALong.js +687 -687
- package/lib/cjs/system/runtime/ALong.js.map +1 -1
- package/lib/cjs/system/runtime/ASystem.d.ts +14 -14
- package/lib/cjs/system/runtime/ASystem.js +31 -31
- package/lib/cjs/system/runtime/ASystem.js.map +1 -1
- package/lib/cjs/system/runtime/Downloader.d.ts +17 -17
- package/lib/cjs/system/runtime/Downloader.js +38 -38
- package/lib/cjs/system/runtime/Downloader.js.map +1 -1
- package/lib/cjs/system/runtime/DownloaderNode.d.ts +18 -18
- package/lib/cjs/system/runtime/DownloaderNode.js +129 -129
- package/lib/cjs/system/runtime/DownloaderNode.js.map +1 -1
- package/lib/cjs/system/runtime/DownloaderXhr.d.ts +18 -18
- package/lib/cjs/system/runtime/DownloaderXhr.js +131 -131
- package/lib/cjs/system/runtime/DownloaderXhr.js.map +1 -1
- package/lib/cjs/system/runtime/Message.d.ts +16 -16
- package/lib/cjs/system/runtime/Message.js +39 -39
- package/lib/cjs/system/runtime/Message.js.map +1 -1
- package/lib/cjs/system/runtime/Numbers.d.ts +34 -34
- package/lib/cjs/system/runtime/Numbers.js +87 -87
- package/lib/cjs/system/runtime/Numbers.js.map +1 -1
- package/lib/cjs/system/runtime/Strings.d.ts +49 -49
- package/lib/cjs/system/runtime/Strings.js +188 -188
- package/lib/cjs/system/runtime/Strings.js.map +1 -1
- package/lib/cjs/system/runtime/iComparator.d.ts +12 -12
- package/lib/cjs/system/runtime/iComparator.js +9 -9
- package/lib/cjs/system/runtime/iComparator.js.map +1 -1
- package/lib/cjs/system/storage/CacheList.d.ts +39 -39
- package/lib/cjs/system/storage/CacheList.js +80 -80
- package/lib/cjs/system/storage/CacheList.js.map +1 -1
- package/lib/cjs/system/storage/CachedItem.d.ts +21 -21
- package/lib/cjs/system/storage/CachedItem.js +25 -25
- package/lib/cjs/system/storage/CachedItem.js.map +1 -1
- package/lib/cjs/system/storage/ContentLoader.d.ts +64 -64
- package/lib/cjs/system/storage/ContentLoader.js +95 -95
- package/lib/cjs/system/storage/ContentLoader.js.map +1 -1
- package/lib/cjs/system/storage/FileContent.d.ts +19 -19
- package/lib/cjs/system/storage/FileContent.js +24 -24
- package/lib/cjs/system/storage/FileContent.js.map +1 -1
- package/lib/cjs/system/storage/FileRange.d.ts +20 -20
- package/lib/cjs/system/storage/FileRange.js +24 -24
- package/lib/cjs/system/storage/FileRange.js.map +1 -1
- package/lib/cjs/system/storage/FileStorage.d.ts +44 -44
- package/lib/cjs/system/storage/FileStorage.js +62 -62
- package/lib/cjs/system/storage/FileStorage.js.map +1 -1
- package/lib/cjs/system/storage/NodeFS.d.ts +41 -41
- package/lib/cjs/system/storage/NodeFS.js +79 -79
- package/lib/cjs/system/storage/NodeFS.js.map +1 -1
- package/lib/cjs/system/storage/PageCachedFile.d.ts +54 -54
- package/lib/cjs/system/storage/PageCachedFile.js +165 -165
- package/lib/cjs/system/storage/PageCachedFile.js.map +1 -1
- package/lib/cjs/system/storage/UrlFS.d.ts +53 -53
- package/lib/cjs/system/storage/UrlFS.js +114 -114
- package/lib/cjs/system/storage/UrlFS.js.map +1 -1
- package/lib/esm/core-orbitgt.d.ts +26 -26
- package/lib/esm/core-orbitgt.js +31 -31
- package/lib/esm/core-orbitgt.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/AttributeMask.d.ts +30 -30
- package/lib/esm/pointcloud/format/opc/AttributeMask.js +43 -43
- package/lib/esm/pointcloud/format/opc/AttributeMask.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/AttributeReader.d.ts +63 -63
- package/lib/esm/pointcloud/format/opc/AttributeReader.js +20 -20
- package/lib/esm/pointcloud/format/opc/AttributeReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/BlockRecord.d.ts +54 -54
- package/lib/esm/pointcloud/format/opc/BlockRecord.js +80 -80
- package/lib/esm/pointcloud/format/opc/BlockRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/ContainerFile.d.ts +85 -85
- package/lib/esm/pointcloud/format/opc/ContainerFile.js +195 -195
- package/lib/esm/pointcloud/format/opc/ContainerFile.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/ContainerFilePart.d.ts +55 -55
- package/lib/esm/pointcloud/format/opc/ContainerFilePart.js +71 -71
- package/lib/esm/pointcloud/format/opc/ContainerFilePart.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/DirectoryReader.d.ts +75 -75
- package/lib/esm/pointcloud/format/opc/DirectoryReader.js +165 -165
- package/lib/esm/pointcloud/format/opc/DirectoryReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.d.ts +59 -59
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.js +85 -85
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.d.ts +106 -106
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js +193 -193
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileAccess.d.ts +39 -39
- package/lib/esm/pointcloud/format/opc/FileAccess.js +44 -44
- package/lib/esm/pointcloud/format/opc/FileAccess.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileReader.d.ts +118 -118
- package/lib/esm/pointcloud/format/opc/FileReader.js +244 -244
- package/lib/esm/pointcloud/format/opc/FileReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileRecord.d.ts +89 -89
- package/lib/esm/pointcloud/format/opc/FileRecord.js +121 -121
- package/lib/esm/pointcloud/format/opc/FileRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/GeometryReader.d.ts +79 -79
- package/lib/esm/pointcloud/format/opc/GeometryReader.js +159 -159
- package/lib/esm/pointcloud/format/opc/GeometryReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/GeometryRecord.d.ts +53 -53
- package/lib/esm/pointcloud/format/opc/GeometryRecord.js +103 -103
- package/lib/esm/pointcloud/format/opc/GeometryRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/OPCReader.d.ts +157 -157
- package/lib/esm/pointcloud/format/opc/OPCReader.js +315 -315
- package/lib/esm/pointcloud/format/opc/OPCReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/PointReader.d.ts +72 -72
- package/lib/esm/pointcloud/format/opc/PointReader.js +148 -148
- package/lib/esm/pointcloud/format/opc/PointReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.d.ts +63 -63
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.js +88 -88
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/TileRecord.d.ts +88 -88
- package/lib/esm/pointcloud/format/opc/TileRecord.js +157 -157
- package/lib/esm/pointcloud/format/opc/TileRecord.js.map +1 -1
- package/lib/esm/pointcloud/model/AttributeTypes.d.ts +37 -37
- package/lib/esm/pointcloud/model/AttributeTypes.js +60 -60
- package/lib/esm/pointcloud/model/AttributeTypes.js.map +1 -1
- package/lib/esm/pointcloud/model/AttributeValue.d.ts +247 -247
- package/lib/esm/pointcloud/model/AttributeValue.js +504 -504
- package/lib/esm/pointcloud/model/AttributeValue.js.map +1 -1
- package/lib/esm/pointcloud/model/BlockIndex.d.ts +49 -49
- package/lib/esm/pointcloud/model/BlockIndex.js +44 -44
- package/lib/esm/pointcloud/model/BlockIndex.js.map +1 -1
- package/lib/esm/pointcloud/model/CloudPoint.d.ts +210 -210
- package/lib/esm/pointcloud/model/CloudPoint.js +314 -314
- package/lib/esm/pointcloud/model/CloudPoint.js.map +1 -1
- package/lib/esm/pointcloud/model/Grid.d.ts +91 -91
- package/lib/esm/pointcloud/model/Grid.js +125 -125
- package/lib/esm/pointcloud/model/Grid.js.map +1 -1
- package/lib/esm/pointcloud/model/GridIndex.d.ts +66 -66
- package/lib/esm/pointcloud/model/GridIndex.js +89 -89
- package/lib/esm/pointcloud/model/GridIndex.js.map +1 -1
- package/lib/esm/pointcloud/model/PointAttribute.d.ts +208 -208
- package/lib/esm/pointcloud/model/PointAttribute.js +370 -370
- package/lib/esm/pointcloud/model/PointAttribute.js.map +1 -1
- package/lib/esm/pointcloud/model/PointCloudReader.d.ts +156 -156
- package/lib/esm/pointcloud/model/PointCloudReader.js +185 -185
- package/lib/esm/pointcloud/model/PointCloudReader.js.map +1 -1
- package/lib/esm/pointcloud/model/PointData.d.ts +17 -17
- package/lib/esm/pointcloud/model/PointData.js +20 -20
- package/lib/esm/pointcloud/model/PointData.js.map +1 -1
- package/lib/esm/pointcloud/model/PointDataRaw.d.ts +34 -34
- package/lib/esm/pointcloud/model/PointDataRaw.js +65 -65
- package/lib/esm/pointcloud/model/PointDataRaw.js.map +1 -1
- package/lib/esm/pointcloud/model/ReadRequest.d.ts +175 -175
- package/lib/esm/pointcloud/model/ReadRequest.js +235 -235
- package/lib/esm/pointcloud/model/ReadRequest.js.map +1 -1
- package/lib/esm/pointcloud/model/StandardAttributes.d.ts +40 -40
- package/lib/esm/pointcloud/model/StandardAttributes.js +43 -43
- package/lib/esm/pointcloud/model/StandardAttributes.js.map +1 -1
- package/lib/esm/pointcloud/model/TileIndex.d.ts +47 -47
- package/lib/esm/pointcloud/model/TileIndex.js +43 -43
- package/lib/esm/pointcloud/model/TileIndex.js.map +1 -1
- package/lib/esm/pointcloud/render/AViewRequest.d.ts +38 -38
- package/lib/esm/pointcloud/render/AViewRequest.js +20 -20
- package/lib/esm/pointcloud/render/AViewRequest.js.map +1 -1
- package/lib/esm/pointcloud/render/Block.d.ts +67 -67
- package/lib/esm/pointcloud/render/Block.js +115 -115
- package/lib/esm/pointcloud/render/Block.js.map +1 -1
- package/lib/esm/pointcloud/render/DataManager.d.ts +136 -136
- package/lib/esm/pointcloud/render/DataManager.js +338 -338
- package/lib/esm/pointcloud/render/DataManager.js.map +1 -1
- package/lib/esm/pointcloud/render/FrameData.d.ts +30 -30
- package/lib/esm/pointcloud/render/FrameData.js +35 -35
- package/lib/esm/pointcloud/render/FrameData.js.map +1 -1
- package/lib/esm/pointcloud/render/Level.d.ts +90 -90
- package/lib/esm/pointcloud/render/Level.js +115 -115
- package/lib/esm/pointcloud/render/Level.js.map +1 -1
- package/lib/esm/pointcloud/render/TileLoadSorter.d.ts +60 -60
- package/lib/esm/pointcloud/render/TileLoadSorter.js +95 -95
- package/lib/esm/pointcloud/render/TileLoadSorter.js.map +1 -1
- package/lib/esm/pointcloud/render/ViewTree.d.ts +113 -113
- package/lib/esm/pointcloud/render/ViewTree.js +359 -359
- package/lib/esm/pointcloud/render/ViewTree.js.map +1 -1
- package/lib/esm/spatial/crs/CRSEngine.d.ts +55 -55
- package/lib/esm/spatial/crs/CRSEngine.js +89 -89
- package/lib/esm/spatial/crs/CRSEngine.js.map +1 -1
- package/lib/esm/spatial/crs/CRSManager.d.ts +49 -49
- package/lib/esm/spatial/crs/CRSManager.js +105 -105
- package/lib/esm/spatial/crs/CRSManager.js.map +1 -1
- package/lib/esm/spatial/ecrs/Axis.d.ts +77 -77
- package/lib/esm/spatial/ecrs/Axis.js +89 -89
- package/lib/esm/spatial/ecrs/Axis.js.map +1 -1
- package/lib/esm/spatial/ecrs/CRS.d.ts +447 -447
- package/lib/esm/spatial/ecrs/CRS.js +926 -926
- package/lib/esm/spatial/ecrs/CRS.js.map +1 -1
- package/lib/esm/spatial/ecrs/CoordinateSystem.d.ts +142 -142
- package/lib/esm/spatial/ecrs/CoordinateSystem.js +322 -322
- package/lib/esm/spatial/ecrs/CoordinateSystem.js.map +1 -1
- package/lib/esm/spatial/ecrs/DataFileUnit.d.ts +10 -10
- package/lib/esm/spatial/ecrs/DataFileUnit.js +100 -100
- package/lib/esm/spatial/ecrs/DataFileUnit.js.map +1 -1
- package/lib/esm/spatial/ecrs/Datum.d.ts +111 -111
- package/lib/esm/spatial/ecrs/Datum.js +162 -162
- package/lib/esm/spatial/ecrs/Datum.js.map +1 -1
- package/lib/esm/spatial/ecrs/Ellipsoid.d.ts +188 -188
- package/lib/esm/spatial/ecrs/Ellipsoid.js +332 -332
- package/lib/esm/spatial/ecrs/Ellipsoid.js.map +1 -1
- package/lib/esm/spatial/ecrs/OnlineEngine.d.ts +48 -48
- package/lib/esm/spatial/ecrs/OnlineEngine.js +98 -98
- package/lib/esm/spatial/ecrs/OnlineEngine.js.map +1 -1
- package/lib/esm/spatial/ecrs/OnlineRegistry.d.ts +37 -37
- package/lib/esm/spatial/ecrs/OnlineRegistry.js +72 -72
- package/lib/esm/spatial/ecrs/OnlineRegistry.js.map +1 -1
- package/lib/esm/spatial/ecrs/Operation.d.ts +191 -191
- package/lib/esm/spatial/ecrs/Operation.js +341 -341
- package/lib/esm/spatial/ecrs/Operation.js.map +1 -1
- package/lib/esm/spatial/ecrs/OperationMethod.d.ts +71 -71
- package/lib/esm/spatial/ecrs/OperationMethod.js +71 -71
- package/lib/esm/spatial/ecrs/OperationMethod.js.map +1 -1
- package/lib/esm/spatial/ecrs/ParameterValue.d.ts +49 -49
- package/lib/esm/spatial/ecrs/ParameterValue.js +61 -61
- package/lib/esm/spatial/ecrs/ParameterValue.js.map +1 -1
- package/lib/esm/spatial/ecrs/ParameterValueList.d.ts +72 -72
- package/lib/esm/spatial/ecrs/ParameterValueList.js +116 -116
- package/lib/esm/spatial/ecrs/ParameterValueList.js.map +1 -1
- package/lib/esm/spatial/ecrs/PrimeMeridian.d.ts +78 -78
- package/lib/esm/spatial/ecrs/PrimeMeridian.js +104 -104
- package/lib/esm/spatial/ecrs/PrimeMeridian.js.map +1 -1
- package/lib/esm/spatial/ecrs/Registry.d.ts +109 -109
- package/lib/esm/spatial/ecrs/Registry.js +203 -203
- package/lib/esm/spatial/ecrs/Registry.js.map +1 -1
- package/lib/esm/spatial/ecrs/Transform.d.ts +77 -77
- package/lib/esm/spatial/ecrs/Transform.js +392 -392
- package/lib/esm/spatial/ecrs/Transform.js.map +1 -1
- package/lib/esm/spatial/ecrs/Unit.d.ts +170 -170
- package/lib/esm/spatial/ecrs/Unit.js +332 -332
- package/lib/esm/spatial/ecrs/Unit.js.map +1 -1
- package/lib/esm/spatial/ecrs/VerticalModel.d.ts +69 -69
- package/lib/esm/spatial/ecrs/VerticalModel.js +84 -84
- package/lib/esm/spatial/ecrs/VerticalModel.js.map +1 -1
- package/lib/esm/spatial/ecrs/WellKnownText.d.ts +153 -153
- package/lib/esm/spatial/ecrs/WellKnownText.js +490 -490
- package/lib/esm/spatial/ecrs/WellKnownText.js.map +1 -1
- package/lib/esm/spatial/ecrs/WellKnownTextNode.d.ts +69 -69
- package/lib/esm/spatial/ecrs/WellKnownTextNode.js +124 -124
- package/lib/esm/spatial/ecrs/WellKnownTextNode.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.d.ts +101 -101
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js +158 -158
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.d.ts +79 -79
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js +121 -121
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.d.ts +47 -47
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js +69 -69
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.d.ts +72 -72
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js +125 -125
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.d.ts +120 -120
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js +175 -175
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.d.ts +73 -73
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.js +108 -108
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.d.ts +96 -96
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js +169 -169
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.d.ts +123 -123
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js +204 -204
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.d.ts +108 -108
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.js +179 -179
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/transformation/PositionVector.d.ts +90 -90
- package/lib/esm/spatial/ecrs/transformation/PositionVector.js +126 -126
- package/lib/esm/spatial/ecrs/transformation/PositionVector.js.map +1 -1
- package/lib/esm/spatial/geom/Bounds.d.ts +33 -33
- package/lib/esm/spatial/geom/Bounds.js +152 -152
- package/lib/esm/spatial/geom/Bounds.js.map +1 -1
- package/lib/esm/spatial/geom/Coordinate.d.ts +61 -61
- package/lib/esm/spatial/geom/Coordinate.js +182 -182
- package/lib/esm/spatial/geom/Coordinate.js.map +1 -1
- package/lib/esm/spatial/geom/Line.d.ts +225 -225
- package/lib/esm/spatial/geom/Line.js +428 -428
- package/lib/esm/spatial/geom/Line.js.map +1 -1
- package/lib/esm/spatial/geom/Transform.d.ts +340 -340
- package/lib/esm/spatial/geom/Transform.js +744 -744
- package/lib/esm/spatial/geom/Transform.js.map +1 -1
- package/lib/esm/system/buffer/ABuffer.d.ts +51 -51
- package/lib/esm/system/buffer/ABuffer.js +86 -86
- package/lib/esm/system/buffer/ABuffer.js.map +1 -1
- package/lib/esm/system/buffer/Float32Buffer.d.ts +46 -46
- package/lib/esm/system/buffer/Float32Buffer.js +56 -56
- package/lib/esm/system/buffer/Float32Buffer.js.map +1 -1
- package/lib/esm/system/buffer/LittleEndian.d.ts +149 -149
- package/lib/esm/system/buffer/LittleEndian.js +299 -299
- package/lib/esm/system/buffer/LittleEndian.js.map +1 -1
- package/lib/esm/system/buffer/Uint16Buffer.d.ts +49 -49
- package/lib/esm/system/buffer/Uint16Buffer.js +61 -61
- package/lib/esm/system/buffer/Uint16Buffer.js.map +1 -1
- package/lib/esm/system/buffer/Uint8Buffer.d.ts +49 -49
- package/lib/esm/system/buffer/Uint8Buffer.js +61 -61
- package/lib/esm/system/buffer/Uint8Buffer.js.map +1 -1
- package/lib/esm/system/collection/AList.d.ts +30 -30
- package/lib/esm/system/collection/AList.js +66 -66
- package/lib/esm/system/collection/AList.js.map +1 -1
- package/lib/esm/system/collection/IntMap.d.ts +18 -18
- package/lib/esm/system/collection/IntMap.js +31 -31
- package/lib/esm/system/collection/IntMap.js.map +1 -1
- package/lib/esm/system/collection/StringMap.d.ts +26 -26
- package/lib/esm/system/collection/StringMap.js +59 -59
- package/lib/esm/system/collection/StringMap.js.map +1 -1
- package/lib/esm/system/io/ABufferInStream.d.ts +29 -29
- package/lib/esm/system/io/ABufferInStream.js +42 -42
- package/lib/esm/system/io/ABufferInStream.js.map +1 -1
- package/lib/esm/system/io/InStream.d.ts +23 -23
- package/lib/esm/system/io/InStream.js +30 -30
- package/lib/esm/system/io/InStream.js.map +1 -1
- package/lib/esm/system/io/OutStream.d.ts +23 -23
- package/lib/esm/system/io/OutStream.js +29 -29
- package/lib/esm/system/io/OutStream.js.map +1 -1
- package/lib/esm/system/runtime/ALong.d.ts +329 -329
- package/lib/esm/system/runtime/ALong.js +683 -683
- package/lib/esm/system/runtime/ALong.js.map +1 -1
- package/lib/esm/system/runtime/ASystem.d.ts +14 -14
- package/lib/esm/system/runtime/ASystem.js +27 -27
- package/lib/esm/system/runtime/ASystem.js.map +1 -1
- package/lib/esm/system/runtime/Downloader.d.ts +17 -17
- package/lib/esm/system/runtime/Downloader.js +34 -34
- package/lib/esm/system/runtime/Downloader.js.map +1 -1
- package/lib/esm/system/runtime/DownloaderNode.d.ts +18 -18
- package/lib/esm/system/runtime/DownloaderNode.js +125 -125
- package/lib/esm/system/runtime/DownloaderNode.js.map +1 -1
- package/lib/esm/system/runtime/DownloaderXhr.d.ts +18 -18
- package/lib/esm/system/runtime/DownloaderXhr.js +127 -127
- package/lib/esm/system/runtime/DownloaderXhr.js.map +1 -1
- package/lib/esm/system/runtime/Message.d.ts +16 -16
- package/lib/esm/system/runtime/Message.js +35 -35
- package/lib/esm/system/runtime/Message.js.map +1 -1
- package/lib/esm/system/runtime/Numbers.d.ts +34 -34
- package/lib/esm/system/runtime/Numbers.js +83 -83
- package/lib/esm/system/runtime/Numbers.js.map +1 -1
- package/lib/esm/system/runtime/Strings.d.ts +49 -49
- package/lib/esm/system/runtime/Strings.js +184 -184
- package/lib/esm/system/runtime/Strings.js.map +1 -1
- package/lib/esm/system/runtime/iComparator.d.ts +12 -12
- package/lib/esm/system/runtime/iComparator.js +8 -8
- package/lib/esm/system/runtime/iComparator.js.map +1 -1
- package/lib/esm/system/storage/CacheList.d.ts +39 -39
- package/lib/esm/system/storage/CacheList.js +76 -76
- package/lib/esm/system/storage/CacheList.js.map +1 -1
- package/lib/esm/system/storage/CachedItem.d.ts +21 -21
- package/lib/esm/system/storage/CachedItem.js +21 -21
- package/lib/esm/system/storage/CachedItem.js.map +1 -1
- package/lib/esm/system/storage/ContentLoader.d.ts +64 -64
- package/lib/esm/system/storage/ContentLoader.js +91 -91
- package/lib/esm/system/storage/ContentLoader.js.map +1 -1
- package/lib/esm/system/storage/FileContent.d.ts +19 -19
- package/lib/esm/system/storage/FileContent.js +20 -20
- package/lib/esm/system/storage/FileContent.js.map +1 -1
- package/lib/esm/system/storage/FileRange.d.ts +20 -20
- package/lib/esm/system/storage/FileRange.js +20 -20
- package/lib/esm/system/storage/FileRange.js.map +1 -1
- package/lib/esm/system/storage/FileStorage.d.ts +44 -44
- package/lib/esm/system/storage/FileStorage.js +58 -58
- package/lib/esm/system/storage/FileStorage.js.map +1 -1
- package/lib/esm/system/storage/NodeFS.d.ts +41 -41
- package/lib/esm/system/storage/NodeFS.js +75 -75
- package/lib/esm/system/storage/NodeFS.js.map +1 -1
- package/lib/esm/system/storage/PageCachedFile.d.ts +54 -54
- package/lib/esm/system/storage/PageCachedFile.js +161 -161
- package/lib/esm/system/storage/PageCachedFile.js.map +1 -1
- package/lib/esm/system/storage/UrlFS.d.ts +53 -53
- package/lib/esm/system/storage/UrlFS.js +110 -110
- package/lib/esm/system/storage/UrlFS.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,158 +1,158 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
/** @packageDocumentation
|
|
6
|
-
* @module OrbitGT
|
|
7
|
-
*/
|
|
8
|
-
import { LittleEndian } from "../../../system/buffer/LittleEndian";
|
|
9
|
-
import { Numbers } from "../../../system/runtime/Numbers";
|
|
10
|
-
import { GridIndex } from "../../model/GridIndex";
|
|
11
|
-
import { TileIndex } from "../../model/TileIndex";
|
|
12
|
-
/**
|
|
13
|
-
* Class TileRecord defines a tile index record.
|
|
14
|
-
*
|
|
15
|
-
* @version 1.0 January 2014
|
|
16
|
-
*/
|
|
17
|
-
/** @internal */
|
|
18
|
-
export class TileRecord {
|
|
19
|
-
/**
|
|
20
|
-
* No instances.
|
|
21
|
-
*/
|
|
22
|
-
constructor() {
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Check if this tile has a certain index.
|
|
26
|
-
* @param tileX the tile x index.
|
|
27
|
-
* @param tileY the tile y index.
|
|
28
|
-
* @param tileZ the tile Z index.
|
|
29
|
-
* @return true if the tile has the index.
|
|
30
|
-
*/
|
|
31
|
-
static isTile(tile, tileX, tileY, tileZ) {
|
|
32
|
-
return (tileX == tile.gridIndex.x && tileY == tile.gridIndex.y && tileZ == tile.gridIndex.z);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Check if this tile is located after a certain index.
|
|
36
|
-
* @param tileX the tile x index.
|
|
37
|
-
* @param tileY the tile y index.
|
|
38
|
-
* @param tileZ the tile Z index.
|
|
39
|
-
* @return true if the tile is after the index.
|
|
40
|
-
*/
|
|
41
|
-
static isAfterTile(tile, tileX, tileY, tileZ) {
|
|
42
|
-
if (tile.gridIndex.x < tileX)
|
|
43
|
-
return false;
|
|
44
|
-
if (tile.gridIndex.x > tileX)
|
|
45
|
-
return true;
|
|
46
|
-
if (tile.gridIndex.y < tileY)
|
|
47
|
-
return false;
|
|
48
|
-
if (tile.gridIndex.y > tileY)
|
|
49
|
-
return true;
|
|
50
|
-
if (tile.gridIndex.z < tileZ)
|
|
51
|
-
return false;
|
|
52
|
-
if (tile.gridIndex.z > tileZ)
|
|
53
|
-
return true;
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Check if this tile is located before a certain index.
|
|
58
|
-
* @param tileX the tile x index.
|
|
59
|
-
* @param tileY the tile y index.
|
|
60
|
-
* @param tileZ the tile Z index.
|
|
61
|
-
* @return true if the tile is before the index.
|
|
62
|
-
*/
|
|
63
|
-
static isBeforeTile(tile, tileX, tileY, tileZ) {
|
|
64
|
-
if (tile.gridIndex.x < tileX)
|
|
65
|
-
return true;
|
|
66
|
-
if (tile.gridIndex.x > tileX)
|
|
67
|
-
return false;
|
|
68
|
-
if (tile.gridIndex.y < tileY)
|
|
69
|
-
return true;
|
|
70
|
-
if (tile.gridIndex.y > tileY)
|
|
71
|
-
return false;
|
|
72
|
-
if (tile.gridIndex.z < tileZ)
|
|
73
|
-
return true;
|
|
74
|
-
if (tile.gridIndex.z > tileZ)
|
|
75
|
-
return false;
|
|
76
|
-
return false;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Write a record.
|
|
80
|
-
* @param output the output stream.
|
|
81
|
-
*/
|
|
82
|
-
static write(tile, output) {
|
|
83
|
-
let tileX = tile.gridIndex.x;
|
|
84
|
-
let tileY = tile.gridIndex.y;
|
|
85
|
-
let tileZ = tile.gridIndex.z;
|
|
86
|
-
LittleEndian.writeStreamInt(output, tileX);
|
|
87
|
-
LittleEndian.writeStreamInt(output, tileY);
|
|
88
|
-
LittleEndian.writeStreamInt(output, tileZ);
|
|
89
|
-
LittleEndian.writeStreamInt(output, tile.pointCount);
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Read a record.
|
|
93
|
-
* @param tileGrid the grid.
|
|
94
|
-
* @param stream the data stream from the file.
|
|
95
|
-
* @param tileIndex the index of the tile.
|
|
96
|
-
* @param pointIndex the index of the first point in the tile.
|
|
97
|
-
* @return the requested record.
|
|
98
|
-
*/
|
|
99
|
-
static readNew(level, tileGrid, stream, tileIndex, pointIndex) {
|
|
100
|
-
/* Read the record */
|
|
101
|
-
let tileX = LittleEndian.readStreamInt(stream);
|
|
102
|
-
let tileY = LittleEndian.readStreamInt(stream);
|
|
103
|
-
let tileZ = LittleEndian.readStreamInt(stream);
|
|
104
|
-
let pointCount = LittleEndian.readStreamInt(stream);
|
|
105
|
-
/* Create the record */
|
|
106
|
-
return new TileIndex(level, tileIndex, new GridIndex(tileX, tileY, tileZ), pointIndex, pointCount);
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Read a record.
|
|
110
|
-
* @param in the input stream.
|
|
111
|
-
* @param tileIndex the index of the tile.
|
|
112
|
-
* @param pointIndex the index of the first point in the tile.
|
|
113
|
-
*/
|
|
114
|
-
static read(tile, level, blockIndex, stream, tileIndex, pointIndex) {
|
|
115
|
-
tile.level = level;
|
|
116
|
-
tile.index = tileIndex;
|
|
117
|
-
tile.gridIndex.x = LittleEndian.readStreamInt(stream);
|
|
118
|
-
tile.gridIndex.y = LittleEndian.readStreamInt(stream);
|
|
119
|
-
tile.gridIndex.z = LittleEndian.readStreamInt(stream);
|
|
120
|
-
tile.pointCount = LittleEndian.readStreamInt(stream);
|
|
121
|
-
tile.pointIndex = pointIndex;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Get the squared distance to a grid cell.
|
|
125
|
-
* @param reference the reference point.
|
|
126
|
-
* @return the squared distance.
|
|
127
|
-
*/
|
|
128
|
-
static distanceSq(tile, reference) {
|
|
129
|
-
let dx = (tile.gridIndex.x - reference.x);
|
|
130
|
-
let dy = (tile.gridIndex.y - reference.y);
|
|
131
|
-
let dz = (tile.gridIndex.z - reference.z);
|
|
132
|
-
return (dx * dx) + (dy * dy) + (dz * dz);
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Get a next-level index.
|
|
136
|
-
* @param index the index at the current level.
|
|
137
|
-
* @return the next-level index.
|
|
138
|
-
*/
|
|
139
|
-
static getNextLevelIndex1(index) {
|
|
140
|
-
if (index < 0)
|
|
141
|
-
return Numbers.divInt(index - 1, 2);
|
|
142
|
-
return Numbers.divInt(index, 2);
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Get a next-level index.
|
|
146
|
-
* @param index the index at the current level.
|
|
147
|
-
* @return the next-level index.
|
|
148
|
-
*/
|
|
149
|
-
static getNextLevelIndex(index) {
|
|
150
|
-
let nextX = TileRecord.getNextLevelIndex1(index.x);
|
|
151
|
-
let nextY = TileRecord.getNextLevelIndex1(index.y);
|
|
152
|
-
let nextZ = TileRecord.getNextLevelIndex1(index.z);
|
|
153
|
-
return new GridIndex(nextX, nextY, nextZ);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
/** The size of the record in the file */
|
|
157
|
-
TileRecord.RECORD_SIZE = 16;
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @packageDocumentation
|
|
6
|
+
* @module OrbitGT
|
|
7
|
+
*/
|
|
8
|
+
import { LittleEndian } from "../../../system/buffer/LittleEndian";
|
|
9
|
+
import { Numbers } from "../../../system/runtime/Numbers";
|
|
10
|
+
import { GridIndex } from "../../model/GridIndex";
|
|
11
|
+
import { TileIndex } from "../../model/TileIndex";
|
|
12
|
+
/**
|
|
13
|
+
* Class TileRecord defines a tile index record.
|
|
14
|
+
*
|
|
15
|
+
* @version 1.0 January 2014
|
|
16
|
+
*/
|
|
17
|
+
/** @internal */
|
|
18
|
+
export class TileRecord {
|
|
19
|
+
/**
|
|
20
|
+
* No instances.
|
|
21
|
+
*/
|
|
22
|
+
constructor() {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if this tile has a certain index.
|
|
26
|
+
* @param tileX the tile x index.
|
|
27
|
+
* @param tileY the tile y index.
|
|
28
|
+
* @param tileZ the tile Z index.
|
|
29
|
+
* @return true if the tile has the index.
|
|
30
|
+
*/
|
|
31
|
+
static isTile(tile, tileX, tileY, tileZ) {
|
|
32
|
+
return (tileX == tile.gridIndex.x && tileY == tile.gridIndex.y && tileZ == tile.gridIndex.z);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Check if this tile is located after a certain index.
|
|
36
|
+
* @param tileX the tile x index.
|
|
37
|
+
* @param tileY the tile y index.
|
|
38
|
+
* @param tileZ the tile Z index.
|
|
39
|
+
* @return true if the tile is after the index.
|
|
40
|
+
*/
|
|
41
|
+
static isAfterTile(tile, tileX, tileY, tileZ) {
|
|
42
|
+
if (tile.gridIndex.x < tileX)
|
|
43
|
+
return false;
|
|
44
|
+
if (tile.gridIndex.x > tileX)
|
|
45
|
+
return true;
|
|
46
|
+
if (tile.gridIndex.y < tileY)
|
|
47
|
+
return false;
|
|
48
|
+
if (tile.gridIndex.y > tileY)
|
|
49
|
+
return true;
|
|
50
|
+
if (tile.gridIndex.z < tileZ)
|
|
51
|
+
return false;
|
|
52
|
+
if (tile.gridIndex.z > tileZ)
|
|
53
|
+
return true;
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if this tile is located before a certain index.
|
|
58
|
+
* @param tileX the tile x index.
|
|
59
|
+
* @param tileY the tile y index.
|
|
60
|
+
* @param tileZ the tile Z index.
|
|
61
|
+
* @return true if the tile is before the index.
|
|
62
|
+
*/
|
|
63
|
+
static isBeforeTile(tile, tileX, tileY, tileZ) {
|
|
64
|
+
if (tile.gridIndex.x < tileX)
|
|
65
|
+
return true;
|
|
66
|
+
if (tile.gridIndex.x > tileX)
|
|
67
|
+
return false;
|
|
68
|
+
if (tile.gridIndex.y < tileY)
|
|
69
|
+
return true;
|
|
70
|
+
if (tile.gridIndex.y > tileY)
|
|
71
|
+
return false;
|
|
72
|
+
if (tile.gridIndex.z < tileZ)
|
|
73
|
+
return true;
|
|
74
|
+
if (tile.gridIndex.z > tileZ)
|
|
75
|
+
return false;
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Write a record.
|
|
80
|
+
* @param output the output stream.
|
|
81
|
+
*/
|
|
82
|
+
static write(tile, output) {
|
|
83
|
+
let tileX = tile.gridIndex.x;
|
|
84
|
+
let tileY = tile.gridIndex.y;
|
|
85
|
+
let tileZ = tile.gridIndex.z;
|
|
86
|
+
LittleEndian.writeStreamInt(output, tileX);
|
|
87
|
+
LittleEndian.writeStreamInt(output, tileY);
|
|
88
|
+
LittleEndian.writeStreamInt(output, tileZ);
|
|
89
|
+
LittleEndian.writeStreamInt(output, tile.pointCount);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Read a record.
|
|
93
|
+
* @param tileGrid the grid.
|
|
94
|
+
* @param stream the data stream from the file.
|
|
95
|
+
* @param tileIndex the index of the tile.
|
|
96
|
+
* @param pointIndex the index of the first point in the tile.
|
|
97
|
+
* @return the requested record.
|
|
98
|
+
*/
|
|
99
|
+
static readNew(level, tileGrid, stream, tileIndex, pointIndex) {
|
|
100
|
+
/* Read the record */
|
|
101
|
+
let tileX = LittleEndian.readStreamInt(stream);
|
|
102
|
+
let tileY = LittleEndian.readStreamInt(stream);
|
|
103
|
+
let tileZ = LittleEndian.readStreamInt(stream);
|
|
104
|
+
let pointCount = LittleEndian.readStreamInt(stream);
|
|
105
|
+
/* Create the record */
|
|
106
|
+
return new TileIndex(level, tileIndex, new GridIndex(tileX, tileY, tileZ), pointIndex, pointCount);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Read a record.
|
|
110
|
+
* @param in the input stream.
|
|
111
|
+
* @param tileIndex the index of the tile.
|
|
112
|
+
* @param pointIndex the index of the first point in the tile.
|
|
113
|
+
*/
|
|
114
|
+
static read(tile, level, blockIndex, stream, tileIndex, pointIndex) {
|
|
115
|
+
tile.level = level;
|
|
116
|
+
tile.index = tileIndex;
|
|
117
|
+
tile.gridIndex.x = LittleEndian.readStreamInt(stream);
|
|
118
|
+
tile.gridIndex.y = LittleEndian.readStreamInt(stream);
|
|
119
|
+
tile.gridIndex.z = LittleEndian.readStreamInt(stream);
|
|
120
|
+
tile.pointCount = LittleEndian.readStreamInt(stream);
|
|
121
|
+
tile.pointIndex = pointIndex;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Get the squared distance to a grid cell.
|
|
125
|
+
* @param reference the reference point.
|
|
126
|
+
* @return the squared distance.
|
|
127
|
+
*/
|
|
128
|
+
static distanceSq(tile, reference) {
|
|
129
|
+
let dx = (tile.gridIndex.x - reference.x);
|
|
130
|
+
let dy = (tile.gridIndex.y - reference.y);
|
|
131
|
+
let dz = (tile.gridIndex.z - reference.z);
|
|
132
|
+
return (dx * dx) + (dy * dy) + (dz * dz);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Get a next-level index.
|
|
136
|
+
* @param index the index at the current level.
|
|
137
|
+
* @return the next-level index.
|
|
138
|
+
*/
|
|
139
|
+
static getNextLevelIndex1(index) {
|
|
140
|
+
if (index < 0)
|
|
141
|
+
return Numbers.divInt(index - 1, 2);
|
|
142
|
+
return Numbers.divInt(index, 2);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Get a next-level index.
|
|
146
|
+
* @param index the index at the current level.
|
|
147
|
+
* @return the next-level index.
|
|
148
|
+
*/
|
|
149
|
+
static getNextLevelIndex(index) {
|
|
150
|
+
let nextX = TileRecord.getNextLevelIndex1(index.x);
|
|
151
|
+
let nextY = TileRecord.getNextLevelIndex1(index.y);
|
|
152
|
+
let nextZ = TileRecord.getNextLevelIndex1(index.z);
|
|
153
|
+
return new GridIndex(nextX, nextY, nextZ);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
/** The size of the record in the file */
|
|
157
|
+
TileRecord.RECORD_SIZE = 16;
|
|
158
158
|
//# sourceMappingURL=TileRecord.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileRecord.js","sourceRoot":"","sources":["../../../../../src/pointcloud/format/opc/TileRecord.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAKnE,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAG1D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,UAAU;IAInB;;OAEG;IACH;IACA,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,KAAY,EAAE,KAAY,EAAE,KAAY;QAC1E,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACjG,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,WAAW,CAAC,IAAe,EAAE,KAAY,EAAE,KAAY,EAAE,KAAY;QAC/E,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK;YAAE,OAAO,KAAK,CAAC;QAC3C,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK;YAAE,OAAO,IAAI,CAAC;QAC1C,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK;YAAE,OAAO,KAAK,CAAC;QAC3C,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK;YAAE,OAAO,IAAI,CAAC;QAC1C,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK;YAAE,OAAO,KAAK,CAAC;QA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,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QACjD,IAAI,EAAE,GAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QACjD,IAAI,EAAE,GAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QACjD,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED;;;;OAIG;IACK,MAAM,CAAC,kBAAkB,CAAC,KAAY;QAC1C,IAAI,KAAK,GAAG,CAAC;YAAE,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QACnD,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACpC,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,iBAAiB,CAAC,KAAgB;QAC5C,IAAI,KAAK,GAAU,UAAU,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1D,IAAI,KAAK,GAAU,UAAU,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1D,IAAI,KAAK,GAAU,UAAU,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1D,OAAO,IAAI,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC9C,CAAC;;AAtID,yCAAyC;AAClB,sBAAW,GAAU,EAAE,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.format.opc;\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 { AList } from \"../../../system/collection/AList\";\r\nimport { InStream } from \"../../../system/io/InStream\";\r\nimport { OutStream } from \"../../../system/io/OutStream\";\r\nimport { ALong } from \"../../../system/runtime/ALong\";\r\nimport { Numbers } from \"../../../system/runtime/Numbers\";\r\nimport { ContentLoader } from \"../../../system/storage/ContentLoader\";\r\nimport { Grid } from \"../../model/Grid\";\r\nimport { GridIndex } from \"../../model/GridIndex\";\r\nimport { TileIndex } from \"../../model/TileIndex\";\r\n\r\n/**\r\n * Class TileRecord defines a tile index record.\r\n *\r\n * @version 1.0 January 2014\r\n */\r\n/** @internal */\r\nexport class TileRecord {\r\n /** The size of the record in the file */\r\n public static readonly RECORD_SIZE: int32 = 16;\r\n\r\n /**\r\n * No instances.\r\n */\r\n private constructor() {\r\n }\r\n\r\n /**\r\n * Check if this tile has a certain index.\r\n * @param tileX the tile x index.\r\n * @param tileY the tile y index.\r\n * @param tileZ the tile Z index.\r\n * @return true if the tile has the index.\r\n */\r\n public static isTile(tile: TileIndex, tileX: int32, tileY: int32, tileZ: int32): boolean {\r\n return (tileX == tile.gridIndex.x && tileY == tile.gridIndex.y && tileZ == tile.gridIndex.z);\r\n }\r\n\r\n /**\r\n * Check if this tile is located after a certain index.\r\n * @param tileX the tile x index.\r\n * @param tileY the tile y index.\r\n * @param tileZ the tile Z index.\r\n * @return true if the tile is after the index.\r\n */\r\n public static isAfterTile(tile: TileIndex, tileX: int32, tileY: int32, tileZ: int32): boolean {\r\n if (tile.gridIndex.x < tileX) return false;\r\n if (tile.gridIndex.x > tileX) return true;\r\n if (tile.gridIndex.y < tileY) return false;\r\n if (tile.gridIndex.y > tileY) return true;\r\n if (tile.gridIndex.z < tileZ) return false;\r\n if (tile.gridIndex.z > tileZ) return true;\r\n return false;\r\n }\r\n\r\n /**\r\n * Check if this tile is located before a certain index.\r\n * @param tileX the tile x index.\r\n * @param tileY the tile y index.\r\n * @param tileZ the tile Z index.\r\n * @return true if the tile is before the index.\r\n */\r\n public static isBeforeTile(tile: TileIndex, tileX: int32, tileY: int32, tileZ: int32): boolean {\r\n if (tile.gridIndex.x < tileX) return true;\r\n if (tile.gridIndex.x > tileX) return false;\r\n if (tile.gridIndex.y < tileY) return true;\r\n if (tile.gridIndex.y > tileY) return false;\r\n if (tile.gridIndex.z < tileZ) return true;\r\n if (tile.gridIndex.z > tileZ) return false;\r\n return false;\r\n }\r\n\r\n /**\r\n * Write a record.\r\n * @param output the output stream.\r\n */\r\n public static write(tile: TileIndex, output: OutStream): void {\r\n let tileX: int32 = tile.gridIndex.x;\r\n let tileY: int32 = tile.gridIndex.y;\r\n let tileZ: int32 = tile.gridIndex.z;\r\n LittleEndian.writeStreamInt(output, tileX);\r\n LittleEndian.writeStreamInt(output, tileY);\r\n LittleEndian.writeStreamInt(output, tileZ);\r\n LittleEndian.writeStreamInt(output, tile.pointCount);\r\n }\r\n\r\n /**\r\n * Read a record.\r\n * @param tileGrid the grid.\r\n * @param stream the data stream from the file.\r\n * @param tileIndex the index of the tile.\r\n * @param pointIndex the index of the first point in the tile.\r\n * @return the requested record.\r\n */\r\n public static readNew(level: int32, tileGrid: Grid, stream: InStream, tileIndex: int32, pointIndex: ALong): TileIndex {\r\n /* Read the record */\r\n let tileX: int32 = LittleEndian.readStreamInt(stream);\r\n let tileY: int32 = LittleEndian.readStreamInt(stream);\r\n let tileZ: int32 = LittleEndian.readStreamInt(stream);\r\n let pointCount: int32 = LittleEndian.readStreamInt(stream);\r\n /* Create the record */\r\n return new TileIndex(level, tileIndex, new GridIndex(tileX, tileY, tileZ), pointIndex, pointCount);\r\n }\r\n\r\n /**\r\n * Read a record.\r\n * @param in the input stream.\r\n * @param tileIndex the index of the tile.\r\n * @param pointIndex the index of the first point in the tile.\r\n */\r\n public static read(tile: TileIndex, level: int32, blockIndex: int32, stream: InStream, tileIndex: int32, pointIndex: ALong): void {\r\n tile.level = level;\r\n tile.index = tileIndex;\r\n tile.gridIndex.x = LittleEndian.readStreamInt(stream);\r\n tile.gridIndex.y = LittleEndian.readStreamInt(stream);\r\n tile.gridIndex.z = LittleEndian.readStreamInt(stream);\r\n tile.pointCount = LittleEndian.readStreamInt(stream);\r\n tile.pointIndex = pointIndex;\r\n }\r\n\r\n /**\r\n * Get the squared distance to a grid cell.\r\n * @param reference the reference point.\r\n * @return the squared distance.\r\n */\r\n public static distanceSq(tile: TileIndex, reference: GridIndex): int32 {\r\n let dx: int32 = (tile.gridIndex.x - reference.x);\r\n let dy: int32 = (tile.gridIndex.y - reference.y);\r\n let dz: int32 = (tile.gridIndex.z - reference.z);\r\n return (dx * dx) + (dy * dy) + (dz * dz);\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 index the index at the current level.\r\n * @return the next-level index.\r\n */\r\n public static getNextLevelIndex(index: GridIndex): GridIndex {\r\n let nextX: int32 = TileRecord.getNextLevelIndex1(index.x);\r\n let nextY: int32 = TileRecord.getNextLevelIndex1(index.y);\r\n let nextZ: int32 = TileRecord.getNextLevelIndex1(index.z);\r\n return new GridIndex(nextX, nextY, nextZ);\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"TileRecord.js","sourceRoot":"","sources":["../../../../../src/pointcloud/format/opc/TileRecord.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAKnE,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAi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,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED;;;;OAIG;IACK,MAAM,CAAC,kBAAkB,CAAC,KAAY;QAC1C,IAAI,KAAK,GAAG,CAAC;YAAE,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QACnD,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACpC,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,iBAAiB,CAAC,KAAgB;QAC5C,IAAI,KAAK,GAAU,UAAU,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1D,IAAI,KAAK,GAAU,UAAU,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1D,IAAI,KAAK,GAAU,UAAU,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1D,OAAO,IAAI,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC9C,CAAC;;AAtID,yCAAyC;AAClB,sBAAW,GAAU,EAAE,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.format.opc;\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 { AList } from \"../../../system/collection/AList\";\nimport { InStream } from \"../../../system/io/InStream\";\nimport { OutStream } from \"../../../system/io/OutStream\";\nimport { ALong } from \"../../../system/runtime/ALong\";\nimport { Numbers } from \"../../../system/runtime/Numbers\";\nimport { ContentLoader } from \"../../../system/storage/ContentLoader\";\nimport { Grid } from \"../../model/Grid\";\nimport { GridIndex } from \"../../model/GridIndex\";\nimport { TileIndex } from \"../../model/TileIndex\";\n\n/**\n * Class TileRecord defines a tile index record.\n *\n * @version 1.0 January 2014\n */\n/** @internal */\nexport class TileRecord {\n /** The size of the record in the file */\n public static readonly RECORD_SIZE: int32 = 16;\n\n /**\n * No instances.\n */\n private constructor() {\n }\n\n /**\n * Check if this tile has a certain index.\n * @param tileX the tile x index.\n * @param tileY the tile y index.\n * @param tileZ the tile Z index.\n * @return true if the tile has the index.\n */\n public static isTile(tile: TileIndex, tileX: int32, tileY: int32, tileZ: int32): boolean {\n return (tileX == tile.gridIndex.x && tileY == tile.gridIndex.y && tileZ == tile.gridIndex.z);\n }\n\n /**\n * Check if this tile is located after a certain index.\n * @param tileX the tile x index.\n * @param tileY the tile y index.\n * @param tileZ the tile Z index.\n * @return true if the tile is after the index.\n */\n public static isAfterTile(tile: TileIndex, tileX: int32, tileY: int32, tileZ: int32): boolean {\n if (tile.gridIndex.x < tileX) return false;\n if (tile.gridIndex.x > tileX) return true;\n if (tile.gridIndex.y < tileY) return false;\n if (tile.gridIndex.y > tileY) return true;\n if (tile.gridIndex.z < tileZ) return false;\n if (tile.gridIndex.z > tileZ) return true;\n return false;\n }\n\n /**\n * Check if this tile is located before a certain index.\n * @param tileX the tile x index.\n * @param tileY the tile y index.\n * @param tileZ the tile Z index.\n * @return true if the tile is before the index.\n */\n public static isBeforeTile(tile: TileIndex, tileX: int32, tileY: int32, tileZ: int32): boolean {\n if (tile.gridIndex.x < tileX) return true;\n if (tile.gridIndex.x > tileX) return false;\n if (tile.gridIndex.y < tileY) return true;\n if (tile.gridIndex.y > tileY) return false;\n if (tile.gridIndex.z < tileZ) return true;\n if (tile.gridIndex.z > tileZ) return false;\n return false;\n }\n\n /**\n * Write a record.\n * @param output the output stream.\n */\n public static write(tile: TileIndex, output: OutStream): void {\n let tileX: int32 = tile.gridIndex.x;\n let tileY: int32 = tile.gridIndex.y;\n let tileZ: int32 = tile.gridIndex.z;\n LittleEndian.writeStreamInt(output, tileX);\n LittleEndian.writeStreamInt(output, tileY);\n LittleEndian.writeStreamInt(output, tileZ);\n LittleEndian.writeStreamInt(output, tile.pointCount);\n }\n\n /**\n * Read a record.\n * @param tileGrid the grid.\n * @param stream the data stream from the file.\n * @param tileIndex the index of the tile.\n * @param pointIndex the index of the first point in the tile.\n * @return the requested record.\n */\n public static readNew(level: int32, tileGrid: Grid, stream: InStream, tileIndex: int32, pointIndex: ALong): TileIndex {\n /* Read the record */\n let tileX: int32 = LittleEndian.readStreamInt(stream);\n let tileY: int32 = LittleEndian.readStreamInt(stream);\n let tileZ: int32 = LittleEndian.readStreamInt(stream);\n let pointCount: int32 = LittleEndian.readStreamInt(stream);\n /* Create the record */\n return new TileIndex(level, tileIndex, new GridIndex(tileX, tileY, tileZ), pointIndex, pointCount);\n }\n\n /**\n * Read a record.\n * @param in the input stream.\n * @param tileIndex the index of the tile.\n * @param pointIndex the index of the first point in the tile.\n */\n public static read(tile: TileIndex, level: int32, blockIndex: int32, stream: InStream, tileIndex: int32, pointIndex: ALong): void {\n tile.level = level;\n tile.index = tileIndex;\n tile.gridIndex.x = LittleEndian.readStreamInt(stream);\n tile.gridIndex.y = LittleEndian.readStreamInt(stream);\n tile.gridIndex.z = LittleEndian.readStreamInt(stream);\n tile.pointCount = LittleEndian.readStreamInt(stream);\n tile.pointIndex = pointIndex;\n }\n\n /**\n * Get the squared distance to a grid cell.\n * @param reference the reference point.\n * @return the squared distance.\n */\n public static distanceSq(tile: TileIndex, reference: GridIndex): int32 {\n let dx: int32 = (tile.gridIndex.x - reference.x);\n let dy: int32 = (tile.gridIndex.y - reference.y);\n let dz: int32 = (tile.gridIndex.z - reference.z);\n return (dx * dx) + (dy * dy) + (dz * dz);\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 index the index at the current level.\n * @return the next-level index.\n */\n public static getNextLevelIndex(index: GridIndex): GridIndex {\n let nextX: int32 = TileRecord.getNextLevelIndex1(index.x);\n let nextY: int32 = TileRecord.getNextLevelIndex1(index.y);\n let nextZ: int32 = TileRecord.getNextLevelIndex1(index.z);\n return new GridIndex(nextX, nextY, nextZ);\n }\n}\n"]}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module OrbitGT
|
|
3
|
-
*/
|
|
4
|
-
declare type int32 = number;
|
|
5
|
-
/**
|
|
6
|
-
* Class AttributeTypes defines the possible types of pointcloud attributes.
|
|
7
|
-
*/
|
|
8
|
-
/** @internal */
|
|
9
|
-
export declare class AttributeTypes {
|
|
10
|
-
/** The 1-bit boolean type */
|
|
11
|
-
static readonly TYPE_BOOLEAN: int32;
|
|
12
|
-
/** The 1-byte integer type */
|
|
13
|
-
static readonly TYPE_INT1: int32;
|
|
14
|
-
/** The 2-byte integer type */
|
|
15
|
-
static readonly TYPE_INT2: int32;
|
|
16
|
-
/** The 4-byte integer type */
|
|
17
|
-
static readonly TYPE_INT4: int32;
|
|
18
|
-
/** The 8-byte integer type */
|
|
19
|
-
static readonly TYPE_INT8: int32;
|
|
20
|
-
/** The 4-byte float type */
|
|
21
|
-
static readonly TYPE_FLOAT4: int32;
|
|
22
|
-
/** The 8-byte float type */
|
|
23
|
-
static readonly TYPE_FLOAT8: int32;
|
|
24
|
-
/** The 3-byte color type */
|
|
25
|
-
static readonly TYPE_COLOR: int32;
|
|
26
|
-
/**
|
|
27
|
-
* No instances.
|
|
28
|
-
*/
|
|
29
|
-
private constructor();
|
|
30
|
-
/**
|
|
31
|
-
* Get the name of a type.
|
|
32
|
-
* @param type the type of attributes.
|
|
33
|
-
* @return the name.
|
|
34
|
-
*/
|
|
35
|
-
static getTypeName(type: int32): string;
|
|
36
|
-
}
|
|
37
|
-
export {};
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module OrbitGT
|
|
3
|
+
*/
|
|
4
|
+
declare type int32 = number;
|
|
5
|
+
/**
|
|
6
|
+
* Class AttributeTypes defines the possible types of pointcloud attributes.
|
|
7
|
+
*/
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare class AttributeTypes {
|
|
10
|
+
/** The 1-bit boolean type */
|
|
11
|
+
static readonly TYPE_BOOLEAN: int32;
|
|
12
|
+
/** The 1-byte integer type */
|
|
13
|
+
static readonly TYPE_INT1: int32;
|
|
14
|
+
/** The 2-byte integer type */
|
|
15
|
+
static readonly TYPE_INT2: int32;
|
|
16
|
+
/** The 4-byte integer type */
|
|
17
|
+
static readonly TYPE_INT4: int32;
|
|
18
|
+
/** The 8-byte integer type */
|
|
19
|
+
static readonly TYPE_INT8: int32;
|
|
20
|
+
/** The 4-byte float type */
|
|
21
|
+
static readonly TYPE_FLOAT4: int32;
|
|
22
|
+
/** The 8-byte float type */
|
|
23
|
+
static readonly TYPE_FLOAT8: int32;
|
|
24
|
+
/** The 3-byte color type */
|
|
25
|
+
static readonly TYPE_COLOR: int32;
|
|
26
|
+
/**
|
|
27
|
+
* No instances.
|
|
28
|
+
*/
|
|
29
|
+
private constructor();
|
|
30
|
+
/**
|
|
31
|
+
* Get the name of a type.
|
|
32
|
+
* @param type the type of attributes.
|
|
33
|
+
* @return the name.
|
|
34
|
+
*/
|
|
35
|
+
static getTypeName(type: int32): string;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
38
38
|
//# sourceMappingURL=AttributeTypes.d.ts.map
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
/** @packageDocumentation
|
|
6
|
-
* @module OrbitGT
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Class AttributeTypes defines the possible types of pointcloud attributes.
|
|
10
|
-
*/
|
|
11
|
-
/** @internal */
|
|
12
|
-
export class AttributeTypes {
|
|
13
|
-
/**
|
|
14
|
-
* No instances.
|
|
15
|
-
*/
|
|
16
|
-
constructor() {
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Get the name of a type.
|
|
20
|
-
* @param type the type of attributes.
|
|
21
|
-
* @return the name.
|
|
22
|
-
*/
|
|
23
|
-
static getTypeName(type) {
|
|
24
|
-
if (type <= 0)
|
|
25
|
-
return "none";
|
|
26
|
-
if (type == AttributeTypes.TYPE_BOOLEAN)
|
|
27
|
-
return "boolean";
|
|
28
|
-
if (type == AttributeTypes.TYPE_INT1)
|
|
29
|
-
return "int1";
|
|
30
|
-
if (type == AttributeTypes.TYPE_INT2)
|
|
31
|
-
return "int2";
|
|
32
|
-
if (type == AttributeTypes.TYPE_INT4)
|
|
33
|
-
return "int4";
|
|
34
|
-
if (type == AttributeTypes.TYPE_INT8)
|
|
35
|
-
return "int8";
|
|
36
|
-
if (type == AttributeTypes.TYPE_FLOAT4)
|
|
37
|
-
return "float4";
|
|
38
|
-
if (type == AttributeTypes.TYPE_FLOAT8)
|
|
39
|
-
return "float8";
|
|
40
|
-
if (type == AttributeTypes.TYPE_COLOR)
|
|
41
|
-
return "color";
|
|
42
|
-
return "" + type;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
/** The 1-bit boolean type */
|
|
46
|
-
AttributeTypes.TYPE_BOOLEAN = 1;
|
|
47
|
-
/** The 1-byte integer type */
|
|
48
|
-
AttributeTypes.TYPE_INT1 = 2;
|
|
49
|
-
/** The 2-byte integer type */
|
|
50
|
-
AttributeTypes.TYPE_INT2 = 3;
|
|
51
|
-
/** The 4-byte integer type */
|
|
52
|
-
AttributeTypes.TYPE_INT4 = 4;
|
|
53
|
-
/** The 8-byte integer type */
|
|
54
|
-
AttributeTypes.TYPE_INT8 = 5;
|
|
55
|
-
/** The 4-byte float type */
|
|
56
|
-
AttributeTypes.TYPE_FLOAT4 = 6;
|
|
57
|
-
/** The 8-byte float type */
|
|
58
|
-
AttributeTypes.TYPE_FLOAT8 = 7;
|
|
59
|
-
/** The 3-byte color type */
|
|
60
|
-
AttributeTypes.TYPE_COLOR = 8;
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @packageDocumentation
|
|
6
|
+
* @module OrbitGT
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Class AttributeTypes defines the possible types of pointcloud attributes.
|
|
10
|
+
*/
|
|
11
|
+
/** @internal */
|
|
12
|
+
export class AttributeTypes {
|
|
13
|
+
/**
|
|
14
|
+
* No instances.
|
|
15
|
+
*/
|
|
16
|
+
constructor() {
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get the name of a type.
|
|
20
|
+
* @param type the type of attributes.
|
|
21
|
+
* @return the name.
|
|
22
|
+
*/
|
|
23
|
+
static getTypeName(type) {
|
|
24
|
+
if (type <= 0)
|
|
25
|
+
return "none";
|
|
26
|
+
if (type == AttributeTypes.TYPE_BOOLEAN)
|
|
27
|
+
return "boolean";
|
|
28
|
+
if (type == AttributeTypes.TYPE_INT1)
|
|
29
|
+
return "int1";
|
|
30
|
+
if (type == AttributeTypes.TYPE_INT2)
|
|
31
|
+
return "int2";
|
|
32
|
+
if (type == AttributeTypes.TYPE_INT4)
|
|
33
|
+
return "int4";
|
|
34
|
+
if (type == AttributeTypes.TYPE_INT8)
|
|
35
|
+
return "int8";
|
|
36
|
+
if (type == AttributeTypes.TYPE_FLOAT4)
|
|
37
|
+
return "float4";
|
|
38
|
+
if (type == AttributeTypes.TYPE_FLOAT8)
|
|
39
|
+
return "float8";
|
|
40
|
+
if (type == AttributeTypes.TYPE_COLOR)
|
|
41
|
+
return "color";
|
|
42
|
+
return "" + type;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
/** The 1-bit boolean type */
|
|
46
|
+
AttributeTypes.TYPE_BOOLEAN = 1;
|
|
47
|
+
/** The 1-byte integer type */
|
|
48
|
+
AttributeTypes.TYPE_INT1 = 2;
|
|
49
|
+
/** The 2-byte integer type */
|
|
50
|
+
AttributeTypes.TYPE_INT2 = 3;
|
|
51
|
+
/** The 4-byte integer type */
|
|
52
|
+
AttributeTypes.TYPE_INT4 = 4;
|
|
53
|
+
/** The 8-byte integer type */
|
|
54
|
+
AttributeTypes.TYPE_INT8 = 5;
|
|
55
|
+
/** The 4-byte float type */
|
|
56
|
+
AttributeTypes.TYPE_FLOAT4 = 6;
|
|
57
|
+
/** The 8-byte float type */
|
|
58
|
+
AttributeTypes.TYPE_FLOAT8 = 7;
|
|
59
|
+
/** The 3-byte color type */
|
|
60
|
+
AttributeTypes.TYPE_COLOR = 8;
|
|
61
61
|
//# sourceMappingURL=AttributeTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttributeTypes.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/AttributeTypes.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH;;GAEG;AACH,gBAAgB;AAChB,MAAM,OAAO,cAAc;IAkB1B;;OAEG;IACH;IACA,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,WAAW,CAAC,IAAW;QACpC,IAAI,IAAI,IAAI,CAAC;YAAE,OAAO,MAAM,CAAC;QAC7B,IAAI,IAAI,IAAI,cAAc,CAAC,YAAY;YAAE,OAAO,SAAS,CAAC;QAC1D,IAAI,IAAI,IAAI,cAAc,CAAC,SAAS;YAAE,OAAO,MAAM,CAAC;QACpD,IAAI,IAAI,IAAI,cAAc,CAAC,SAAS;YAAE,OAAO,MAAM,CAAC;QACpD,IAAI,IAAI,IAAI,cAAc,CAAC,SAAS;YAAE,OAAO,MAAM,CAAC;QACpD,IAAI,IAAI,IAAI,cAAc,CAAC,SAAS;YAAE,OAAO,MAAM,CAAC;QACpD,IAAI,IAAI,IAAI,cAAc,CAAC,WAAW;YAAE,OAAO,QAAQ,CAAC;QACxD,IAAI,IAAI,IAAI,cAAc,CAAC,WAAW;YAAE,OAAO,QAAQ,CAAC;QACxD,IAAI,IAAI,IAAI,cAAc,CAAC,UAAU;YAAE,OAAO,OAAO,CAAC;QACtD,OAAO,EAAE,GAAG,IAAI,CAAC;IAClB,CAAC;;AAvCD,6BAA6B;AACN,2BAAY,GAAU,CAAC,CAAC;AAC/C,8BAA8B;AACP,wBAAS,GAAU,CAAC,CAAC;AAC5C,8BAA8B;AACP,wBAAS,GAAU,CAAC,CAAC;AAC5C,8BAA8B;AACP,wBAAS,GAAU,CAAC,CAAC;AAC5C,8BAA8B;AACP,wBAAS,GAAU,CAAC,CAAC;AAC5C,4BAA4B;AACL,0BAAW,GAAU,CAAC,CAAC;AAC9C,4BAA4B;AACL,0BAAW,GAAU,CAAC,CAAC;AAC9C,4BAA4B;AACL,yBAAU,GAAU,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"AttributeTypes.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/AttributeTypes.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH;;GAEG;AACH,gBAAgB;AAChB,MAAM,OAAO,cAAc;IAkB1B;;OAEG;IACH;IACA,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,WAAW,CAAC,IAAW;QACpC,IAAI,IAAI,IAAI,CAAC;YAAE,OAAO,MAAM,CAAC;QAC7B,IAAI,IAAI,IAAI,cAAc,CAAC,YAAY;YAAE,OAAO,SAAS,CAAC;QAC1D,IAAI,IAAI,IAAI,cAAc,CAAC,SAAS;YAAE,OAAO,MAAM,CAAC;QACpD,IAAI,IAAI,IAAI,cAAc,CAAC,SAAS;YAAE,OAAO,MAAM,CAAC;QACpD,IAAI,IAAI,IAAI,cAAc,CAAC,SAAS;YAAE,OAAO,MAAM,CAAC;QACpD,IAAI,IAAI,IAAI,cAAc,CAAC,SAAS;YAAE,OAAO,MAAM,CAAC;QACpD,IAAI,IAAI,IAAI,cAAc,CAAC,WAAW;YAAE,OAAO,QAAQ,CAAC;QACxD,IAAI,IAAI,IAAI,cAAc,CAAC,WAAW;YAAE,OAAO,QAAQ,CAAC;QACxD,IAAI,IAAI,IAAI,cAAc,CAAC,UAAU;YAAE,OAAO,OAAO,CAAC;QACtD,OAAO,EAAE,GAAG,IAAI,CAAC;IAClB,CAAC;;AAvCD,6BAA6B;AACN,2BAAY,GAAU,CAAC,CAAC;AAC/C,8BAA8B;AACP,wBAAS,GAAU,CAAC,CAAC;AAC5C,8BAA8B;AACP,wBAAS,GAAU,CAAC,CAAC;AAC5C,8BAA8B;AACP,wBAAS,GAAU,CAAC,CAAC;AAC5C,8BAA8B;AACP,wBAAS,GAAU,CAAC,CAAC;AAC5C,4BAA4B;AACL,0BAAW,GAAU,CAAC,CAAC;AAC9C,4BAA4B;AACL,0BAAW,GAAU,CAAC,CAAC;AAC9C,4BAA4B;AACL,yBAAU,GAAU,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\n/**\n * Class AttributeTypes defines the possible types of pointcloud attributes.\n */\n/** @internal */\nexport class AttributeTypes {\n\t/** The 1-bit boolean type */\n\tpublic static readonly TYPE_BOOLEAN: int32 = 1;\n\t/** The 1-byte integer type */\n\tpublic static readonly TYPE_INT1: int32 = 2;\n\t/** The 2-byte integer type */\n\tpublic static readonly TYPE_INT2: int32 = 3;\n\t/** The 4-byte integer type */\n\tpublic static readonly TYPE_INT4: int32 = 4;\n\t/** The 8-byte integer type */\n\tpublic static readonly TYPE_INT8: int32 = 5;\n\t/** The 4-byte float type */\n\tpublic static readonly TYPE_FLOAT4: int32 = 6;\n\t/** The 8-byte float type */\n\tpublic static readonly TYPE_FLOAT8: int32 = 7;\n\t/** The 3-byte color type */\n\tpublic static readonly TYPE_COLOR: int32 = 8;\n\n\t/**\n\t * No instances.\n\t */\n\tprivate constructor() {\n\t}\n\n\t/**\n\t * Get the name of a type.\n\t * @param type the type of attributes.\n\t * @return the name.\n\t */\n\tpublic static getTypeName(type: int32): string {\n\t\tif (type <= 0) return \"none\";\n\t\tif (type == AttributeTypes.TYPE_BOOLEAN) return \"boolean\";\n\t\tif (type == AttributeTypes.TYPE_INT1) return \"int1\";\n\t\tif (type == AttributeTypes.TYPE_INT2) return \"int2\";\n\t\tif (type == AttributeTypes.TYPE_INT4) return \"int4\";\n\t\tif (type == AttributeTypes.TYPE_INT8) return \"int8\";\n\t\tif (type == AttributeTypes.TYPE_FLOAT4) return \"float4\";\n\t\tif (type == AttributeTypes.TYPE_FLOAT8) return \"float8\";\n\t\tif (type == AttributeTypes.TYPE_COLOR) return \"color\";\n\t\treturn \"\" + type;\n\t}\n}\n"]}
|