@itwin/core-orbitgt 5.0.0-dev.7 → 5.0.0-dev.70
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/CHANGELOG.md +31 -1
- package/lib/cjs/core-orbitgt.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/AttributeMask.js +4 -0
- package/lib/cjs/pointcloud/format/opc/AttributeMask.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/AttributeReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/BlockRecord.js +2 -2
- package/lib/cjs/pointcloud/format/opc/BlockRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/ContainerFile.js +10 -2
- package/lib/cjs/pointcloud/format/opc/ContainerFile.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/ContainerFilePart.js +8 -0
- package/lib/cjs/pointcloud/format/opc/ContainerFilePart.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.js +12 -0
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js +6 -0
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js +21 -0
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileAccess.js +6 -0
- package/lib/cjs/pointcloud/format/opc/FileAccess.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileReader.js +16 -2
- package/lib/cjs/pointcloud/format/opc/FileReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileRecord.js +14 -0
- package/lib/cjs/pointcloud/format/opc/FileRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/GeometryReader.js +14 -6
- package/lib/cjs/pointcloud/format/opc/GeometryReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/GeometryRecord.js +4 -0
- package/lib/cjs/pointcloud/format/opc/GeometryRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/OPCReader.js +6 -0
- package/lib/cjs/pointcloud/format/opc/OPCReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/PointReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.js +4 -0
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/TileRecord.js +2 -2
- package/lib/cjs/pointcloud/format/opc/TileRecord.js.map +1 -1
- package/lib/cjs/pointcloud/model/AttributeTypes.js +16 -16
- package/lib/cjs/pointcloud/model/AttributeTypes.js.map +1 -1
- package/lib/cjs/pointcloud/model/AttributeValue.js +14 -4
- package/lib/cjs/pointcloud/model/AttributeValue.js.map +1 -1
- package/lib/cjs/pointcloud/model/BlockIndex.js +18 -0
- package/lib/cjs/pointcloud/model/BlockIndex.js.map +1 -1
- package/lib/cjs/pointcloud/model/CloudPoint.js +22 -2
- package/lib/cjs/pointcloud/model/CloudPoint.js.map +1 -1
- package/lib/cjs/pointcloud/model/Grid.js +4 -0
- package/lib/cjs/pointcloud/model/Grid.js.map +1 -1
- package/lib/cjs/pointcloud/model/GridIndex.js +6 -0
- package/lib/cjs/pointcloud/model/GridIndex.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointAttribute.js +14 -0
- package/lib/cjs/pointcloud/model/PointAttribute.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointCloudReader.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointData.js +4 -0
- package/lib/cjs/pointcloud/model/PointData.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointDataRaw.js +8 -2
- package/lib/cjs/pointcloud/model/PointDataRaw.js.map +1 -1
- package/lib/cjs/pointcloud/model/ReadRequest.js +28 -6
- package/lib/cjs/pointcloud/model/ReadRequest.js.map +1 -1
- package/lib/cjs/pointcloud/model/StandardAttributes.js +21 -21
- package/lib/cjs/pointcloud/model/StandardAttributes.js.map +1 -1
- package/lib/cjs/pointcloud/model/TileIndex.js +16 -0
- package/lib/cjs/pointcloud/model/TileIndex.js.map +1 -1
- package/lib/cjs/pointcloud/render/AViewRequest.js.map +1 -1
- package/lib/cjs/pointcloud/render/Block.js +6 -0
- package/lib/cjs/pointcloud/render/Block.js.map +1 -1
- package/lib/cjs/pointcloud/render/DataManager.js +36 -6
- package/lib/cjs/pointcloud/render/DataManager.js.map +1 -1
- package/lib/cjs/pointcloud/render/FrameData.js +8 -0
- package/lib/cjs/pointcloud/render/FrameData.js.map +1 -1
- package/lib/cjs/pointcloud/render/Level.js +12 -0
- package/lib/cjs/pointcloud/render/Level.js.map +1 -1
- package/lib/cjs/pointcloud/render/TileLoadSorter.js +9 -4
- package/lib/cjs/pointcloud/render/TileLoadSorter.js.map +1 -1
- package/lib/cjs/pointcloud/render/ViewTree.js +12 -4
- package/lib/cjs/pointcloud/render/ViewTree.js.map +1 -1
- package/lib/cjs/spatial/crs/CRSEngine.js.map +1 -1
- package/lib/cjs/spatial/crs/CRSManager.js +2 -2
- package/lib/cjs/spatial/crs/CRSManager.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Axis.js +12 -0
- package/lib/cjs/spatial/ecrs/Axis.js.map +1 -1
- package/lib/cjs/spatial/ecrs/CRS.js +68 -34
- package/lib/cjs/spatial/ecrs/CRS.js.map +1 -1
- package/lib/cjs/spatial/ecrs/CoordinateSystem.js +20 -2
- package/lib/cjs/spatial/ecrs/CoordinateSystem.js.map +1 -1
- package/lib/cjs/spatial/ecrs/DataFileUnit.js +1 -1
- package/lib/cjs/spatial/ecrs/DataFileUnit.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Datum.js +16 -4
- package/lib/cjs/spatial/ecrs/Datum.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Ellipsoid.js +18 -0
- package/lib/cjs/spatial/ecrs/Ellipsoid.js.map +1 -1
- package/lib/cjs/spatial/ecrs/OnlineEngine.js +2 -0
- package/lib/cjs/spatial/ecrs/OnlineEngine.js.map +1 -1
- package/lib/cjs/spatial/ecrs/OnlineRegistry.js +6 -2
- package/lib/cjs/spatial/ecrs/OnlineRegistry.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Operation.js +28 -6
- package/lib/cjs/spatial/ecrs/Operation.js.map +1 -1
- package/lib/cjs/spatial/ecrs/OperationMethod.js +6 -0
- package/lib/cjs/spatial/ecrs/OperationMethod.js.map +1 -1
- package/lib/cjs/spatial/ecrs/ParameterValue.js +6 -0
- package/lib/cjs/spatial/ecrs/ParameterValue.js.map +1 -1
- package/lib/cjs/spatial/ecrs/ParameterValueList.js +2 -0
- package/lib/cjs/spatial/ecrs/ParameterValueList.js.map +1 -1
- package/lib/cjs/spatial/ecrs/PrimeMeridian.js +8 -0
- package/lib/cjs/spatial/ecrs/PrimeMeridian.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Registry.js +17 -17
- package/lib/cjs/spatial/ecrs/Registry.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Transform.js +11 -11
- package/lib/cjs/spatial/ecrs/Transform.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Unit.js +40 -24
- package/lib/cjs/spatial/ecrs/Unit.js.map +1 -1
- package/lib/cjs/spatial/ecrs/VerticalModel.js.map +1 -1
- package/lib/cjs/spatial/ecrs/WellKnownText.js +8 -8
- package/lib/cjs/spatial/ecrs/WellKnownText.js.map +1 -1
- package/lib/cjs/spatial/ecrs/WellKnownTextNode.js +4 -0
- package/lib/cjs/spatial/ecrs/WellKnownTextNode.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js +36 -2
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js +23 -2
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js +4 -2
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js +12 -2
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js +29 -6
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js +14 -4
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js +38 -4
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js +24 -4
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js +28 -4
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/transformation/PositionVector.js +12 -2
- package/lib/cjs/spatial/ecrs/transformation/PositionVector.js.map +1 -1
- package/lib/cjs/spatial/geom/Bounds.js +3 -0
- package/lib/cjs/spatial/geom/Bounds.js.map +1 -1
- package/lib/cjs/spatial/geom/Coordinate.js +3 -0
- package/lib/cjs/spatial/geom/Coordinate.js.map +1 -1
- package/lib/cjs/spatial/geom/Line.js +4 -0
- package/lib/cjs/spatial/geom/Line.js.map +1 -1
- package/lib/cjs/spatial/geom/Transform.js +2 -0
- package/lib/cjs/spatial/geom/Transform.js.map +1 -1
- package/lib/cjs/system/buffer/ABuffer.js +4 -0
- package/lib/cjs/system/buffer/ABuffer.js.map +1 -1
- package/lib/cjs/system/buffer/Float32Buffer.js +8 -2
- package/lib/cjs/system/buffer/Float32Buffer.js.map +1 -1
- package/lib/cjs/system/buffer/LittleEndian.js.map +1 -1
- package/lib/cjs/system/buffer/Uint16Buffer.js +8 -2
- package/lib/cjs/system/buffer/Uint16Buffer.js.map +1 -1
- package/lib/cjs/system/buffer/Uint8Buffer.js +8 -2
- package/lib/cjs/system/buffer/Uint8Buffer.js.map +1 -1
- package/lib/cjs/system/collection/AList.js +1 -0
- package/lib/cjs/system/collection/AList.js.map +1 -1
- package/lib/cjs/system/collection/IntMap.js +1 -0
- package/lib/cjs/system/collection/IntMap.js.map +1 -1
- package/lib/cjs/system/collection/StringMap.js +1 -0
- package/lib/cjs/system/collection/StringMap.js.map +1 -1
- package/lib/cjs/system/io/ABufferInStream.js +5 -0
- package/lib/cjs/system/io/ABufferInStream.js.map +1 -1
- package/lib/cjs/system/io/InStream.js.map +1 -1
- package/lib/cjs/system/io/OutStream.js.map +1 -1
- package/lib/cjs/system/runtime/ALong.js +30 -26
- package/lib/cjs/system/runtime/ALong.js.map +1 -1
- package/lib/cjs/system/runtime/ASystem.js +1 -1
- package/lib/cjs/system/runtime/ASystem.js.map +1 -1
- package/lib/cjs/system/runtime/Downloader.js +2 -2
- package/lib/cjs/system/runtime/Downloader.js.map +1 -1
- package/lib/cjs/system/runtime/DownloaderNode.js.map +1 -1
- package/lib/cjs/system/runtime/DownloaderXhr.js.map +1 -1
- package/lib/cjs/system/runtime/Message.js +2 -2
- package/lib/cjs/system/runtime/Message.js.map +1 -1
- package/lib/cjs/system/runtime/Numbers.js +6 -6
- package/lib/cjs/system/runtime/Numbers.js.map +1 -1
- package/lib/cjs/system/runtime/Strings.js +14 -14
- package/lib/cjs/system/runtime/Strings.js.map +1 -1
- package/lib/cjs/system/runtime/iComparator.js.map +1 -1
- package/lib/cjs/system/storage/CacheList.js +8 -0
- package/lib/cjs/system/storage/CacheList.js.map +1 -1
- package/lib/cjs/system/storage/CachedItem.js +6 -0
- package/lib/cjs/system/storage/CachedItem.js.map +1 -1
- package/lib/cjs/system/storage/ContentLoader.js +14 -2
- package/lib/cjs/system/storage/ContentLoader.js.map +1 -1
- package/lib/cjs/system/storage/FileContent.js +4 -0
- package/lib/cjs/system/storage/FileContent.js.map +1 -1
- package/lib/cjs/system/storage/FileRange.js +4 -0
- package/lib/cjs/system/storage/FileRange.js.map +1 -1
- package/lib/cjs/system/storage/FileStorage.js.map +1 -1
- package/lib/cjs/system/storage/NodeFS.js.map +1 -1
- package/lib/cjs/system/storage/PageCachedFile.js +8 -0
- package/lib/cjs/system/storage/PageCachedFile.js.map +1 -1
- package/lib/cjs/system/storage/UrlFS.js +6 -0
- package/lib/cjs/system/storage/UrlFS.js.map +1 -1
- package/lib/esm/core-orbitgt.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/AttributeMask.js +4 -0
- package/lib/esm/pointcloud/format/opc/AttributeMask.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/AttributeReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/BlockRecord.js +2 -2
- package/lib/esm/pointcloud/format/opc/BlockRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/ContainerFile.js +10 -2
- package/lib/esm/pointcloud/format/opc/ContainerFile.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/ContainerFilePart.js +8 -0
- package/lib/esm/pointcloud/format/opc/ContainerFilePart.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/DirectoryReader.js +12 -0
- package/lib/esm/pointcloud/format/opc/DirectoryReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.js +6 -0
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js +21 -0
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileAccess.js +6 -0
- package/lib/esm/pointcloud/format/opc/FileAccess.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileReader.js +16 -2
- package/lib/esm/pointcloud/format/opc/FileReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileRecord.js +14 -0
- package/lib/esm/pointcloud/format/opc/FileRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/GeometryReader.js +14 -6
- package/lib/esm/pointcloud/format/opc/GeometryReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/GeometryRecord.js +4 -0
- package/lib/esm/pointcloud/format/opc/GeometryRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/OPCReader.js +6 -0
- package/lib/esm/pointcloud/format/opc/OPCReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/PointReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.js +4 -0
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/TileRecord.js +2 -2
- package/lib/esm/pointcloud/format/opc/TileRecord.js.map +1 -1
- package/lib/esm/pointcloud/model/AttributeTypes.js +16 -16
- package/lib/esm/pointcloud/model/AttributeTypes.js.map +1 -1
- package/lib/esm/pointcloud/model/AttributeValue.js +14 -4
- package/lib/esm/pointcloud/model/AttributeValue.js.map +1 -1
- package/lib/esm/pointcloud/model/BlockIndex.js +18 -0
- package/lib/esm/pointcloud/model/BlockIndex.js.map +1 -1
- package/lib/esm/pointcloud/model/CloudPoint.js +22 -2
- package/lib/esm/pointcloud/model/CloudPoint.js.map +1 -1
- package/lib/esm/pointcloud/model/Grid.js +4 -0
- package/lib/esm/pointcloud/model/Grid.js.map +1 -1
- package/lib/esm/pointcloud/model/GridIndex.js +6 -0
- package/lib/esm/pointcloud/model/GridIndex.js.map +1 -1
- package/lib/esm/pointcloud/model/PointAttribute.js +14 -0
- package/lib/esm/pointcloud/model/PointAttribute.js.map +1 -1
- package/lib/esm/pointcloud/model/PointCloudReader.js.map +1 -1
- package/lib/esm/pointcloud/model/PointData.js +4 -0
- package/lib/esm/pointcloud/model/PointData.js.map +1 -1
- package/lib/esm/pointcloud/model/PointDataRaw.js +8 -2
- package/lib/esm/pointcloud/model/PointDataRaw.js.map +1 -1
- package/lib/esm/pointcloud/model/ReadRequest.js +28 -6
- package/lib/esm/pointcloud/model/ReadRequest.js.map +1 -1
- package/lib/esm/pointcloud/model/StandardAttributes.js +21 -21
- package/lib/esm/pointcloud/model/StandardAttributes.js.map +1 -1
- package/lib/esm/pointcloud/model/TileIndex.js +16 -0
- package/lib/esm/pointcloud/model/TileIndex.js.map +1 -1
- package/lib/esm/pointcloud/render/AViewRequest.js.map +1 -1
- package/lib/esm/pointcloud/render/Block.js +6 -0
- package/lib/esm/pointcloud/render/Block.js.map +1 -1
- package/lib/esm/pointcloud/render/DataManager.js +36 -6
- package/lib/esm/pointcloud/render/DataManager.js.map +1 -1
- package/lib/esm/pointcloud/render/FrameData.js +8 -0
- package/lib/esm/pointcloud/render/FrameData.js.map +1 -1
- package/lib/esm/pointcloud/render/Level.js +12 -0
- package/lib/esm/pointcloud/render/Level.js.map +1 -1
- package/lib/esm/pointcloud/render/TileLoadSorter.js +9 -4
- package/lib/esm/pointcloud/render/TileLoadSorter.js.map +1 -1
- package/lib/esm/pointcloud/render/ViewTree.js +12 -4
- package/lib/esm/pointcloud/render/ViewTree.js.map +1 -1
- package/lib/esm/spatial/crs/CRSEngine.js.map +1 -1
- package/lib/esm/spatial/crs/CRSManager.js +2 -2
- package/lib/esm/spatial/crs/CRSManager.js.map +1 -1
- package/lib/esm/spatial/ecrs/Axis.js +12 -0
- package/lib/esm/spatial/ecrs/Axis.js.map +1 -1
- package/lib/esm/spatial/ecrs/CRS.js +68 -34
- package/lib/esm/spatial/ecrs/CRS.js.map +1 -1
- package/lib/esm/spatial/ecrs/CoordinateSystem.js +20 -2
- package/lib/esm/spatial/ecrs/CoordinateSystem.js.map +1 -1
- package/lib/esm/spatial/ecrs/DataFileUnit.js +1 -1
- package/lib/esm/spatial/ecrs/DataFileUnit.js.map +1 -1
- package/lib/esm/spatial/ecrs/Datum.js +16 -4
- package/lib/esm/spatial/ecrs/Datum.js.map +1 -1
- package/lib/esm/spatial/ecrs/Ellipsoid.js +18 -0
- package/lib/esm/spatial/ecrs/Ellipsoid.js.map +1 -1
- package/lib/esm/spatial/ecrs/OnlineEngine.js +2 -0
- package/lib/esm/spatial/ecrs/OnlineEngine.js.map +1 -1
- package/lib/esm/spatial/ecrs/OnlineRegistry.js +6 -2
- package/lib/esm/spatial/ecrs/OnlineRegistry.js.map +1 -1
- package/lib/esm/spatial/ecrs/Operation.js +28 -6
- package/lib/esm/spatial/ecrs/Operation.js.map +1 -1
- package/lib/esm/spatial/ecrs/OperationMethod.js +6 -0
- package/lib/esm/spatial/ecrs/OperationMethod.js.map +1 -1
- package/lib/esm/spatial/ecrs/ParameterValue.js +6 -0
- package/lib/esm/spatial/ecrs/ParameterValue.js.map +1 -1
- package/lib/esm/spatial/ecrs/ParameterValueList.js +2 -0
- package/lib/esm/spatial/ecrs/ParameterValueList.js.map +1 -1
- package/lib/esm/spatial/ecrs/PrimeMeridian.js +8 -0
- package/lib/esm/spatial/ecrs/PrimeMeridian.js.map +1 -1
- package/lib/esm/spatial/ecrs/Registry.js +17 -17
- package/lib/esm/spatial/ecrs/Registry.js.map +1 -1
- package/lib/esm/spatial/ecrs/Transform.js +11 -11
- package/lib/esm/spatial/ecrs/Transform.js.map +1 -1
- package/lib/esm/spatial/ecrs/Unit.js +40 -24
- package/lib/esm/spatial/ecrs/Unit.js.map +1 -1
- package/lib/esm/spatial/ecrs/VerticalModel.js.map +1 -1
- package/lib/esm/spatial/ecrs/WellKnownText.js +8 -8
- package/lib/esm/spatial/ecrs/WellKnownText.js.map +1 -1
- package/lib/esm/spatial/ecrs/WellKnownTextNode.js +4 -0
- package/lib/esm/spatial/ecrs/WellKnownTextNode.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js +36 -2
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js +23 -2
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js +4 -2
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js +12 -2
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js +29 -6
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.js +14 -4
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js +38 -4
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js +24 -4
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.js +28 -4
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/transformation/PositionVector.js +12 -2
- package/lib/esm/spatial/ecrs/transformation/PositionVector.js.map +1 -1
- package/lib/esm/spatial/geom/Bounds.js +3 -0
- package/lib/esm/spatial/geom/Bounds.js.map +1 -1
- package/lib/esm/spatial/geom/Coordinate.js +3 -0
- package/lib/esm/spatial/geom/Coordinate.js.map +1 -1
- package/lib/esm/spatial/geom/Line.js +4 -0
- package/lib/esm/spatial/geom/Line.js.map +1 -1
- package/lib/esm/spatial/geom/Transform.js +2 -0
- package/lib/esm/spatial/geom/Transform.js.map +1 -1
- package/lib/esm/system/buffer/ABuffer.js +4 -0
- package/lib/esm/system/buffer/ABuffer.js.map +1 -1
- package/lib/esm/system/buffer/Float32Buffer.js +8 -2
- package/lib/esm/system/buffer/Float32Buffer.js.map +1 -1
- package/lib/esm/system/buffer/LittleEndian.js.map +1 -1
- package/lib/esm/system/buffer/Uint16Buffer.js +8 -2
- package/lib/esm/system/buffer/Uint16Buffer.js.map +1 -1
- package/lib/esm/system/buffer/Uint8Buffer.js +8 -2
- package/lib/esm/system/buffer/Uint8Buffer.js.map +1 -1
- package/lib/esm/system/collection/AList.js +1 -0
- package/lib/esm/system/collection/AList.js.map +1 -1
- package/lib/esm/system/collection/IntMap.js +1 -0
- package/lib/esm/system/collection/IntMap.js.map +1 -1
- package/lib/esm/system/collection/StringMap.js +1 -0
- package/lib/esm/system/collection/StringMap.js.map +1 -1
- package/lib/esm/system/io/ABufferInStream.js +5 -0
- package/lib/esm/system/io/ABufferInStream.js.map +1 -1
- package/lib/esm/system/io/InStream.js.map +1 -1
- package/lib/esm/system/io/OutStream.js.map +1 -1
- package/lib/esm/system/runtime/ALong.js +30 -26
- package/lib/esm/system/runtime/ALong.js.map +1 -1
- package/lib/esm/system/runtime/ASystem.js +1 -1
- package/lib/esm/system/runtime/ASystem.js.map +1 -1
- package/lib/esm/system/runtime/Downloader.js +2 -2
- package/lib/esm/system/runtime/Downloader.js.map +1 -1
- package/lib/esm/system/runtime/DownloaderNode.js.map +1 -1
- package/lib/esm/system/runtime/DownloaderXhr.js.map +1 -1
- package/lib/esm/system/runtime/Message.js +2 -2
- package/lib/esm/system/runtime/Message.js.map +1 -1
- package/lib/esm/system/runtime/Numbers.js +6 -6
- package/lib/esm/system/runtime/Numbers.js.map +1 -1
- package/lib/esm/system/runtime/Strings.js +14 -14
- package/lib/esm/system/runtime/Strings.js.map +1 -1
- package/lib/esm/system/runtime/iComparator.js.map +1 -1
- package/lib/esm/system/storage/CacheList.js +8 -0
- package/lib/esm/system/storage/CacheList.js.map +1 -1
- package/lib/esm/system/storage/CachedItem.js +6 -0
- package/lib/esm/system/storage/CachedItem.js.map +1 -1
- package/lib/esm/system/storage/ContentLoader.js +14 -2
- package/lib/esm/system/storage/ContentLoader.js.map +1 -1
- package/lib/esm/system/storage/FileContent.js +4 -0
- package/lib/esm/system/storage/FileContent.js.map +1 -1
- package/lib/esm/system/storage/FileRange.js +4 -0
- package/lib/esm/system/storage/FileRange.js.map +1 -1
- package/lib/esm/system/storage/FileStorage.js.map +1 -1
- package/lib/esm/system/storage/NodeFS.js.map +1 -1
- package/lib/esm/system/storage/PageCachedFile.js +8 -0
- package/lib/esm/system/storage/PageCachedFile.js.map +1 -1
- package/lib/esm/system/storage/UrlFS.js +6 -0
- package/lib/esm/system/storage/UrlFS.js.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointAttribute.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/PointAttribute.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAWH,sDAAmD;AACnD,0DAAuD;AACvD,0DAAuD;AACvD,qDAAkD;AAClD,qDAAkD;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,cAAc;IAiBvB;;;;;;OAMG;IACH,YAAmB,IAAY,EAAE,WAAmB,EAAE,IAAW,EAAE,YAA4B;QAC3F,IAAI,YAAY,IAAI,IAAI;YAAE,YAAY,GAAG,+BAAc,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC5E,iBAAO,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE,IAAI,IAAI,EAAE,gBAAgB,GAAG,YAAY,GAAG,iCAAiC,GAAG,IAAI,CAAC,CAAC;QAC5H,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;IACpC,CAAC;IAED;;;OAGG;IACI,OAAO;QACV,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED;;;OAGG;IACI,OAAO,CAAC,IAAY;QACvB,IAAI,CAA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EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IACpE,CAAC;CACJ;AAtVD,wCAsVC","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,sDAAmD;AACnD,0DAAuD;AACvD,0DAAuD;AACvD,qDAAkD;AAClD,qDAAkD;AAElD;;;;GAIG;AACH,gBAAg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AAO,CAAC,CAAC,CAAC;QACrC,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,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;AAtVD,wCAsVC","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;;;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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;AAvLD,4CAuLC","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"PointCloudReader.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/PointCloudReader.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAaH,sDAAmD;AAYnD;;;;;;;;;;;GAWG;AACH,gBAAgB;AAChB,MAAa,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,aAAK,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;AAvLD,4CAuLC","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,MAAa,SAAS;
|
|
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,MAAa,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;AAbD,8BAaC","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"]}
|
|
@@ -14,6 +14,14 @@ const PointData_1 = require("./PointData");
|
|
|
14
14
|
*/
|
|
15
15
|
/** @internal */
|
|
16
16
|
class PointDataRaw extends PointData_1.PointData {
|
|
17
|
+
// the identifier of this data format
|
|
18
|
+
static TYPE = 1;
|
|
19
|
+
// the 16-bit XYZ geometries (length tileIndex.pointCount)
|
|
20
|
+
points16;
|
|
21
|
+
// the 8-bit XYZ geometries (length tileIndex.pointCount)
|
|
22
|
+
points8;
|
|
23
|
+
// the 24-bit BGR colors (length tileIndex.pointCount)
|
|
24
|
+
colors;
|
|
17
25
|
/**
|
|
18
26
|
* Create new point data.
|
|
19
27
|
*/
|
|
@@ -65,6 +73,4 @@ class PointDataRaw extends PointData_1.PointData {
|
|
|
65
73
|
}
|
|
66
74
|
}
|
|
67
75
|
exports.PointDataRaw = PointDataRaw;
|
|
68
|
-
// the identifier of this data format
|
|
69
|
-
PointDataRaw.TYPE = 1;
|
|
70
76
|
//# sourceMappingURL=PointDataRaw.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointDataRaw.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/PointDataRaw.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAcH,2CAAwC;AAGxC;;GAEG;AACH,gBAAgB;AAChB,MAAa,YAAa,SAAQ,qBAAS;
|
|
1
|
+
{"version":3,"file":"PointDataRaw.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/PointDataRaw.ts"],"names":[],"mappings":";AAAA;;;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AI,CAAC,UAAiB;QAC5B,IAAI,KAAK,GAAY,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;QAC/D,IAAI,IAAI,GAAY,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;QACxD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAClH,CAAC;IAEM,MAAM,CAAC,UAAiB;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;IAC5C,CAAC;IAEM,QAAQ,CAAC,UAAiB;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;IAC5C,CAAC;IAEM,OAAO,CAAC,UAAiB;QAC/B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;IAC5C,CAAC;;AAjEF,oCAkEC","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"]}
|
|
@@ -18,6 +18,34 @@ const Strings_1 = require("../../system/runtime/Strings");
|
|
|
18
18
|
*/
|
|
19
19
|
/** @internal */
|
|
20
20
|
class ReadRequest {
|
|
21
|
+
/** The request to only read the geometry */
|
|
22
|
+
static READ_GEOMETRY = ReadRequest.getGeometry();
|
|
23
|
+
/** The request to only read the geometry and color */
|
|
24
|
+
static READ_GEOMETRY_AND_COLOR = ReadRequest.getGeometryAndColor();
|
|
25
|
+
/** The request to read geometry and attributes */
|
|
26
|
+
static READ_ALL = ReadRequest.getGeometryAndAttributes();
|
|
27
|
+
/** Should the geometry be read? */
|
|
28
|
+
_readGeometryAttribute;
|
|
29
|
+
/** Should the color be read? */
|
|
30
|
+
_readColorAttribute;
|
|
31
|
+
/** Should the intensity be read? */
|
|
32
|
+
_readIntensityAttribute;
|
|
33
|
+
/** Should the weight be read? */
|
|
34
|
+
_readWeightAttribute;
|
|
35
|
+
/** Should thinning be used? */
|
|
36
|
+
_thinning;
|
|
37
|
+
/** The list of extra attributes that should be read */
|
|
38
|
+
_extraAttributes;
|
|
39
|
+
/** Should the deleted points be read as well? */
|
|
40
|
+
_readDeletedAttribute;
|
|
41
|
+
/** An optional 2D area to filter */
|
|
42
|
+
_areaFilter;
|
|
43
|
+
/** The number read transactions */
|
|
44
|
+
_dataTransactions;
|
|
45
|
+
/** The number of bytes read for this request */
|
|
46
|
+
_dataSize;
|
|
47
|
+
/** The number of nanoseconds spent reading data */
|
|
48
|
+
_dataReadTime;
|
|
21
49
|
/**
|
|
22
50
|
* Create a new request to read all data (geometry and attributes) (except deleted points).
|
|
23
51
|
*/
|
|
@@ -231,10 +259,4 @@ class ReadRequest {
|
|
|
231
259
|
}
|
|
232
260
|
}
|
|
233
261
|
exports.ReadRequest = ReadRequest;
|
|
234
|
-
/** The request to only read the geometry */
|
|
235
|
-
ReadRequest.READ_GEOMETRY = ReadRequest.getGeometry();
|
|
236
|
-
/** The request to only read the geometry and color */
|
|
237
|
-
ReadRequest.READ_GEOMETRY_AND_COLOR = ReadRequest.getGeometryAndColor();
|
|
238
|
-
/** The request to read geometry and attributes */
|
|
239
|
-
ReadRequest.READ_ALL = ReadRequest.getGeometryAndAttributes();
|
|
240
262
|
//# sourceMappingURL=ReadRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReadRequest.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/ReadRequest.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAWH,yDAAsD;AACtD,sDAAmD;AACnD,0DAAuD;AAEvD;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,WAAW;IAiCpB;;OAEG;IACH;QACI,uBAAuB;QACvB,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC;QACnC,kCAAkC;QAClC,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC;QAChC,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC;QACpC,IAAI,CAAC,oBA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AC,wBAAwB,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.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 { AList } from \"../../system/collection/AList\";\r\nimport { ALong } from \"../../system/runtime/ALong\";\r\nimport { Strings } from \"../../system/runtime/Strings\";\r\n\r\n/**\r\n * Class ReadRequest allows selective reading of information from a point cloud file.\r\n *\r\n * @version 1.0 December 2011\r\n */\r\n/** @internal */\r\nexport class ReadRequest {\r\n /** The request to only read the geometry */\r\n public static readonly READ_GEOMETRY: ReadRequest = ReadRequest.getGeometry();\r\n /** The request to only read the geometry and color */\r\n public static readonly READ_GEOMETRY_AND_COLOR: ReadRequest = ReadRequest.getGeometryAndColor();\r\n /** The request to read geometry and attributes */\r\n public static readonly READ_ALL: ReadRequest = ReadRequest.getGeometryAndAttributes();\r\n\r\n /** Should the geometry be read? */\r\n private _readGeometryAttribute: boolean;\r\n /** Should the color be read? */\r\n private _readColorAttribute: boolean;\r\n /** Should the intensity be read? */\r\n private _readIntensityAttribute: boolean;\r\n /** Should the weight be read? */\r\n private _readWeightAttribute: boolean;\r\n /** Should thinning be used? */\r\n private _thinning: int32;\r\n /** The list of extra attributes that should be read */\r\n private _extraAttributes: AList<string>;\r\n /** Should the deleted points be read as well? */\r\n private _readDeletedAttribute: boolean;\r\n\r\n /** An optional 2D area to filter */\r\n private _areaFilter: Bounds;\r\n\r\n /** The number read transactions */\r\n private _dataTransactions: int32;\r\n /** The number of bytes read for this request */\r\n private _dataSize: ALong;\r\n /** The number of nanoseconds spent reading data */\r\n private _dataReadTime: ALong;\r\n\r\n /**\r\n * Create a new request to read all data (geometry and attributes) (except deleted points).\r\n */\r\n public constructor() {\r\n /* Read the geometry */\r\n this._readGeometryAttribute = true;\r\n /* Read all standard attributes */\r\n this._readColorAttribute = true;\r\n this._readIntensityAttribute = true;\r\n this._readWeightAttribute = true;\r\n this._thinning = 0;\r\n /* Read all extra attributes */\r\n this._extraAttributes = new AList<string>();\r\n this._extraAttributes.add(\"*\");\r\n /* Default to not reading deleted points */\r\n this._readDeletedAttribute = false;\r\n /* Clear */\r\n this._areaFilter = null;\r\n this._dataTransactions = 0;\r\n this._dataSize = ALong.ZERO;\r\n this._dataReadTime = ALong.ZERO;\r\n }\r\n\r\n /**\r\n * Create a new request.\r\n * @param readColor should the color be read?\r\n * @param readIntensity should the intensity be read?\r\n * @param readWeight should the weight be read?\r\n * @param thinning should thinning be used?\r\n */\r\n public static create(readColor: boolean, readIntensity: boolean, readWeight: boolean, thinning: int32): ReadRequest {\r\n let request: ReadRequest = new ReadRequest();\r\n request._readColorAttribute = readColor;\r\n request._readIntensityAttribute = readIntensity;\r\n request._readWeightAttribute = readWeight;\r\n request._thinning = thinning;\r\n request._extraAttributes.clear();\r\n return request;\r\n }\r\n\r\n /**\r\n * Create the request to only read the geometry.\r\n * @return the request.\r\n */\r\n public static getGeometry(): ReadRequest {\r\n return ReadRequest.create(false/*color*/, false/*intensity*/, false/*weight*/, 0/*thinning*/);\r\n }\r\n\r\n /**\r\n * Create the request to only read the geometry and colot.\r\n * @return the request.\r\n */\r\n public static getGeometryAndColor(): ReadRequest {\r\n return ReadRequest.create(true/*color*/, false/*intensity*/, false/*weight*/, 0/*thinning*/);\r\n }\r\n\r\n /**\r\n * Create the request to read the full geometry and all attributes.\r\n * @return the request.\r\n */\r\n public static getGeometryAndAttributes(): ReadRequest {\r\n return new ReadRequest();\r\n }\r\n\r\n /**\r\n * Should the geometry be read?\r\n * @return true if it should be read.\r\n */\r\n public readGeometry(): boolean {\r\n return this._readGeometryAttribute;\r\n }\r\n\r\n /**\r\n * Should the geometry be read?\r\n * @param read true if it should be read.\r\n */\r\n public setReadGeometry(read: boolean): void {\r\n this._readGeometryAttribute = read;\r\n }\r\n\r\n /**\r\n * Should the color be read?\r\n * @return true if it should be read.\r\n */\r\n public readColor(): boolean {\r\n return this._readColorAttribute;\r\n }\r\n\r\n /**\r\n * Should the intensity be read?\r\n * @return true if it should be read.\r\n */\r\n public readIntensity(): boolean {\r\n return this._readIntensityAttribute;\r\n }\r\n\r\n /**\r\n * Should the weight be read?\r\n * @return true if it should be read.\r\n */\r\n public readWeight(): boolean {\r\n return this._readWeightAttribute;\r\n }\r\n\r\n /**\r\n * Should thinning be used?\r\n * @return the thinning factor.\r\n */\r\n public getThinning(): int32 {\r\n return this._thinning;\r\n }\r\n\r\n /**\r\n * Should the deleted points be read?\r\n * @return true if they should be read.\r\n */\r\n public readDeleted(): boolean {\r\n return this._readDeletedAttribute;\r\n }\r\n\r\n /**\r\n * Should the deleted points be read?\r\n * @param read true if they should be read.\r\n */\r\n public setReadDeleted(read: boolean): void {\r\n this._readDeletedAttribute = read;\r\n }\r\n\r\n /**\r\n * Should all extra attributes be read?\r\n * @return true if all extra attribute should be read.\r\n */\r\n public readAllExtraAttributes(): boolean {\r\n if (this._extraAttributes.size() != 1) return false;\r\n let extraAttribute: string = this._extraAttributes.get(0);\r\n return Strings.equals(extraAttribute, \"*\");\r\n }\r\n\r\n /**\r\n * Get the list of extra attributes to read.\r\n * @return the list of extra attributes to read.\r\n */\r\n public getExtraAttributes(): AList<string> {\r\n return this._extraAttributes;\r\n }\r\n\r\n /**\r\n * Set the list of extra attributes to read.\r\n * @param list the list of extra attributes to read.\r\n */\r\n public setExtraAttributes(list: AList<string>): void {\r\n this._extraAttributes = list;\r\n }\r\n\r\n /**\r\n * Add the name of an extra attribute to read.\r\n * @param attributeName the name of the attribute to read.\r\n * @return this request for convenient chaining.\r\n */\r\n public addExtraAttribute(attributeName: string): ReadRequest {\r\n this._extraAttributes.add(attributeName);\r\n return this;\r\n }\r\n\r\n /**\r\n * Get the area filter.\r\n * @return the area filter.\r\n */\r\n public getAreaFilter(): Bounds {\r\n return this._areaFilter;\r\n }\r\n\r\n /**\r\n * Set the area filter.\r\n * @param filter the new area filter.\r\n */\r\n public setAreaFilter(filter: Bounds): void {\r\n this._areaFilter = filter;\r\n }\r\n\r\n /**\r\n * Add a number of bytes to the data size.\r\n * @param size the number of bytes.\r\n */\r\n public addDataSize(size: int32): void {\r\n this._dataSize = this._dataSize.addInt(size);\r\n this._dataTransactions++;\r\n }\r\n\r\n /**\r\n * Get the data size of the request.\r\n * @return the number of bytes.\r\n */\r\n public getDataSize(): ALong {\r\n return this._dataSize;\r\n }\r\n\r\n /**\r\n * Clear the data size of the request.\r\n */\r\n public clearDataSize(): void {\r\n this._dataSize = ALong.ZERO;\r\n this._dataTransactions = 0;\r\n }\r\n\r\n /**\r\n * Get the number of data transactions.\r\n * @return the number of data transactions.\r\n */\r\n public getDataTransactions(): int32 {\r\n return this._dataTransactions;\r\n }\r\n\r\n /**\r\n * Add a number of nanoseconds to the data read time.\r\n * @param time the number of nanoseconds.\r\n */\r\n public addDataReadTime(time: ALong): void {\r\n this._dataReadTime = this._dataReadTime.add(time);\r\n }\r\n\r\n /**\r\n * Get the data read time of the request.\r\n * @return the number of nanoseconds.\r\n */\r\n public getDataReadTime(): ALong {\r\n return this._dataReadTime;\r\n }\r\n\r\n /**\r\n * Clear the data read time of the request.\r\n */\r\n public clearDataReadTime(): void {\r\n this._dataReadTime = ALong.ZERO;\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"ReadRequest.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/ReadRequest.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAWH,yDAAsD;AACtD,sDAAmD;AACnD,0DAAuD;AAEvD;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,WAAW;IACpB,4CAA4C;IACrC,MAAM,CAAU,aAAa,GAAgB,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AC;IAED;;;OAGG;IACI,WAAW;QACd,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED;;OAEG;IACI,aAAa;QAChB,IAAI,CAAC,SAAS,GAAG,aAAK,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,iBAAiB,GAAG,CAAC,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACI,mBAAmB;QACtB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAClC,CAAC;IAED;;;OAGG;IACI,eAAe,CAAC,IAAW;QAC9B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IAED;;;OAGG;IACI,eAAe;QAClB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAED;;OAEG;IACI,iBAAiB;QACpB,IAAI,CAAC,aAAa,GAAG,aAAK,CAAC,IAAI,CAAC;IACpC,CAAC;;AA3QL,kCA4QC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { Bounds } from \"../../spatial/geom/Bounds\";\nimport { AList } from \"../../system/collection/AList\";\nimport { ALong } from \"../../system/runtime/ALong\";\nimport { Strings } from \"../../system/runtime/Strings\";\n\n/**\n * Class ReadRequest allows selective reading of information from a point cloud file.\n *\n * @version 1.0 December 2011\n */\n/** @internal */\nexport class ReadRequest {\n /** The request to only read the geometry */\n public static readonly READ_GEOMETRY: ReadRequest = ReadRequest.getGeometry();\n /** The request to only read the geometry and color */\n public static readonly READ_GEOMETRY_AND_COLOR: ReadRequest = ReadRequest.getGeometryAndColor();\n /** The request to read geometry and attributes */\n public static readonly READ_ALL: ReadRequest = ReadRequest.getGeometryAndAttributes();\n\n /** Should the geometry be read? */\n private _readGeometryAttribute: boolean;\n /** Should the color be read? */\n private _readColorAttribute: boolean;\n /** Should the intensity be read? */\n private _readIntensityAttribute: boolean;\n /** Should the weight be read? */\n private _readWeightAttribute: boolean;\n /** Should thinning be used? */\n private _thinning: int32;\n /** The list of extra attributes that should be read */\n private _extraAttributes: AList<string>;\n /** Should the deleted points be read as well? */\n private _readDeletedAttribute: boolean;\n\n /** An optional 2D area to filter */\n private _areaFilter: Bounds;\n\n /** The number read transactions */\n private _dataTransactions: int32;\n /** The number of bytes read for this request */\n private _dataSize: ALong;\n /** The number of nanoseconds spent reading data */\n private _dataReadTime: ALong;\n\n /**\n * Create a new request to read all data (geometry and attributes) (except deleted points).\n */\n public constructor() {\n /* Read the geometry */\n this._readGeometryAttribute = true;\n /* Read all standard attributes */\n this._readColorAttribute = true;\n this._readIntensityAttribute = true;\n this._readWeightAttribute = true;\n this._thinning = 0;\n /* Read all extra attributes */\n this._extraAttributes = new AList<string>();\n this._extraAttributes.add(\"*\");\n /* Default to not reading deleted points */\n this._readDeletedAttribute = false;\n /* Clear */\n this._areaFilter = null;\n this._dataTransactions = 0;\n this._dataSize = ALong.ZERO;\n this._dataReadTime = ALong.ZERO;\n }\n\n /**\n * Create a new request.\n * @param readColor should the color be read?\n * @param readIntensity should the intensity be read?\n * @param readWeight should the weight be read?\n * @param thinning should thinning be used?\n */\n public static create(readColor: boolean, readIntensity: boolean, readWeight: boolean, thinning: int32): ReadRequest {\n let request: ReadRequest = new ReadRequest();\n request._readColorAttribute = readColor;\n request._readIntensityAttribute = readIntensity;\n request._readWeightAttribute = readWeight;\n request._thinning = thinning;\n request._extraAttributes.clear();\n return request;\n }\n\n /**\n * Create the request to only read the geometry.\n * @return the request.\n */\n public static getGeometry(): ReadRequest {\n return ReadRequest.create(false/*color*/, false/*intensity*/, false/*weight*/, 0/*thinning*/);\n }\n\n /**\n * Create the request to only read the geometry and colot.\n * @return the request.\n */\n public static getGeometryAndColor(): ReadRequest {\n return ReadRequest.create(true/*color*/, false/*intensity*/, false/*weight*/, 0/*thinning*/);\n }\n\n /**\n * Create the request to read the full geometry and all attributes.\n * @return the request.\n */\n public static getGeometryAndAttributes(): ReadRequest {\n return new ReadRequest();\n }\n\n /**\n * Should the geometry be read?\n * @return true if it should be read.\n */\n public readGeometry(): boolean {\n return this._readGeometryAttribute;\n }\n\n /**\n * Should the geometry be read?\n * @param read true if it should be read.\n */\n public setReadGeometry(read: boolean): void {\n this._readGeometryAttribute = read;\n }\n\n /**\n * Should the color be read?\n * @return true if it should be read.\n */\n public readColor(): boolean {\n return this._readColorAttribute;\n }\n\n /**\n * Should the intensity be read?\n * @return true if it should be read.\n */\n public readIntensity(): boolean {\n return this._readIntensityAttribute;\n }\n\n /**\n * Should the weight be read?\n * @return true if it should be read.\n */\n public readWeight(): boolean {\n return this._readWeightAttribute;\n }\n\n /**\n * Should thinning be used?\n * @return the thinning factor.\n */\n public getThinning(): int32 {\n return this._thinning;\n }\n\n /**\n * Should the deleted points be read?\n * @return true if they should be read.\n */\n public readDeleted(): boolean {\n return this._readDeletedAttribute;\n }\n\n /**\n * Should the deleted points be read?\n * @param read true if they should be read.\n */\n public setReadDeleted(read: boolean): void {\n this._readDeletedAttribute = read;\n }\n\n /**\n * Should all extra attributes be read?\n * @return true if all extra attribute should be read.\n */\n public readAllExtraAttributes(): boolean {\n if (this._extraAttributes.size() != 1) return false;\n let extraAttribute: string = this._extraAttributes.get(0);\n return Strings.equals(extraAttribute, \"*\");\n }\n\n /**\n * Get the list of extra attributes to read.\n * @return the list of extra attributes to read.\n */\n public getExtraAttributes(): AList<string> {\n return this._extraAttributes;\n }\n\n /**\n * Set the list of extra attributes to read.\n * @param list the list of extra attributes to read.\n */\n public setExtraAttributes(list: AList<string>): void {\n this._extraAttributes = list;\n }\n\n /**\n * Add the name of an extra attribute to read.\n * @param attributeName the name of the attribute to read.\n * @return this request for convenient chaining.\n */\n public addExtraAttribute(attributeName: string): ReadRequest {\n this._extraAttributes.add(attributeName);\n return this;\n }\n\n /**\n * Get the area filter.\n * @return the area filter.\n */\n public getAreaFilter(): Bounds {\n return this._areaFilter;\n }\n\n /**\n * Set the area filter.\n * @param filter the new area filter.\n */\n public setAreaFilter(filter: Bounds): void {\n this._areaFilter = filter;\n }\n\n /**\n * Add a number of bytes to the data size.\n * @param size the number of bytes.\n */\n public addDataSize(size: int32): void {\n this._dataSize = this._dataSize.addInt(size);\n this._dataTransactions++;\n }\n\n /**\n * Get the data size of the request.\n * @return the number of bytes.\n */\n public getDataSize(): ALong {\n return this._dataSize;\n }\n\n /**\n * Clear the data size of the request.\n */\n public clearDataSize(): void {\n this._dataSize = ALong.ZERO;\n this._dataTransactions = 0;\n }\n\n /**\n * Get the number of data transactions.\n * @return the number of data transactions.\n */\n public getDataTransactions(): int32 {\n return this._dataTransactions;\n }\n\n /**\n * Add a number of nanoseconds to the data read time.\n * @param time the number of nanoseconds.\n */\n public addDataReadTime(time: ALong): void {\n this._dataReadTime = this._dataReadTime.add(time);\n }\n\n /**\n * Get the data read time of the request.\n * @return the number of nanoseconds.\n */\n public getDataReadTime(): ALong {\n return this._dataReadTime;\n }\n\n /**\n * Clear the data read time of the request.\n */\n public clearDataReadTime(): void {\n this._dataReadTime = ALong.ZERO;\n }\n}\n"]}
|
|
@@ -18,31 +18,31 @@ const PointAttribute_1 = require("./PointAttribute");
|
|
|
18
18
|
*/
|
|
19
19
|
/** @internal */
|
|
20
20
|
class StandardAttributes {
|
|
21
|
+
/** The standard "color" attribute */
|
|
22
|
+
static COLOR = new PointAttribute_1.PointAttribute("Color", "The RGB color", AttributeTypes_1.AttributeTypes.TYPE_COLOR, AttributeValue_1.AttributeValue.createColor(0));
|
|
23
|
+
/** The standard "intensity" attribute */
|
|
24
|
+
static INTENSITY = new PointAttribute_1.PointAttribute("Intensity", "The reflection intensity", AttributeTypes_1.AttributeTypes.TYPE_INT2, AttributeValue_1.AttributeValue.createInt2(0));
|
|
25
|
+
/** The standard "gps-time" attribute */
|
|
26
|
+
static GPS_TIME = new PointAttribute_1.PointAttribute("GPSTime", "The registration time of the point", AttributeTypes_1.AttributeTypes.TYPE_FLOAT8, AttributeValue_1.AttributeValue.createFloat8(0.0));
|
|
27
|
+
/** The standard "weight" attribute */
|
|
28
|
+
static WEIGHT = new PointAttribute_1.PointAttribute("Weight", "The weight of a multi-resolution point", AttributeTypes_1.AttributeTypes.TYPE_INT4, AttributeValue_1.AttributeValue.createInt4(0));
|
|
29
|
+
/** The standard "clearance" attribute */
|
|
30
|
+
static CLEARANCE = new PointAttribute_1.PointAttribute("Clearance", "The vertical clearance of a bridge or road", AttributeTypes_1.AttributeTypes.TYPE_FLOAT4, AttributeValue_1.AttributeValue.createFloat4(0.0));
|
|
31
|
+
/** The standard "rutting" attribute */
|
|
32
|
+
static RUTTING = new PointAttribute_1.PointAttribute("Rutting", "The road deformation angle", AttributeTypes_1.AttributeTypes.TYPE_FLOAT4, AttributeValue_1.AttributeValue.createFloat4(0.0)); // range 0..90 deg
|
|
33
|
+
/** The standard "color-by" attribute */
|
|
34
|
+
static COLOR_BY = new PointAttribute_1.PointAttribute("ColorBy", "The attribute to modulate the point colors", AttributeTypes_1.AttributeTypes.TYPE_FLOAT4, AttributeValue_1.AttributeValue.createFloat4(0.0));
|
|
35
|
+
/** The default "gps-time" attribute value */
|
|
36
|
+
static DEFAULT_GPS_TIME = AttributeValue_1.AttributeValue.createFloat8(0.0);
|
|
37
|
+
/** The "adjusted" gps time offset (The offset moves the time back to near zero to improve floating point resolution).
|
|
38
|
+
See the "GPS Time Type" field in "LAS SPECIFICATION VERSION 1.3" */
|
|
39
|
+
static GPS_TIME_OFFSET = 1.0e9;
|
|
40
|
+
/** The number of seconds in a week (7*24*3600) */
|
|
41
|
+
static GPS_WEEK_SECONDS = 604800.0;
|
|
21
42
|
/**
|
|
22
43
|
* No instances.
|
|
23
44
|
*/
|
|
24
45
|
constructor() { }
|
|
25
46
|
}
|
|
26
47
|
exports.StandardAttributes = StandardAttributes;
|
|
27
|
-
/** The standard "color" attribute */
|
|
28
|
-
StandardAttributes.COLOR = new PointAttribute_1.PointAttribute("Color", "The RGB color", AttributeTypes_1.AttributeTypes.TYPE_COLOR, AttributeValue_1.AttributeValue.createColor(0));
|
|
29
|
-
/** The standard "intensity" attribute */
|
|
30
|
-
StandardAttributes.INTENSITY = new PointAttribute_1.PointAttribute("Intensity", "The reflection intensity", AttributeTypes_1.AttributeTypes.TYPE_INT2, AttributeValue_1.AttributeValue.createInt2(0));
|
|
31
|
-
/** The standard "gps-time" attribute */
|
|
32
|
-
StandardAttributes.GPS_TIME = new PointAttribute_1.PointAttribute("GPSTime", "The registration time of the point", AttributeTypes_1.AttributeTypes.TYPE_FLOAT8, AttributeValue_1.AttributeValue.createFloat8(0.0));
|
|
33
|
-
/** The standard "weight" attribute */
|
|
34
|
-
StandardAttributes.WEIGHT = new PointAttribute_1.PointAttribute("Weight", "The weight of a multi-resolution point", AttributeTypes_1.AttributeTypes.TYPE_INT4, AttributeValue_1.AttributeValue.createInt4(0));
|
|
35
|
-
/** The standard "clearance" attribute */
|
|
36
|
-
StandardAttributes.CLEARANCE = new PointAttribute_1.PointAttribute("Clearance", "The vertical clearance of a bridge or road", AttributeTypes_1.AttributeTypes.TYPE_FLOAT4, AttributeValue_1.AttributeValue.createFloat4(0.0));
|
|
37
|
-
/** The standard "rutting" attribute */
|
|
38
|
-
StandardAttributes.RUTTING = new PointAttribute_1.PointAttribute("Rutting", "The road deformation angle", AttributeTypes_1.AttributeTypes.TYPE_FLOAT4, AttributeValue_1.AttributeValue.createFloat4(0.0)); // range 0..90 deg
|
|
39
|
-
/** The standard "color-by" attribute */
|
|
40
|
-
StandardAttributes.COLOR_BY = new PointAttribute_1.PointAttribute("ColorBy", "The attribute to modulate the point colors", AttributeTypes_1.AttributeTypes.TYPE_FLOAT4, AttributeValue_1.AttributeValue.createFloat4(0.0));
|
|
41
|
-
/** The default "gps-time" attribute value */
|
|
42
|
-
StandardAttributes.DEFAULT_GPS_TIME = AttributeValue_1.AttributeValue.createFloat8(0.0);
|
|
43
|
-
/** The "adjusted" gps time offset (The offset moves the time back to near zero to improve floating point resolution).
|
|
44
|
-
See the "GPS Time Type" field in "LAS SPECIFICATION VERSION 1.3" */
|
|
45
|
-
StandardAttributes.GPS_TIME_OFFSET = 1.0e9;
|
|
46
|
-
/** The number of seconds in a week (7*24*3600) */
|
|
47
|
-
StandardAttributes.GPS_WEEK_SECONDS = 604800.0;
|
|
48
48
|
//# sourceMappingURL=StandardAttributes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardAttributes.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/StandardAttributes.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAUH,qDAAkD;AAClD,qDAAkD;AAClD,qDAAkD;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"StandardAttributes.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/StandardAttributes.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAUH,qDAAkD;AAClD,qDAAkD;AAClD,qDAAkD;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,kBAAkB;IAC3B,qCAAqC;IAC9B,MAAM,CAAU,KAAK,GAAmB,IAAI,+BAAc,CAAC,OAAO,EAAE,eAAe,EAAE,+BAAc,CAAC,UAAU,EAAE,+BAAc,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACtJ,yCAAyC;IAClC,MAAM,CAAU,SAAS,GAAmB,IAAI,+BAAc,CAAC,WAAW,EAAE,0BAA0B,EAAE,+BAAc,CAAC,SAAS,EAAE,+BAAc,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IACvK,wCAAwC;IACjC,MAAM,CAAU,QAAQ,GAAmB,IAAI,+BAAc,CAAC,SAAS,EAAE,oCAAoC,EAAE,+BAAc,CAAC,WAAW,EAAE,+BAAc,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IACpL,sCAAsC;IAC/B,MAAM,CAAU,MAAM,GAAmB,IAAI,+BAAc,CAAC,QAAQ,EAAE,wCAAwC,EAAE,+BAAc,CAAC,SAAS,EAAE,+BAAc,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/K,yCAAyC;IAClC,MAAM,CAAU,SAAS,GAAmB,IAAI,+BAAc,CAAC,WAAW,EAAE,4CAA4C,EAAE,+BAAc,CAAC,WAAW,EAAE,+BAAc,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/L,uCAAuC;IAChC,MAAM,CAAU,OAAO,GAAmB,IAAI,+BAAc,CAAC,SAAS,EAAE,4BAA4B,EAAE,+BAAc,CAAC,WAAW,EAAE,+BAAc,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,kBAAkB;IAC9L,wCAAwC;IACjC,MAAM,CAAU,QAAQ,GAAmB,IAAI,+BAAc,CAAC,SAAS,EAAE,4CAA4C,EAAE,+BAAc,CAAC,WAAW,EAAE,+BAAc,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAE5L,6CAA6C;IACtC,MAAM,CAAU,gBAAgB,GAAmB,+BAAc,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAE3F;2EACuE;IAChE,MAAM,CAAU,eAAe,GAAY,KAAK,CAAC;IACxD,kDAAkD;IAC3C,MAAM,CAAU,gBAAgB,GAAY,QAAQ,CAAC;IAE5D;;OAEG;IACH,gBAAwB,CAAC;;AA5B7B,gDA6BC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { AttributeTypes } from \"./AttributeTypes\";\nimport { AttributeValue } from \"./AttributeValue\";\nimport { PointAttribute } from \"./PointAttribute\";\n\n/**\n * Class StandardAttributes defines some common attributes for pointclouds.\n *\n * @version 1.0 October 2013\n */\n/** @internal */\nexport class StandardAttributes {\n /** The standard \"color\" attribute */\n public static readonly COLOR: PointAttribute = new PointAttribute(\"Color\", \"The RGB color\", AttributeTypes.TYPE_COLOR, AttributeValue.createColor(0));\n /** The standard \"intensity\" attribute */\n public static readonly INTENSITY: PointAttribute = new PointAttribute(\"Intensity\", \"The reflection intensity\", AttributeTypes.TYPE_INT2, AttributeValue.createInt2(0));\n /** The standard \"gps-time\" attribute */\n public static readonly GPS_TIME: PointAttribute = new PointAttribute(\"GPSTime\", \"The registration time of the point\", AttributeTypes.TYPE_FLOAT8, AttributeValue.createFloat8(0.0));\n /** The standard \"weight\" attribute */\n public static readonly WEIGHT: PointAttribute = new PointAttribute(\"Weight\", \"The weight of a multi-resolution point\", AttributeTypes.TYPE_INT4, AttributeValue.createInt4(0));\n /** The standard \"clearance\" attribute */\n public static readonly CLEARANCE: PointAttribute = new PointAttribute(\"Clearance\", \"The vertical clearance of a bridge or road\", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0));\n /** The standard \"rutting\" attribute */\n public static readonly RUTTING: PointAttribute = new PointAttribute(\"Rutting\", \"The road deformation angle\", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0)); // range 0..90 deg\n /** The standard \"color-by\" attribute */\n public static readonly COLOR_BY: PointAttribute = new PointAttribute(\"ColorBy\", \"The attribute to modulate the point colors\", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0));\n\n /** The default \"gps-time\" attribute value */\n public static readonly DEFAULT_GPS_TIME: AttributeValue = AttributeValue.createFloat8(0.0);\n\n /** The \"adjusted\" gps time offset (The offset moves the time back to near zero to improve floating point resolution).\n See the \"GPS Time Type\" field in \"LAS SPECIFICATION VERSION 1.3\" */\n public static readonly GPS_TIME_OFFSET: float64 = 1.0e9;\n /** The number of seconds in a week (7*24*3600) */\n public static readonly GPS_WEEK_SECONDS: float64 = 604800.0;\n\n /**\n * No instances.\n */\n private constructor() { }\n}\n"]}
|
|
@@ -15,6 +15,22 @@ exports.TileIndex = void 0;
|
|
|
15
15
|
*/
|
|
16
16
|
/** @internal */
|
|
17
17
|
class TileIndex {
|
|
18
|
+
/** The level */
|
|
19
|
+
level;
|
|
20
|
+
/** The unique key of the block */
|
|
21
|
+
key;
|
|
22
|
+
/** The index of the tile in the level */
|
|
23
|
+
index;
|
|
24
|
+
/** The grid index */
|
|
25
|
+
gridIndex;
|
|
26
|
+
/** The index of the first point in the tile (derived) */
|
|
27
|
+
pointIndex;
|
|
28
|
+
/** The point count */
|
|
29
|
+
pointCount;
|
|
30
|
+
/** The children */
|
|
31
|
+
children;
|
|
32
|
+
/** The last access time */
|
|
33
|
+
accessTime;
|
|
18
34
|
/**
|
|
19
35
|
* Create a new index.
|
|
20
36
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileIndex.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/TileIndex.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAcH;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,SAAS;
|
|
1
|
+
{"version":3,"file":"TileIndex.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/TileIndex.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAcH;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,SAAS;IAClB,gBAAgB;IACT,KAAK,CAAQ;IACpB,kCAAkC;IAC3B,GAAG,CAAS;IACnB,yCAAyC;IAClC,KAAK,CAAQ;IACpB,qBAAqB;IACd,SAAS,CAAY;IAC5B,yDAAyD;IAClD,UAAU,CAAQ;IACzB,sBAAsB;IACf,UAAU,CAAQ;IACzB,mBAAmB;IACZ,QAAQ,CAAmB;IAClC,2BAA2B;IACpB,UAAU,CAAU;IAE3B;;OAEG;IACH,YAAmB,KAAY,EAAE,KAAY,EAAE,SAAoB,EAAE,UAAiB,EAAE,UAAiB;QACrG,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC;QACtB,IAAI,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC;IAED;;;;OAIG;IACI,IAAI,CAAC,KAAgB;QACxB,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IACtE,CAAC;IAED;;;OAGG;IACI,MAAM;QACT,OAAO,GAAG,GAAG,IAAI,CAAC,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IACvG,CAAC;CACJ;AAhDD,8BAgDC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\n\nimport { ALong } from \"../../system/runtime/ALong\";\nimport { GridIndex } from \"./GridIndex\";\n\n/**\n * Class TileIndex defines a tile index in a pointcloud file.\n *\n * @version 1.0 January 2014\n */\n/** @internal */\nexport class TileIndex {\n /** The level */\n public level: int32;\n /** The unique key of the block */\n public key: string;\n /** The index of the tile in the level */\n public index: int32;\n /** The grid index */\n public gridIndex: GridIndex;\n /** The index of the first point in the tile (derived) */\n public pointIndex: ALong;\n /** The point count */\n public pointCount: int32;\n /** The children */\n public children: Array<TileIndex>;\n /** The last access time */\n public accessTime: float64;\n\n /**\n * Create a new index.\n */\n public constructor(level: int32, index: int32, gridIndex: GridIndex, pointIndex: ALong, pointCount: int32) {\n this.level = level;\n this.index = index;\n this.gridIndex = gridIndex;\n this.pointIndex = pointIndex;\n this.pointCount = pointCount;\n this.children = null;\n this.accessTime = 0.0;\n this.key = (\"L\" + this.level + \",T:\" + this.index);\n }\n\n /**\n * Check if two indexes are the same.\n * @param other another index.\n * @return true if same.\n */\n public same(other: TileIndex): boolean {\n return (other.level == this.level) && (other.index == this.index);\n }\n\n /**\n * Get the unique key of the tile in the pointcloud file.\n * @return the unique key (combines level and grid index).\n */\n public getKey(): string {\n return \"T\" + this.level + \"/\" + this.gridIndex.x + \"/\" + this.gridIndex.y + \"/\" + this.gridIndex.z;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AViewRequest.js","sourceRoot":"","sources":["../../../../src/pointcloud/render/AViewRequest.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAcH;;;;GAIG;AACH,gBAAgB;AAChB,MAAsB,YAAY;IACjC;;OAEG;IACH;IACA,CAAC;CAsBD;AA3BD,oCA2BC","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"AViewRequest.js","sourceRoot":"","sources":["../../../../src/pointcloud/render/AViewRequest.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAcH;;;;GAIG;AACH,gBAAgB;AAChB,MAAsB,YAAY;IACjC;;OAEG;IACH;IACA,CAAC;CAsBD;AA3BD,oCA2BC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.render;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { Bounds } from \"../../spatial/geom/Bounds\";\nimport { TileIndex } from \"../model/TileIndex\";\nimport { Level } from \"./Level\";\n\n/**\n * Class AViewRequest defines a abstract request the render a view.\n *\n * @version 1.0 November 2015\n */\n/** @internal */\nexport abstract class AViewRequest {\n\t/**\n\t * Make a new request.\n\t */\n\tpublic constructor() {\n\t}\n\n\t/**\n\t * Get the frame time.\n\t * @return the frame time.\n\t */\n\tpublic abstract getFrameTime(): float64;\n\n\t/**\n\t * Check if bounds are visible.\n\t * @param bounds the bounds (in model space).\n\t * @return true if visible.\n\t */\n\tpublic abstract isVisibleBox(bounds: Bounds): boolean;\n\n\t/**\n\t * Should a tile be split?\n * @param level the level of the tile.\n * @param tile the tile index.\n\t * @return true if the tile should be split into its children.\n\t */\n\tpublic abstract shouldSplit(level: Level, tile: TileIndex): boolean;\n}\n"]}
|
|
@@ -16,6 +16,12 @@ const IntMap_1 = require("../../system/collection/IntMap");
|
|
|
16
16
|
*/
|
|
17
17
|
/** @internal */
|
|
18
18
|
class Block {
|
|
19
|
+
/** The index of the block */
|
|
20
|
+
_index;
|
|
21
|
+
/** The full list of tiles in the block (can be null if the tile-list has not been loaded) */
|
|
22
|
+
_tileList;
|
|
23
|
+
/** The map of tiles in the block */
|
|
24
|
+
_tileMap;
|
|
19
25
|
/**
|
|
20
26
|
* Create a new block.
|
|
21
27
|
* @param index the index of the block.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Block.js","sourceRoot":"","sources":["../../../../src/pointcloud/render/Block.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAYH,2DAAwD;AAMxD;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,KAAK;
|
|
1
|
+
{"version":3,"file":"Block.js","sourceRoot":"","sources":["../../../../src/pointcloud/render/Block.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAYH,2DAAwD;AAMxD;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,KAAK;IACjB,6BAA6B;IACrB,MAAM,CAAa;IAC3B,6FAA6F;IACrF,SAAS,CAAmB;IACpC,oCAAoC;IAC5B,QAAQ,CAAoC;IAEpD;;;OAGG;IACH,YAAmB,KAAiB;QACnC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACtB,CAAC;IAED;;;OAGG;IACI,aAAa;QACnB,OAAO,IAAI,CAAC,MAAM,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACI,cAAc,CAAC,KAAY;QACjC,OAAO,KAAK,CAAC,YAAY,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAClE,CAAC;IAED;;;;OAIM;IACE,MAAM,CAAC,aAAa,CAAC,YAA+B,EAAE,KAAiB;QAC9E,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE;YAAE,IAAI,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;gBAAE,OAAO;QAClG,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IAED;;;OAGG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OAAO,IAAI,CAAC;QACb,CAAC;QACD,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,QAAQ,CAAC,aAAwB;QACvC,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QACvC,IAAI,KAAK,GAAU,aAAa,CAAC,CAAC,CAAC;QACnC,IAAI,KAAK,GAA8B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAChE,IAAI,KAAK,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAC/B,IAAI,KAAK,GAAU,aAAa,CAAC,CAAC,CAAC;QACnC,IAAI,IAAI,GAAsB,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC/C,IAAI,IAAI,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAC9B,IAAI,KAAK,GAAU,aAAa,CAAC,CAAC,CAAC;QACnC,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;CACD;AA7GD,sBA6GC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.render;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { Bounds } from \"../../spatial/geom/Bounds\";\nimport { AList } from \"../../system/collection/AList\";\nimport { IntMap } from \"../../system/collection/IntMap\";\nimport { BlockIndex } from \"../model/BlockIndex\";\nimport { GridIndex } from \"../model/GridIndex\";\nimport { TileIndex } from \"../model/TileIndex\";\nimport { Level } from \"./Level\";\n\n/**\n * Class Block defines a block of tiles.\n *\n * @version 1.0 November 2015\n */\n/** @internal */\nexport class Block {\n\t/** The index of the block */\n\tprivate _index: BlockIndex;\n\t/** The full list of tiles in the block (can be null if the tile-list has not been loaded) */\n\tprivate _tileList: Array<TileIndex>;\n\t/** The map of tiles in the block */\n\tprivate _tileMap: IntMap<IntMap<IntMap<TileIndex>>>;\n\n\t/**\n\t * Create a new block.\n\t * @param index the index of the block.\n\t */\n\tpublic constructor(index: BlockIndex) {\n\t\tthis._index = index;\n\t\tthis._tileList = null;\n\t\tthis._tileMap = null;\n\t}\n\n\t/**\n\t * Get the index of the block.\n\t * @return the index of the block.\n\t */\n\tpublic getBlockIndex(): BlockIndex {\n\t\treturn this._index;\n\t}\n\n\t/**\n\t * Get the spatial bounds of the block.\n\t * @param level the level to which the block belongs.\n\t * @return the spatial bounds of the block.\n\t */\n\tpublic getBlockBounds(level: Level): Bounds {\n\t\treturn level.getBlockGrid().getCellBounds(this._index.gridIndex);\n\t}\n\n\t/**\n\t * Add a block to the list of blocks to load.\n * @param blocksToLoad the list of blocks to load.\n * @param block the block to add.\n */\n\tprivate static addToLoadList(blocksToLoad: AList<BlockIndex>, block: BlockIndex): void {\n\t\tfor (let i: number = 0; i < blocksToLoad.size(); i++) if (blocksToLoad.get(i).same(block)) return;\n\t\tblocksToLoad.add(block);\n\t}\n\n\t/**\n\t * Set the tiles in the block.\n\t * @param tileList the list of tiles.\n\t */\n\tpublic setTiles(tileList: Array<TileIndex>): void {\n\t\t/* Store the list */\n\t\tthis._tileList = tileList;\n\t\t/* Make the map */\n\t\tthis._tileMap = new IntMap<IntMap<IntMap<TileIndex>>>();\n\t\tfor (let tile of this._tileList) {\n\t\t\tlet tileX: int32 = tile.gridIndex.x;\n\t\t\tlet yzMap: IntMap<IntMap<TileIndex>> = this._tileMap.get(tileX);\n\t\t\tif (yzMap == null) {\n\t\t\t\tyzMap = new IntMap<IntMap<TileIndex>>();\n\t\t\t\tthis._tileMap.set(tileX, yzMap);\n\t\t\t}\n\t\t\tlet tileY: int32 = tile.gridIndex.y;\n\t\t\tlet zMap: IntMap<TileIndex> = yzMap.get(tileY);\n\t\t\tif (zMap == null) {\n\t\t\t\tzMap = new IntMap<TileIndex>();\n\t\t\t\tyzMap.set(tileY, zMap);\n\t\t\t}\n\t\t\tlet tileZ: int32 = tile.gridIndex.z;\n\t\t\tzMap.set(tileZ, tile);\n\t\t}\n\t}\n\n\t/**\n\t * Have the tiles been set?\n\t * @return true if the tiles have been set.\n\t */\n\tpublic hasTiles(): boolean {\n\t\treturn (this._tileList != null);\n\t}\n\n\t/**\n\t * List all tiles.\n * @param blocksToLoad the list of blocks to load.\n\t * @return all tiles (null if tiles are not loaded).\n\t */\n\tpublic getTiles(blocksToLoad: AList<BlockIndex>): Array<TileIndex> {\n\t\tif (this._tileList == null) {\n\t\t\tBlock.addToLoadList(blocksToLoad, this._index);\n\t\t\treturn null;\n\t\t}\n\t\treturn this._tileList;\n\t}\n\n\t/**\n\t * Find a tile.\n * @param tileGridIndex the grid index of the tile.\n\t * @return the tile (null if not found).\n\t */\n\tpublic findTile(tileGridIndex: GridIndex): TileIndex {\n\t\tif (this._tileMap == null) return null;\n\t\tlet tileX: int32 = tileGridIndex.x;\n\t\tlet yzMap: IntMap<IntMap<TileIndex>> = this._tileMap.get(tileX);\n\t\tif (yzMap == null) return null;\n\t\tlet tileY: int32 = tileGridIndex.y;\n\t\tlet zMap: IntMap<TileIndex> = yzMap.get(tileY);\n\t\tif (zMap == null) return null;\n\t\tlet tileZ: int32 = tileGridIndex.z;\n\t\treturn zMap.get(tileZ);\n\t}\n}\n"]}
|