@itwin/core-orbitgt 5.5.0-dev.2 → 5.5.0-dev.5
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 +6 -1
- package/lib/cjs/core-orbitgt.js.map +1 -1
- 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.map +1 -1
- package/lib/cjs/pointcloud/format/opc/ContainerFile.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/ContainerFilePart.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileAccess.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/GeometryReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/GeometryRecord.js.map +1 -1
- 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.map +1 -1
- package/lib/cjs/pointcloud/format/opc/TileRecord.js.map +1 -1
- package/lib/cjs/pointcloud/model/AttributeTypes.js.map +1 -1
- package/lib/cjs/pointcloud/model/AttributeValue.js.map +1 -1
- package/lib/cjs/pointcloud/model/BlockIndex.js.map +1 -1
- package/lib/cjs/pointcloud/model/CloudPoint.js.map +1 -1
- package/lib/cjs/pointcloud/model/Grid.js.map +1 -1
- package/lib/cjs/pointcloud/model/GridIndex.js.map +1 -1
- 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.map +1 -1
- package/lib/cjs/pointcloud/model/PointDataRaw.js.map +1 -1
- package/lib/cjs/pointcloud/model/ReadRequest.js.map +1 -1
- package/lib/cjs/pointcloud/model/StandardAttributes.js.map +1 -1
- 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.map +1 -1
- package/lib/cjs/pointcloud/render/DataManager.js.map +1 -1
- package/lib/cjs/pointcloud/render/FrameData.js.map +1 -1
- package/lib/cjs/pointcloud/render/Level.js.map +1 -1
- package/lib/cjs/pointcloud/render/TileLoadSorter.js.map +1 -1
- 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.map +1 -1
- package/lib/cjs/spatial/ecrs/Axis.js.map +1 -1
- package/lib/cjs/spatial/ecrs/CRS.js.map +1 -1
- package/lib/cjs/spatial/ecrs/CoordinateSystem.js.map +1 -1
- package/lib/cjs/spatial/ecrs/DataFileUnit.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Datum.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Ellipsoid.js.map +1 -1
- package/lib/cjs/spatial/ecrs/OnlineEngine.js.map +1 -1
- package/lib/cjs/spatial/ecrs/OnlineRegistry.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Operation.js.map +1 -1
- package/lib/cjs/spatial/ecrs/OperationMethod.js.map +1 -1
- package/lib/cjs/spatial/ecrs/ParameterValue.js.map +1 -1
- package/lib/cjs/spatial/ecrs/ParameterValueList.js.map +1 -1
- package/lib/cjs/spatial/ecrs/PrimeMeridian.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Registry.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Transform.js.map +1 -1
- 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.map +1 -1
- package/lib/cjs/spatial/ecrs/WellKnownTextNode.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/transformation/PositionVector.js.map +1 -1
- package/lib/cjs/spatial/geom/Bounds.js.map +1 -1
- package/lib/cjs/spatial/geom/Coordinate.js.map +1 -1
- package/lib/cjs/spatial/geom/Line.js.map +1 -1
- package/lib/cjs/spatial/geom/Transform.js.map +1 -1
- package/lib/cjs/system/buffer/ABuffer.js.map +1 -1
- 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.map +1 -1
- package/lib/cjs/system/buffer/Uint8Buffer.js.map +1 -1
- package/lib/cjs/system/collection/AList.js.map +1 -1
- package/lib/cjs/system/collection/IntMap.js.map +1 -1
- package/lib/cjs/system/collection/StringMap.js.map +1 -1
- 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.map +1 -1
- package/lib/cjs/system/runtime/ASystem.js.map +1 -1
- 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.map +1 -1
- package/lib/cjs/system/runtime/Numbers.js.map +1 -1
- 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.map +1 -1
- package/lib/cjs/system/storage/CachedItem.js.map +1 -1
- package/lib/cjs/system/storage/ContentLoader.js.map +1 -1
- package/lib/cjs/system/storage/FileContent.js.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- package/lib/esm/pointcloud/format/opc/AttributeReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/BlockRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/ContainerFile.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/ContainerFilePart.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/DirectoryReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileAccess.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/GeometryReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/GeometryRecord.js.map +1 -1
- 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.map +1 -1
- package/lib/esm/pointcloud/format/opc/TileRecord.js.map +1 -1
- package/lib/esm/pointcloud/model/AttributeTypes.js.map +1 -1
- package/lib/esm/pointcloud/model/AttributeValue.js.map +1 -1
- package/lib/esm/pointcloud/model/BlockIndex.js.map +1 -1
- package/lib/esm/pointcloud/model/CloudPoint.js.map +1 -1
- package/lib/esm/pointcloud/model/Grid.js.map +1 -1
- package/lib/esm/pointcloud/model/GridIndex.js.map +1 -1
- 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.map +1 -1
- package/lib/esm/pointcloud/model/PointDataRaw.js.map +1 -1
- package/lib/esm/pointcloud/model/ReadRequest.js.map +1 -1
- package/lib/esm/pointcloud/model/StandardAttributes.js.map +1 -1
- 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.map +1 -1
- package/lib/esm/pointcloud/render/DataManager.js.map +1 -1
- package/lib/esm/pointcloud/render/FrameData.js.map +1 -1
- package/lib/esm/pointcloud/render/Level.js.map +1 -1
- package/lib/esm/pointcloud/render/TileLoadSorter.js.map +1 -1
- 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.map +1 -1
- package/lib/esm/spatial/ecrs/Axis.js.map +1 -1
- package/lib/esm/spatial/ecrs/CRS.js.map +1 -1
- package/lib/esm/spatial/ecrs/CoordinateSystem.js.map +1 -1
- package/lib/esm/spatial/ecrs/DataFileUnit.js.map +1 -1
- package/lib/esm/spatial/ecrs/Datum.js.map +1 -1
- package/lib/esm/spatial/ecrs/Ellipsoid.js.map +1 -1
- package/lib/esm/spatial/ecrs/OnlineEngine.js.map +1 -1
- package/lib/esm/spatial/ecrs/OnlineRegistry.js.map +1 -1
- package/lib/esm/spatial/ecrs/Operation.js.map +1 -1
- package/lib/esm/spatial/ecrs/OperationMethod.js.map +1 -1
- package/lib/esm/spatial/ecrs/ParameterValue.js.map +1 -1
- package/lib/esm/spatial/ecrs/ParameterValueList.js.map +1 -1
- package/lib/esm/spatial/ecrs/PrimeMeridian.js.map +1 -1
- package/lib/esm/spatial/ecrs/Registry.js.map +1 -1
- package/lib/esm/spatial/ecrs/Transform.js.map +1 -1
- 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.map +1 -1
- package/lib/esm/spatial/ecrs/WellKnownTextNode.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/transformation/PositionVector.js.map +1 -1
- package/lib/esm/spatial/geom/Bounds.js.map +1 -1
- package/lib/esm/spatial/geom/Coordinate.js.map +1 -1
- package/lib/esm/spatial/geom/Line.js.map +1 -1
- package/lib/esm/spatial/geom/Transform.js.map +1 -1
- package/lib/esm/system/buffer/ABuffer.js.map +1 -1
- 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.map +1 -1
- package/lib/esm/system/buffer/Uint8Buffer.js.map +1 -1
- package/lib/esm/system/collection/AList.js.map +1 -1
- package/lib/esm/system/collection/IntMap.js.map +1 -1
- package/lib/esm/system/collection/StringMap.js.map +1 -1
- 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.map +1 -1
- package/lib/esm/system/runtime/ASystem.js.map +1 -1
- 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.map +1 -1
- package/lib/esm/system/runtime/Numbers.js.map +1 -1
- 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.map +1 -1
- package/lib/esm/system/storage/CachedItem.js.map +1 -1
- package/lib/esm/system/storage/ContentLoader.js.map +1 -1
- package/lib/esm/system/storage/FileContent.js.map +1 -1
- 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.map +1 -1
- package/lib/esm/system/storage/UrlFS.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudPoint.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/CloudPoint.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAUH,8DAA2D;AAC3D,sDAAmD;AACnD,0DAAuD;AACvD,0DAAuD;AACvD,qDAAkD;AAClD,qDAAkD;AAElD;;;;GAIG;AACH,gB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AO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;QACzF,iBAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,SAAS,GAAG,iBAAO,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAC/E,iBAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;QAClE,iBAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5D,iBAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;QAChE,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI;YAAE,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,EAAE;gBAAE,iBAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACtM,CAAC;;AAxVL,gCAyVC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { Coordinate } from \"../../spatial/geom/Coordinate\";\nimport { ALong } from \"../../system/runtime/ALong\";\nimport { Message } from \"../../system/runtime/Message\";\nimport { Numbers } from \"../../system/runtime/Numbers\";\nimport { AttributeValue } from \"./AttributeValue\";\nimport { PointAttribute } from \"./PointAttribute\";\n\n/**\n * Class CloudPoint defines a point in the point cloud.\n *\n * @version 1.0 November 2011\n */\n/** @internal */\nexport class CloudPoint {\n /** The name of this module */\n private static readonly MODULE: string = \"CloudPoint\";\n\n /** The index */\n private _index: ALong;\n /** The x position */\n private _x: float64;\n /** The y position */\n private _y: float64;\n /** The z position */\n private _z: float64;\n /** The ARGB color */\n private _color: int32;\n /** The intensity */\n private _intensity: int32;\n /** The weight */\n private _weight: int32;\n /** Has the point been selected? */\n private _selected: boolean;\n\n /** The definitions of the extra attributes */\n private _attributes: Array<PointAttribute>;\n /** The values of the extra attributes */\n private _values: Array<AttributeValue>;\n\n /**\n * Create a new point.\n */\n public constructor() {\n this._index = ALong.ZERO;\n this._x = 0.0;\n this._y = 0.0;\n this._z = 0.0;\n this._color = 0;\n this._intensity = 0;\n this._weight = 0;\n this._selected = false;\n this._attributes = null;\n this._values = null;\n }\n\n /**\n * Create a new point.\n * @param index the index of the point.\n * @param x the x position.\n * @param y the y position.\n * @param z the z position.\n * @param color the ARGB color.\n * @param intensity the intensity.\n * @return the new point.\n */\n public static create(index: ALong, x: float64, y: float64, z: float64, color: int32, intensity: int32): CloudPoint {\n let point: CloudPoint = new CloudPoint();\n point._index = index;\n point._x = x;\n point._y = y;\n point._z = z;\n point._color = color;\n point._intensity = intensity;\n return point;\n }\n\n /**\n * Create a new point.\n * @param attributes the definitions of the attributes.\n * @return the new point.\n */\n public static createWithAttributes(attributes: Array<PointAttribute>): CloudPoint {\n let point: CloudPoint = new CloudPoint();\n point._attributes = attributes;\n if (attributes != null) {\n point._values = new Array<AttributeValue>(attributes.length);\n for (let i: number = 0; i < attributes.length; i++) point._values[i] = new AttributeValue();\n }\n return point;\n }\n\n /**\n * Clear the point.\n */\n public clear(): void {\n this._index = ALong.ZERO;\n this._x = 0.0;\n this._y = 0.0;\n this._z = 0.0;\n this._color = 0;\n this._intensity = 0;\n this._weight = 0;\n this._selected = false;\n }\n\n /**\n * Get the index.\n * @return the index.\n */\n public getIndex(): ALong {\n return this._index;\n }\n\n /**\n * Set the index.\n * @param index the index.\n */\n public setIndex(index: ALong): void {\n this._index = index;\n }\n\n /**\n * Get the x position.\n * @return the x position.\n */\n public getX(): float64 {\n return this._x;\n }\n\n /**\n * Set the x position.\n * @param x the new x position.\n */\n public setX(x: float64): void {\n this._x = x;\n }\n\n /**\n * Get the y position.\n * @return the y position.\n */\n public getY(): float64 {\n return this._y;\n }\n\n /**\n * Set the y position.\n * @param y the new y position.\n */\n public setY(y: float64): void {\n this._y = y;\n }\n\n /**\n * Get the z position.\n * @return the z position.\n */\n public getZ(): float64 {\n return this._z;\n }\n\n /**\n * Set the z position.\n * @param z the new z position.\n */\n public setZ(z: float64): void {\n this._z = z;\n }\n\n /**\n * Get the ARGB color.\n * @return the color.\n */\n public getColor(): int32 {\n return this._color;\n }\n\n /**\n * Set the color.\n * @param color the new color.\n */\n public setColor(color: int32): void {\n this._color = color;\n }\n\n /**\n * Get the intensity.\n * @return the intensity.\n */\n public getIntensity(): int32 {\n return this._intensity;\n }\n\n /**\n * Set the intensity.\n * @param intensity the new intensity.\n */\n public setIntensity(intensity: int32): void {\n this._intensity = intensity;\n }\n\n /**\n * Get the weight.\n * @return the weight.\n */\n public getWeight(): int32 {\n return this._weight;\n }\n\n /**\n * Set the weight.\n * @param weight the weight.\n */\n public setWeight(weight: int32): void {\n this._weight = weight;\n }\n\n /**\n * Has the point been selected?\n * @return true if selected.\n */\n public isSelected(): boolean {\n return this._selected;\n }\n\n /**\n * Select the point.\n * @param selected true if the point has been selected.\n */\n public setSelected(selected: boolean): void {\n this._selected = selected;\n }\n\n /**\n * Get the attribute definitions.\n * @return the attribute definitions.\n */\n public getAttributes(): Array<PointAttribute> {\n return this._attributes;\n }\n\n /**\n * Get an attribute definitions.\n * @param index the index of the attribute.\n * @return an attribute definitions.\n */\n public getAttribute(index: int32): PointAttribute {\n return this._attributes[index];\n }\n\n /**\n * Get the attribute values.\n * @return the attribute values.\n */\n public getAttributeValues(): Array<AttributeValue> {\n return this._values;\n }\n\n /**\n * Get an attribute value.\n * @param index the index of the value.\n * @return the value.\n */\n public getAttributeValue(index: int32): AttributeValue {\n return this._values[index];\n }\n\n /**\n * Get an attribute value.\n * @param attributeName the name of the attribute.\n * @return the value.\n */\n public getNamedAttributeValue(attributeName: string): AttributeValue {\n let index: int32 = PointAttribute.indexOfName(this._attributes, attributeName);\n return (index < 0) ? (null) : this._values[index];\n }\n\n /**\n * Set the attributes.\n * @param attributes the definitions of the attributes.\n * @param values the values of the attributes.\n */\n public setAttributes(attributes: Array<PointAttribute>, values: Array<AttributeValue>): void {\n this._attributes = attributes;\n this._values = values;\n }\n\n /**\n * Copy the values to another point.\n * @param other the other point.\n */\n public copyTo(other: CloudPoint): void {\n other._index = this._index;\n other._x = this._x;\n other._y = this._y;\n other._z = this._z;\n other._color = this._color;\n other._intensity = this._intensity;\n other._weight = this._weight;\n other._selected = this._selected;\n other._attributes = this._attributes;\n other._values = AttributeValue.copyList(this._values);\n }\n\n /**\n * Make a copy.\n * @return a copy.\n */\n public copy(): CloudPoint {\n let copy: CloudPoint = new CloudPoint();\n this.copyTo(copy);\n return copy;\n }\n\n /**\n * Get the distance to another point.\n * @param other the other point.\n * @return the distance.\n */\n public getDistance(other: CloudPoint): float64 {\n let dx: float64 = (other._x - this._x);\n let dy: float64 = (other._y - this._y);\n let dz: float64 = (other._z - this._z);\n return Math.sqrt(dx * dx + dy * dy + dz * dz);\n }\n\n /**\n * Get the square distance to another point.\n * @param other the other point.\n * @return the square distance.\n */\n public getSquareDistance(other: CloudPoint): float64 {\n let dx: float64 = (other._x - this._x);\n let dy: float64 = (other._y - this._y);\n let dz: float64 = (other._z - this._z);\n return (dx * dx + dy * dy + dz * dz);\n }\n\n /**\n * Get a coordinate.\n * @return a coordinate.\n */\n public getCoordinate(): Coordinate {\n return new Coordinate(this._x, this._y, this._z);\n }\n\n /**\n * Print the point.\n */\n public print(): void {\n Message.print(CloudPoint.MODULE, \"Index: \" + this._index);\n Message.print(CloudPoint.MODULE, \"Position: \" + this._x + \",\" + this._y + \",\" + this._z);\n Message.print(CloudPoint.MODULE, \"Color: \" + Numbers.rgbToString(this._color));\n Message.print(CloudPoint.MODULE, \"Intensity: \" + this._intensity);\n Message.print(CloudPoint.MODULE, \"Weight: \" + this._weight);\n Message.print(CloudPoint.MODULE, \"Selected? \" + this._selected);\n if (this._attributes != null) for (let i: number = 0; i < this._attributes.length; i++) Message.print(CloudPoint.MODULE, \"Attribute '\" + this._attributes[i].getName() + \"': \" + this._values[i]);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"CloudPoint.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/CloudPoint.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAUH,8DAA2D;AAC3D,sDAAmD;AACnD,0DAAuD;AACvD,0DAAuD;AACvD,qDAAkD;AAClD,qDAAkD;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,UAAU;IACnB,8BAA8B;IACtB,MAAM,CAAU,MAAM,GAAW,YAAY,CAAC;IAEtD,gBAAgB;IACR,MAAM,CAAQ;IACtB,qBAAqB;IACb,EAAE,CAAU;IACpB,qBAAqB;IACb,EAAE,CAAU;IACpB,qBAAqB;IACb,EAAE,CAAU;IACpB,qBAAqB;IACb,MAAM,CAAQ;IACtB,oBAAoB;IACZ,UAAU,CAAQ;IAC1B,iBAAiB;IACT,OAAO,CAAQ;IACvB,mCAAmC;IAC3B,SAAS,CAAU;IAE3B,8CAA8C;IACtC,WAAW,CAAwB;IAC3C,yCAAyC;IACjC,OAAO,CAAwB;IAEvC;;OAEG;IACH;QACI,IAAI,CAAC,MAAM,GAAG,aAAK,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,EAAE,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AK,CAAC,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;QAChE,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI;YAAE,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,EAAE;gBAAE,iBAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACtM,CAAC;;AAxVL,gCAyVC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Coordinate } from \"../../spatial/geom/Coordinate\";\r\nimport { ALong } from \"../../system/runtime/ALong\";\r\nimport { Message } from \"../../system/runtime/Message\";\r\nimport { Numbers } from \"../../system/runtime/Numbers\";\r\nimport { AttributeValue } from \"./AttributeValue\";\r\nimport { PointAttribute } from \"./PointAttribute\";\r\n\r\n/**\r\n * Class CloudPoint defines a point in the point cloud.\r\n *\r\n * @version 1.0 November 2011\r\n */\r\n/** @internal */\r\nexport class CloudPoint {\r\n /** The name of this module */\r\n private static readonly MODULE: string = \"CloudPoint\";\r\n\r\n /** The index */\r\n private _index: ALong;\r\n /** The x position */\r\n private _x: float64;\r\n /** The y position */\r\n private _y: float64;\r\n /** The z position */\r\n private _z: float64;\r\n /** The ARGB color */\r\n private _color: int32;\r\n /** The intensity */\r\n private _intensity: int32;\r\n /** The weight */\r\n private _weight: int32;\r\n /** Has the point been selected? */\r\n private _selected: boolean;\r\n\r\n /** The definitions of the extra attributes */\r\n private _attributes: Array<PointAttribute>;\r\n /** The values of the extra attributes */\r\n private _values: Array<AttributeValue>;\r\n\r\n /**\r\n * Create a new point.\r\n */\r\n public constructor() {\r\n this._index = ALong.ZERO;\r\n this._x = 0.0;\r\n this._y = 0.0;\r\n this._z = 0.0;\r\n this._color = 0;\r\n this._intensity = 0;\r\n this._weight = 0;\r\n this._selected = false;\r\n this._attributes = null;\r\n this._values = null;\r\n }\r\n\r\n /**\r\n * Create a new point.\r\n * @param index the index of the point.\r\n * @param x the x position.\r\n * @param y the y position.\r\n * @param z the z position.\r\n * @param color the ARGB color.\r\n * @param intensity the intensity.\r\n * @return the new point.\r\n */\r\n public static create(index: ALong, x: float64, y: float64, z: float64, color: int32, intensity: int32): CloudPoint {\r\n let point: CloudPoint = new CloudPoint();\r\n point._index = index;\r\n point._x = x;\r\n point._y = y;\r\n point._z = z;\r\n point._color = color;\r\n point._intensity = intensity;\r\n return point;\r\n }\r\n\r\n /**\r\n * Create a new point.\r\n * @param attributes the definitions of the attributes.\r\n * @return the new point.\r\n */\r\n public static createWithAttributes(attributes: Array<PointAttribute>): CloudPoint {\r\n let point: CloudPoint = new CloudPoint();\r\n point._attributes = attributes;\r\n if (attributes != null) {\r\n point._values = new Array<AttributeValue>(attributes.length);\r\n for (let i: number = 0; i < attributes.length; i++) point._values[i] = new AttributeValue();\r\n }\r\n return point;\r\n }\r\n\r\n /**\r\n * Clear the point.\r\n */\r\n public clear(): void {\r\n this._index = ALong.ZERO;\r\n this._x = 0.0;\r\n this._y = 0.0;\r\n this._z = 0.0;\r\n this._color = 0;\r\n this._intensity = 0;\r\n this._weight = 0;\r\n this._selected = false;\r\n }\r\n\r\n /**\r\n * Get the index.\r\n * @return the index.\r\n */\r\n public getIndex(): ALong {\r\n return this._index;\r\n }\r\n\r\n /**\r\n * Set the index.\r\n * @param index the index.\r\n */\r\n public setIndex(index: ALong): void {\r\n this._index = index;\r\n }\r\n\r\n /**\r\n * Get the x position.\r\n * @return the x position.\r\n */\r\n public getX(): float64 {\r\n return this._x;\r\n }\r\n\r\n /**\r\n * Set the x position.\r\n * @param x the new x position.\r\n */\r\n public setX(x: float64): void {\r\n this._x = x;\r\n }\r\n\r\n /**\r\n * Get the y position.\r\n * @return the y position.\r\n */\r\n public getY(): float64 {\r\n return this._y;\r\n }\r\n\r\n /**\r\n * Set the y position.\r\n * @param y the new y position.\r\n */\r\n public setY(y: float64): void {\r\n this._y = y;\r\n }\r\n\r\n /**\r\n * Get the z position.\r\n * @return the z position.\r\n */\r\n public getZ(): float64 {\r\n return this._z;\r\n }\r\n\r\n /**\r\n * Set the z position.\r\n * @param z the new z position.\r\n */\r\n public setZ(z: float64): void {\r\n this._z = z;\r\n }\r\n\r\n /**\r\n * Get the ARGB color.\r\n * @return the color.\r\n */\r\n public getColor(): int32 {\r\n return this._color;\r\n }\r\n\r\n /**\r\n * Set the color.\r\n * @param color the new color.\r\n */\r\n public setColor(color: int32): void {\r\n this._color = color;\r\n }\r\n\r\n /**\r\n * Get the intensity.\r\n * @return the intensity.\r\n */\r\n public getIntensity(): int32 {\r\n return this._intensity;\r\n }\r\n\r\n /**\r\n * Set the intensity.\r\n * @param intensity the new intensity.\r\n */\r\n public setIntensity(intensity: int32): void {\r\n this._intensity = intensity;\r\n }\r\n\r\n /**\r\n * Get the weight.\r\n * @return the weight.\r\n */\r\n public getWeight(): int32 {\r\n return this._weight;\r\n }\r\n\r\n /**\r\n * Set the weight.\r\n * @param weight the weight.\r\n */\r\n public setWeight(weight: int32): void {\r\n this._weight = weight;\r\n }\r\n\r\n /**\r\n * Has the point been selected?\r\n * @return true if selected.\r\n */\r\n public isSelected(): boolean {\r\n return this._selected;\r\n }\r\n\r\n /**\r\n * Select the point.\r\n * @param selected true if the point has been selected.\r\n */\r\n public setSelected(selected: boolean): void {\r\n this._selected = selected;\r\n }\r\n\r\n /**\r\n * Get the attribute definitions.\r\n * @return the attribute definitions.\r\n */\r\n public getAttributes(): Array<PointAttribute> {\r\n return this._attributes;\r\n }\r\n\r\n /**\r\n * Get an attribute definitions.\r\n * @param index the index of the attribute.\r\n * @return an attribute definitions.\r\n */\r\n public getAttribute(index: int32): PointAttribute {\r\n return this._attributes[index];\r\n }\r\n\r\n /**\r\n * Get the attribute values.\r\n * @return the attribute values.\r\n */\r\n public getAttributeValues(): Array<AttributeValue> {\r\n return this._values;\r\n }\r\n\r\n /**\r\n * Get an attribute value.\r\n * @param index the index of the value.\r\n * @return the value.\r\n */\r\n public getAttributeValue(index: int32): AttributeValue {\r\n return this._values[index];\r\n }\r\n\r\n /**\r\n * Get an attribute value.\r\n * @param attributeName the name of the attribute.\r\n * @return the value.\r\n */\r\n public getNamedAttributeValue(attributeName: string): AttributeValue {\r\n let index: int32 = PointAttribute.indexOfName(this._attributes, attributeName);\r\n return (index < 0) ? (null) : this._values[index];\r\n }\r\n\r\n /**\r\n * Set the attributes.\r\n * @param attributes the definitions of the attributes.\r\n * @param values the values of the attributes.\r\n */\r\n public setAttributes(attributes: Array<PointAttribute>, values: Array<AttributeValue>): void {\r\n this._attributes = attributes;\r\n this._values = values;\r\n }\r\n\r\n /**\r\n * Copy the values to another point.\r\n * @param other the other point.\r\n */\r\n public copyTo(other: CloudPoint): void {\r\n other._index = this._index;\r\n other._x = this._x;\r\n other._y = this._y;\r\n other._z = this._z;\r\n other._color = this._color;\r\n other._intensity = this._intensity;\r\n other._weight = this._weight;\r\n other._selected = this._selected;\r\n other._attributes = this._attributes;\r\n other._values = AttributeValue.copyList(this._values);\r\n }\r\n\r\n /**\r\n * Make a copy.\r\n * @return a copy.\r\n */\r\n public copy(): CloudPoint {\r\n let copy: CloudPoint = new CloudPoint();\r\n this.copyTo(copy);\r\n return copy;\r\n }\r\n\r\n /**\r\n * Get the distance to another point.\r\n * @param other the other point.\r\n * @return the distance.\r\n */\r\n public getDistance(other: CloudPoint): float64 {\r\n let dx: float64 = (other._x - this._x);\r\n let dy: float64 = (other._y - this._y);\r\n let dz: float64 = (other._z - this._z);\r\n return Math.sqrt(dx * dx + dy * dy + dz * dz);\r\n }\r\n\r\n /**\r\n * Get the square distance to another point.\r\n * @param other the other point.\r\n * @return the square distance.\r\n */\r\n public getSquareDistance(other: CloudPoint): float64 {\r\n let dx: float64 = (other._x - this._x);\r\n let dy: float64 = (other._y - this._y);\r\n let dz: float64 = (other._z - this._z);\r\n return (dx * dx + dy * dy + dz * dz);\r\n }\r\n\r\n /**\r\n * Get a coordinate.\r\n * @return a coordinate.\r\n */\r\n public getCoordinate(): Coordinate {\r\n return new Coordinate(this._x, this._y, this._z);\r\n }\r\n\r\n /**\r\n * Print the point.\r\n */\r\n public print(): void {\r\n Message.print(CloudPoint.MODULE, \"Index: \" + this._index);\r\n Message.print(CloudPoint.MODULE, \"Position: \" + this._x + \",\" + this._y + \",\" + this._z);\r\n Message.print(CloudPoint.MODULE, \"Color: \" + Numbers.rgbToString(this._color));\r\n Message.print(CloudPoint.MODULE, \"Intensity: \" + this._intensity);\r\n Message.print(CloudPoint.MODULE, \"Weight: \" + this._weight);\r\n Message.print(CloudPoint.MODULE, \"Selected? \" + this._selected);\r\n if (this._attributes != null) for (let i: number = 0; i < this._attributes.length; i++) Message.print(CloudPoint.MODULE, \"Attribute '\" + this._attributes[i].getName() + \"': \" + this._values[i]);\r\n }\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/Grid.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAUH,sDAAmD;AACnD,8DAA2D;AAC3D,0DAAuD;AACvD,2CAAwC;AAExC;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,IAAI;IACb,mBAAmB;IACZ,EAAE,CAAa;IACtB,sBAAsB;IACf,IAAI,CAAa;IAExB;;;;;;;;OAQG;IACH,YAAmB,EAAc,EA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CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;IACxJ,CAAC;CACJ;AA1HD,oBA0HC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { Bounds } from \"../../spatial/geom/Bounds\";\nimport { Coordinate } from \"../../spatial/geom/Coordinate\";\nimport { Numbers } from \"../../system/runtime/Numbers\";\nimport { GridIndex } from \"./GridIndex\";\n\n/**\n * Class Grid defines an infinite 3D grid of cells.\n *\n * @version 1.0 January 2012\n */\n/** @internal */\nexport class Grid {\n /** The x origin */\n public p0: Coordinate;\n /** The cell X size */\n public size: Coordinate;\n\n /**\n * Create a new grid.\n * @param x0 the x origin.\n * @param y0 the y origin.\n * @param z0 the z origin.\n * @param sizeX the cell X size.\n * @param sizeY the cell Y size.\n * @param sizeZ the cell Z size.\n */\n public constructor(p0: Coordinate, size: Coordinate) {\n this.p0 = p0;\n this.size = size;\n }\n\n /**\n * Get the cell index of an X position.\n * @param x the x position.\n * @return the cell index.\n */\n public getCellX(x: float64): float64 {\n return (x - this.p0.x) / this.size.x;\n }\n\n /**\n * Get the cell index of a Y position.\n * @param y the y position.\n * @return the cell index.\n */\n public getCellY(y: float64): float64 {\n return (y - this.p0.y) / this.size.y;\n }\n\n /**\n * Get the cell index of a Z position.\n * @param z the z position.\n * @return the cell index.\n */\n public getCellZ(z: float64): float64 {\n return (z - this.p0.z) / this.size.z;\n }\n\n /**\n * Get the cell index of a position.\n * @param position the position.\n * @param cellIndex the cell index.\n */\n public getCellIndexTo(position: Coordinate, cellIndex: GridIndex): GridIndex {\n cellIndex.x = Numbers.intFloor((position.x - this.p0.x) / this.size.x);\n cellIndex.y = Numbers.intFloor((position.y - this.p0.y) / this.size.y);\n cellIndex.z = Numbers.intFloor((position.z - this.p0.z) / this.size.z);\n return cellIndex;\n }\n\n /**\n * Get the cell index of a position.\n * @param position the position.\n * @return the cell index.\n */\n public getCellIndex(position: Coordinate): GridIndex {\n return this.getCellIndexTo(position, new GridIndex(0, 0, 0));\n }\n\n /**\n * Get the center point of a cell.\n * @param cellIndex the index of the cell.\n * @return the center point.\n */\n public getCellCenter(cellIndex: GridIndex): Coordinate {\n let cx: float64 = this.p0.x + (cellIndex.x + 0.5) * this.size.x;\n let cy: float64 = this.p0.y + (cellIndex.y + 0.5) * this.size.y;\n let cz: float64 = this.p0.z + (cellIndex.z + 0.5) * this.size.z;\n return new Coordinate(cx, cy, cz);\n }\n\n /**\n * Get the bounds of a cell.\n * @param cellIndex the index of the cell.\n * @return the bounds.\n */\n public getCellBounds(cellIndex: GridIndex): Bounds {\n let x0: float64 = this.p0.x + (cellIndex.x) * this.size.x;\n let y0: float64 = this.p0.y + (cellIndex.y) * this.size.y;\n let z0: float64 = this.p0.z + (cellIndex.z) * this.size.z;\n let bounds: Bounds = new Bounds();\n bounds.addXYZ(x0, y0, z0);\n bounds.addXYZ(x0 + this.size.x, y0 + this.size.y, z0 + this.size.z);\n return bounds;\n }\n\n /**\n * Scale the grid.\n * @param scale the scale factor.\n * @return the scaled grid.\n */\n public scale(scale: float64): Grid {\n return new Grid(new Coordinate(this.p0.x, this.p0.y, this.p0.z), new Coordinate(scale * this.size.x, scale * this.size.y, scale * this.size.z));\n }\n\n /**\n * Move the grid.\n * @param dx the x offset.\n * @param dy the y offset.\n * @param dz the z offset.\n * @return the scaled grid.\n */\n public scale3(dx: float64, dy: float64, dz: float64): Grid {\n return new Grid(new Coordinate(this.p0.x + dx, this.p0.y + dy, this.p0.z + dz), new Coordinate(this.size.x, this.size.y, this.size.z));\n }\n\n /**\n * The standard toString method.\n * @see Object#toString\n */\n public toString(): string {\n return \"[Grid:x0=\" + this.p0.x + \",y0=\" + this.p0.y + \",z0=\" + this.p0.z + \",sx=\" + this.size.x + \",sy=\" + this.size.y + \",sz=\" + this.size.z + \"]\";\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Grid.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/Grid.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAUH,sDAAmD;AACnD,8DAA2D;AAC3D,0DAAuD;AACvD,2CAAwC;AAExC;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,IAAI;IACb,mBAAmB;IACZ,EAAE,CAAa;IACtB,sBAAsB;IACf,IAAI,CAAa;IAExB;;;;;;;;OAQG;IACH,YAAmB,EAAc,EAAE,IAAgB;QAC/C,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED;;;;OAIG;IACI,QAAQ,CAAC,CAAU;QACtB,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACzC,CAAC;IAED;;;;OAIG;IACI,QAAQ,CAAC,CAAU;QACtB,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACzC,CAAC;IAED;;;;OAIG;IACI,QAAQ,CAAC,CAAU;QACtB,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACzC,CAAC;IAED;;;;OAIG;IACI,cAAc,CAAC,QAAoB,EAAE,SAAoB;QAC5D,SAAS,CAAC,CAAC,GAAG,iBAAO,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAA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,IAAI,uBAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,uBAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3I,CAAC;IAED;;;OAGG;IACI,QAAQ;QACX,OAAO,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;IACxJ,CAAC;CACJ;AA1HD,oBA0HC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Bounds } from \"../../spatial/geom/Bounds\";\r\nimport { Coordinate } from \"../../spatial/geom/Coordinate\";\r\nimport { Numbers } from \"../../system/runtime/Numbers\";\r\nimport { GridIndex } from \"./GridIndex\";\r\n\r\n/**\r\n * Class Grid defines an infinite 3D grid of cells.\r\n *\r\n * @version 1.0 January 2012\r\n */\r\n/** @internal */\r\nexport class Grid {\r\n /** The x origin */\r\n public p0: Coordinate;\r\n /** The cell X size */\r\n public size: Coordinate;\r\n\r\n /**\r\n * Create a new grid.\r\n * @param x0 the x origin.\r\n * @param y0 the y origin.\r\n * @param z0 the z origin.\r\n * @param sizeX the cell X size.\r\n * @param sizeY the cell Y size.\r\n * @param sizeZ the cell Z size.\r\n */\r\n public constructor(p0: Coordinate, size: Coordinate) {\r\n this.p0 = p0;\r\n this.size = size;\r\n }\r\n\r\n /**\r\n * Get the cell index of an X position.\r\n * @param x the x position.\r\n * @return the cell index.\r\n */\r\n public getCellX(x: float64): float64 {\r\n return (x - this.p0.x) / this.size.x;\r\n }\r\n\r\n /**\r\n * Get the cell index of a Y position.\r\n * @param y the y position.\r\n * @return the cell index.\r\n */\r\n public getCellY(y: float64): float64 {\r\n return (y - this.p0.y) / this.size.y;\r\n }\r\n\r\n /**\r\n * Get the cell index of a Z position.\r\n * @param z the z position.\r\n * @return the cell index.\r\n */\r\n public getCellZ(z: float64): float64 {\r\n return (z - this.p0.z) / this.size.z;\r\n }\r\n\r\n /**\r\n * Get the cell index of a position.\r\n * @param position the position.\r\n * @param cellIndex the cell index.\r\n */\r\n public getCellIndexTo(position: Coordinate, cellIndex: GridIndex): GridIndex {\r\n cellIndex.x = Numbers.intFloor((position.x - this.p0.x) / this.size.x);\r\n cellIndex.y = Numbers.intFloor((position.y - this.p0.y) / this.size.y);\r\n cellIndex.z = Numbers.intFloor((position.z - this.p0.z) / this.size.z);\r\n return cellIndex;\r\n }\r\n\r\n /**\r\n * Get the cell index of a position.\r\n * @param position the position.\r\n * @return the cell index.\r\n */\r\n public getCellIndex(position: Coordinate): GridIndex {\r\n return this.getCellIndexTo(position, new GridIndex(0, 0, 0));\r\n }\r\n\r\n /**\r\n * Get the center point of a cell.\r\n * @param cellIndex the index of the cell.\r\n * @return the center point.\r\n */\r\n public getCellCenter(cellIndex: GridIndex): Coordinate {\r\n let cx: float64 = this.p0.x + (cellIndex.x + 0.5) * this.size.x;\r\n let cy: float64 = this.p0.y + (cellIndex.y + 0.5) * this.size.y;\r\n let cz: float64 = this.p0.z + (cellIndex.z + 0.5) * this.size.z;\r\n return new Coordinate(cx, cy, cz);\r\n }\r\n\r\n /**\r\n * Get the bounds of a cell.\r\n * @param cellIndex the index of the cell.\r\n * @return the bounds.\r\n */\r\n public getCellBounds(cellIndex: GridIndex): Bounds {\r\n let x0: float64 = this.p0.x + (cellIndex.x) * this.size.x;\r\n let y0: float64 = this.p0.y + (cellIndex.y) * this.size.y;\r\n let z0: float64 = this.p0.z + (cellIndex.z) * this.size.z;\r\n let bounds: Bounds = new Bounds();\r\n bounds.addXYZ(x0, y0, z0);\r\n bounds.addXYZ(x0 + this.size.x, y0 + this.size.y, z0 + this.size.z);\r\n return bounds;\r\n }\r\n\r\n /**\r\n * Scale the grid.\r\n * @param scale the scale factor.\r\n * @return the scaled grid.\r\n */\r\n public scale(scale: float64): Grid {\r\n return new Grid(new Coordinate(this.p0.x, this.p0.y, this.p0.z), new Coordinate(scale * this.size.x, scale * this.size.y, scale * this.size.z));\r\n }\r\n\r\n /**\r\n * Move the grid.\r\n * @param dx the x offset.\r\n * @param dy the y offset.\r\n * @param dz the z offset.\r\n * @return the scaled grid.\r\n */\r\n public scale3(dx: float64, dy: float64, dz: float64): Grid {\r\n return new Grid(new Coordinate(this.p0.x + dx, this.p0.y + dy, this.p0.z + dz), new Coordinate(this.size.x, this.size.y, this.size.z));\r\n }\r\n\r\n /**\r\n * The standard toString method.\r\n * @see Object#toString\r\n */\r\n public toString(): string {\r\n return \"[Grid:x0=\" + this.p0.x + \",y0=\" + this.p0.y + \",z0=\" + this.p0.z + \",sx=\" + this.size.x + \",sy=\" + this.size.y + \",sz=\" + this.size.z + \"]\";\r\n }\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridIndex.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/GridIndex.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAUH,0DA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CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnD,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnD,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC;IAED;;;;OAIG;IACI,IAAI,CAAC,KAAgB;QACxB,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC;IAED;;;OAGG;IACI,IAAI;QACP,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACI,MAAM;QACT,OAAO,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;IAClE,CAAC;IAED;;;OAGG;IACI,QAAQ;QACX,OAAO,eAAe,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;IACxE,CAAC;CACJ;AA7FD,8BA6FC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.pointcloud.model;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { Numbers } from \"../../system/runtime/Numbers\";\n\n/** @internal */\nexport class GridIndex {\n /** The x index */\n public x: int32;\n /** The y index */\n public y: int32;\n /** The z index */\n public z: int32;\n\n /**\n * Create a new point.\n * @param x the x index.\n * @param y the y index.\n * @param z the z index.\n */\n public constructor(x: int32, y: int32, z: int32) {\n this.x = x;\n this.y = y;\n this.z = z;\n }\n\n /**\n * Get the square distance to another cell.\n * @param other the other cell.\n * @return the square distance.\n */\n public distanceSq(other: GridIndex): int32 {\n let dx: int32 = (other.x - this.x);\n let dy: int32 = (other.y - this.y);\n let dz: int32 = (other.z - this.z);\n return (dx * dx) + (dy * dy) + (dz * dz);\n }\n\n /**\n * Get the distance to another cell.\n * @param other the other cell.\n * @return the distance.\n */\n public distance(other: GridIndex): float64 {\n return Numbers.sqrt(this.distanceSq(other));\n }\n\n /**\n * Get a next-level index.\n * @param index the index at the current level.\n * @return the next-level index.\n */\n private static getNextLevelIndex1(index: int32): int32 {\n if (index < 0) return Numbers.divInt(index - 1, 2);\n return Numbers.divInt(index, 2);\n }\n\n /**\n * Get a next-level index.\n * @param nextLevel the index at the next level.\n */\n public getNextLevelIndex(nextLevel: GridIndex): void {\n nextLevel.x = GridIndex.getNextLevelIndex1(this.x);\n nextLevel.y = GridIndex.getNextLevelIndex1(this.y);\n nextLevel.z = GridIndex.getNextLevelIndex1(this.z);\n }\n\n /**\n * Does this point equal another?\n * @param other the other point.\n * @return true if equal.\n */\n public same(other: GridIndex): boolean {\n return (other.x == this.x && other.y == this.y && other.z == this.z);\n }\n\n /**\n * Create a copy.\n * @return a copy.\n */\n public copy(): GridIndex {\n return new GridIndex(this.x, this.y, this.z);\n }\n\n /**\n * Get the unique key.\n * @return the unique key.\n */\n public getKey(): string {\n return \"{x:\" + this.x + \",y:\" + this.y + \",z:\" + this.z + \"}\";\n }\n\n /**\n * The standard toString method.\n * @see Object#toString\n */\n public toString(): string {\n return \"[GridPoint3D:\" + this.x + \",\" + this.y + \",\" + this.z + \"]\";\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"GridInd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AC;IACpC,CAAC;IAED;;;OAGG;IACI,iBAAiB,CAAC,SAAoB;QACzC,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnD,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnD,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC;IAED;;;;OAIG;IACI,IAAI,CAAC,KAAgB;QACxB,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC;IAED;;;OAGG;IACI,IAAI;QACP,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACI,MAAM;QACT,OAAO,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;IAClE,CAAC;IAED;;;OAGG;IACI,QAAQ;QACX,OAAO,eAAe,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;IACxE,CAAC;CACJ;AA7FD,8BA6FC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Numbers } from \"../../system/runtime/Numbers\";\r\n\r\n/** @internal */\r\nexport class GridIndex {\r\n /** The x index */\r\n public x: int32;\r\n /** The y index */\r\n public y: int32;\r\n /** The z index */\r\n public z: int32;\r\n\r\n /**\r\n * Create a new point.\r\n * @param x the x index.\r\n * @param y the y index.\r\n * @param z the z index.\r\n */\r\n public constructor(x: int32, y: int32, z: int32) {\r\n this.x = x;\r\n this.y = y;\r\n this.z = z;\r\n }\r\n\r\n /**\r\n * Get the square distance to another cell.\r\n * @param other the other cell.\r\n * @return the square distance.\r\n */\r\n public distanceSq(other: GridIndex): int32 {\r\n let dx: int32 = (other.x - this.x);\r\n let dy: int32 = (other.y - this.y);\r\n let dz: int32 = (other.z - this.z);\r\n return (dx * dx) + (dy * dy) + (dz * dz);\r\n }\r\n\r\n /**\r\n * Get the distance to another cell.\r\n * @param other the other cell.\r\n * @return the distance.\r\n */\r\n public distance(other: GridIndex): float64 {\r\n return Numbers.sqrt(this.distanceSq(other));\r\n }\r\n\r\n /**\r\n * Get a next-level index.\r\n * @param index the index at the current level.\r\n * @return the next-level index.\r\n */\r\n private static getNextLevelIndex1(index: int32): int32 {\r\n if (index < 0) return Numbers.divInt(index - 1, 2);\r\n return Numbers.divInt(index, 2);\r\n }\r\n\r\n /**\r\n * Get a next-level index.\r\n * @param nextLevel the index at the next level.\r\n */\r\n public getNextLevelIndex(nextLevel: GridIndex): void {\r\n nextLevel.x = GridIndex.getNextLevelIndex1(this.x);\r\n nextLevel.y = GridIndex.getNextLevelIndex1(this.y);\r\n nextLevel.z = GridIndex.getNextLevelIndex1(this.z);\r\n }\r\n\r\n /**\r\n * Does this point equal another?\r\n * @param other the other point.\r\n * @return true if equal.\r\n */\r\n public same(other: GridIndex): boolean {\r\n return (other.x == this.x && other.y == this.y && other.z == this.z);\r\n }\r\n\r\n /**\r\n * Create a copy.\r\n * @return a copy.\r\n */\r\n public copy(): GridIndex {\r\n return new GridIndex(this.x, this.y, this.z);\r\n }\r\n\r\n /**\r\n * Get the unique key.\r\n * @return the unique key.\r\n */\r\n public getKey(): string {\r\n return \"{x:\" + this.x + \",y:\" + this.y + \",z:\" + this.z + \"}\";\r\n }\r\n\r\n /**\r\n * The standard toString method.\r\n * @see Object#toString\r\n */\r\n public toString(): string {\r\n return \"[GridPoint3D:\" + this.x + \",\" + this.y + \",\" + this.z + \"]\";\r\n }\r\n}\r\n"]}
|
|
@@ -1 +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;IACvB,gCAAgC;IACxB,KAAK,CAAS;IACtB,uCAAuC;IAC/B,YAAY,CAAS;IAC7B,gCAAgC;IACxB,KAAK,CAAQ;IACrB,yCAAyC;IACjC,aAAa,CAAiB;IACtC,kDAAkD;IAC1C,SAAS,CAAiB;IAClC,kDAAkD;IAC1C,SAAS,CAAiB;IAElC,8DAA8D;IACtD,kBAAkB,CAAU;IAEpC;;;;;;OAMG;IACH,YAAmB,IAAY,EAAE,WAAmB,EAAE,IAAW,EAAE,YAA4B;QAC3F,IAAI,YAAY,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,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,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
|
+
{"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;IACvB,gCAAgC;IACxB,KAAK,CAAS;IACtB,uCAAuC;IAC/B,YAAY,CAAS;IAC7B,gCAAgC;IACxB,KAAK,CAAQ;IACrB,yCAAyC;IACjC,aAAa,CAAiB;IACtC,kDAAkD;IAC1C,SAAS,CAAiB;IAClC,kDAAkD;IAC1C,SAAS,CAAiB;IAElC,8DAA8D;IACtD,kBAAkB,CAAU;IAEpC;;;;;;OAMG;IACH,YAAmB,IAAY,EAAE,WAAmB,EAAE,IAAW,EAAE,YAA4B;QAC3F,IAAI,YAAY,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,iCAAi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AAC,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":["/*---------------------------------------------------------------------------------------------\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 +1 @@
|
|
|
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
|
+
{"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":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\n\r\nimport { Bounds } from \"../../spatial/geom/Bounds\";\r\nimport { AList } from \"../../system/collection/AList\";\r\nimport { ALong } from \"../../system/runtime/ALong\";\r\nimport { ContentLoader } from \"../../system/storage/ContentLoader\";\r\nimport { FileStorage } from \"../../system/storage/FileStorage\";\r\nimport { AttributeValue } from \"./AttributeValue\";\r\nimport { BlockIndex } from \"./BlockIndex\";\r\nimport { CloudPoint } from \"./CloudPoint\";\r\nimport { Grid } from \"./Grid\";\r\nimport { PointAttribute } from \"./PointAttribute\";\r\nimport { PointData } from \"./PointData\";\r\nimport { ReadRequest } from \"./ReadRequest\";\r\nimport { TileIndex } from \"./TileIndex\";\r\n\r\n/**\r\n * Abstract class PointCloudReader allows reading of blocks, tiles and points from pointcloud files using the two-step content loader technique.\r\n *\r\n * Point cloud access often results in many requests for small parts of the point cloud file. To avoid making too many requests a content loader can be used.\r\n *\r\n * Create a new content loader and call the needed methods to gather the file ranges to fetch from storage, ignoring the method results.\r\n * Then await the content loader request to load all needed data and wait for the results.\r\n * Then call the needed method again, they will have access to the data and return the right results.\r\n * This technique allows a single fetch request from storage to return multiple small file content ranges.\r\n *\r\n * @version 1.0 March 2016\r\n */\r\n/** @internal */\r\nexport class PointCloudReader {\r\n /**\r\n * Create a new reader.\r\n */\r\n public constructor() {\r\n }\r\n\r\n /**\r\n * Close the reader.\r\n */\r\n public close(): void {\r\n }\r\n\r\n /**\r\n * Get a certain property of the reader.\r\n * @return the value (null if not defined).\r\n */\r\n public getProperty(propertyName: string): Object {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the storage of the file.\r\n * @return the storage of the file.\r\n */\r\n public getFileStorage(): FileStorage {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the name of the file.\r\n * @return the name of the file.\r\n */\r\n public getFileName(): string {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the CRS of the file.\r\n * @return the CRS of the file.\r\n */\r\n public getFileCRS(): string {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the spatial bounds of the file.\r\n * @return the spatial bounds of the file.\r\n */\r\n public getFileBounds(): Bounds {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the attributes of the points.\r\n * @return the attributes of the points.\r\n */\r\n public getPointAttributes(): Array<PointAttribute> {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the minimum value of an attribute.\r\n * @param attribute the attribute.\r\n * @return the minimum value (null if unknown).\r\n */\r\n public getMinAttributeValue(attribute: PointAttribute): AttributeValue {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the maximum value of an attribute.\r\n * @param attribute the attribute.\r\n * @return the maximum value (null if unknown).\r\n */\r\n public getMaxAttributeValue(attribute: PointAttribute): AttributeValue {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the number of levels.\r\n * @return the number of levels.\r\n */\r\n public getLevelCount(): int32 {\r\n return 0;\r\n }\r\n\r\n /**\r\n * Get the number of points.\r\n * @param level the index of the level.\r\n * @return the number of points.\r\n */\r\n public getLevelPointCount(level: int32): ALong {\r\n return ALong.ZERO;\r\n }\r\n\r\n /**\r\n * Get the bounds of points.\r\n * @param level the index of the level.\r\n * @return the bounds of points.\r\n */\r\n public getLevelPointBounds(level: int32): Bounds {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the block grid.\r\n * @param level the index of the level.\r\n * @return the block grid (null if there is no spatial grid).\r\n */\r\n public getLevelBlockGrid(level: int32): Grid {\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the tile grid.\r\n * @param level the index of the level.\r\n * @return the tile grid (null if there is no spatial grid).\r\n */\r\n public getLevelTileGrid(level: int32): Grid {\r\n return null;\r\n }\r\n\r\n /**\r\n * Peek at block indexes.\r\n * @param level the index of the level.\r\n * @return the block indexes (zero length if the level has not yet been accessed in case of lazy loading).\r\n */\r\n public peekBlockIndexes(level: int32): Array<BlockIndex> {\r\n return null;\r\n }\r\n\r\n /**\r\n * Read block indexes (with a 2-step file content fetching sequence).\r\n * @param level the index of the level.\r\n * @param fileContents the file contents.\r\n * @return the tile indexes.\r\n */\r\n public readBlockIndexes(level: int32, fileContents: ContentLoader): Array<BlockIndex> {\r\n return null;\r\n }\r\n\r\n /**\r\n * Read tile indexes (with a 2-step file content fetching sequence).\r\n * @param block the index of the block.\r\n * @param fileContents the file contents.\r\n * @return the tile indexes.\r\n */\r\n public readTileIndexes(block: BlockIndex, fileContents: ContentLoader): Array<TileIndex> {\r\n return null;\r\n }\r\n\r\n /**\r\n * Read the points of a tile (with a 2-step file content fetching sequence).\r\n * @param tileIndex the tile index.\r\n * @param parameters the read parameters (contains the result read statistics).\r\n * @param fileContents the file contents.\r\n * @param processor the point processor.\r\n */\r\n public readPoints(tileIndex: TileIndex, parameters: ReadRequest, fileContents: ContentLoader): AList<CloudPoint> {\r\n return null;\r\n }\r\n\r\n /**\r\n * Read the points of a tile (with a 2-step file content fetching sequence).\r\n * @param tileIndex the tile index.\r\n * @param dataFormat the data format.\r\n * @param accessTime the current access time.\r\n * @param fileContents the file contents.\r\n */\r\n public readPointData(tileIndex: TileIndex, dataFormat: int32, accessTime: float64, fileContents: ContentLoader): PointData {\r\n return null;\r\n }\r\n\r\n /**\r\n * Clip the reader to a certain range of levels.\r\n * @param levelOffset the index of the first level.\r\n * @param levelCount the number of levels.\r\n * @return the clipped pointcloud.\r\n */\r\n public clipToLevelRange(levelOffset: int32, levelCount: int32): PointCloudReader {\r\n return null;\r\n }\r\n}\r\n"]}
|
|
@@ -1 +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;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"]}
|
|
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":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\n\r\nimport { Bounds } from \"../../spatial/geom/Bounds\";\r\nimport { TileIndex } from \"./TileIndex\";\r\n\r\n/**\r\n * Abstract class PointData stores the data of the points in a tile.\r\n */\r\n/** @internal */\r\nexport class PointData {\r\n\t// the index of the tile\r\n\tpublic tileIndex: TileIndex;\r\n\t// the spatial bounds of the tile\r\n\tpublic bounds: Bounds;\r\n\r\n\t/**\r\n\t * Create new point data.\r\n\t */\r\n\tpublic constructor(tileIndex: TileIndex, bounds: Bounds) {\r\n\t\tthis.tileIndex = tileIndex;\r\n\t\tthis.bounds = bounds;\r\n\t}\r\n}\r\n"]}
|
|
@@ -1 +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;IAC1C,qCAAqC;IAC9B,MAAM,CAAU,IAAI,GAAU,CAAC,CAAC;IAEvC,0DAA0D;IACnD,QAAQ,CAAe;IAC9B,yDAAyD;IAClD,OAAO,CAAc;IAC5B,sDAAsD;IAC/C,MAAM,CAAc;IAE3B;;OAEG;IACH,YAAmB,SAAoB,EAAE,MAAc,EAAE,QAAsB,EAAE,OAAoB,EAAE,MAAmB;QACzH,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAEM,OAAO,CAAC,UAAiB;QAC/B,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;QACvE,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;IAC9C,CAAC;IAEM,OAAO,CAAC,UAAiB;QAC/B,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI;YA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,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"]}
|
|
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;IAC1C,qCAAqC;IAC9B,MAAM,CAAU,IAAI,GAAU,CAAC,CAAC;IAEvC,0DAA0D;IACnD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AC,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":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Bounds } from \"../../spatial/geom/Bounds\";\r\nimport { ABuffer } from \"../../system/buffer/ABuffer\";\r\nimport { Uint16Buffer } from \"../../system/buffer/Uint16Buffer\";\r\nimport { Uint8Buffer } from \"../../system/buffer/Uint8Buffer\";\r\nimport { PointData } from \"./PointData\";\r\nimport { TileIndex } from \"./TileIndex\";\r\n\r\n/**\r\n * Class PointDataRaw stores point data with 8 or 16-bit XYZ geometry and 24-bit BGR color precision.\r\n */\r\n/** @internal */\r\nexport class PointDataRaw extends PointData {\r\n\t// the identifier of this data format\r\n\tpublic static readonly TYPE: int32 = 1;\r\n\r\n\t// the 16-bit XYZ geometries (length tileIndex.pointCount)\r\n\tpublic points16: Uint16Buffer;\r\n\t// the 8-bit XYZ geometries (length tileIndex.pointCount)\r\n\tpublic points8: Uint8Buffer;\r\n\t// the 24-bit BGR colors (length tileIndex.pointCount)\r\n\tpublic colors: Uint8Buffer;\r\n\r\n\t/**\r\n\t * Create new point data.\r\n\t */\r\n\tpublic constructor(tileIndex: TileIndex, bounds: Bounds, points16: Uint16Buffer, points8: Uint8Buffer, colors: Uint8Buffer) {\r\n\t\tsuper(tileIndex, bounds);\r\n\t\tthis.bounds = bounds;\r\n\t\tthis.points16 = points16;\r\n\t\tthis.points8 = points8;\r\n\t\tthis.colors = colors;\r\n\t}\r\n\r\n\tpublic getRawX(pointIndex: int32): int32 {\r\n\t\tif (this.points16 == null) return this.points8.get(3 * pointIndex + 0);\r\n\t\treturn this.points16.get(3 * pointIndex + 0);\r\n\t}\r\n\r\n\tpublic getRawY(pointIndex: int32): int32 {\r\n\t\tif (this.points16 == null) return this.points8.get(3 * pointIndex + 1);\r\n\t\treturn this.points16.get(3 * pointIndex + 1);\r\n\t}\r\n\r\n\tpublic getRawZ(pointIndex: int32): int32 {\r\n\t\tif (this.points16 == null) return this.points8.get(3 * pointIndex + 2);\r\n\t\treturn this.points16.get(3 * pointIndex + 2);\r\n\t}\r\n\r\n\tpublic getX(pointIndex: int32): float64 {\r\n\t\tlet range: float64 = (this.points16 == null) ? 256.0 : 65536.0;\r\n\t\tlet bias: float64 = (this.points16 == null) ? 0.5 : 0.0;\r\n\t\treturn this.bounds.min.x + ((this.getRawX(pointIndex) + bias) / range) * (this.bounds.max.x - this.bounds.min.x);\r\n\t}\r\n\r\n\tpublic getY(pointIndex: int32): float64 {\r\n\t\tlet range: float64 = (this.points16 == null) ? 256.0 : 65536.0;\r\n\t\tlet bias: float64 = (this.points16 == null) ? 0.5 : 0.0;\r\n\t\treturn this.bounds.min.y + ((this.getRawY(pointIndex) + bias) / range) * (this.bounds.max.y - this.bounds.min.y);\r\n\t}\r\n\r\n\tpublic getZ(pointIndex: int32): float64 {\r\n\t\tlet range: float64 = (this.points16 == null) ? 256.0 : 65536.0;\r\n\t\tlet bias: float64 = (this.points16 == null) ? 0.5 : 0.0;\r\n\t\treturn this.bounds.min.z + ((this.getRawZ(pointIndex) + bias) / range) * (this.bounds.max.z - this.bounds.min.z);\r\n\t}\r\n\r\n\tpublic getRed(pointIndex: int32): int32 {\r\n\t\treturn this.colors.get(3 * pointIndex + 2);\r\n\t}\r\n\r\n\tpublic getGreen(pointIndex: int32): int32 {\r\n\t\treturn this.colors.get(3 * pointIndex + 1);\r\n\t}\r\n\r\n\tpublic getBlue(pointIndex: int32): int32 {\r\n\t\treturn this.colors.get(3 * pointIndex + 0);\r\n\t}\r\n}\r\n"]}
|
|
@@ -1 +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;IACpB,4CAA4C;IACrC,MAAM,CAAU,aAAa,GAAgB,WAAW,CAAC,WAAW,EAAE,CAAC;IAC9E,sDAAsD;IAC/C,MAAM,CAAU,uBAAuB,GAAgB,WAAW,CAAC,mBAAmB,EAAE,CAAC;IAChG,kDAAkD;IAC3C,MAAM,CAAU,QAAQ,GAAgB,WAAW,CAAC,wBAAwB,EAAE,CAAC;IAEtF,mCAAmC;IAC3B,sBAAsB,CAAU;IACxC,gCAAgC;IACxB,mBAAmB,CAAU;I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iB,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"]}
|
|
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,WAAW,CAAC,WAAW,EAAE,CAAC;IAC9E,sDAAsD;IAC/C,MAAM,CAAU,uBAAuB,GAAgB,WAAW,CAAC,mBAAmB,EAAE,CAAC;IAChG,kDAAkD;IAC3C,MAAM,CAAU,QAAQ,GAAgB,WAAW,CAAC,wBAAwB,EAAE,CAAC;IAEtF,mCAAmC;IAC3B,sBAAsB,CAAU;IACxC,gCAAgC;IACxB,mBAAmB,CAAU;IACrC,oCAAoC;IAC5B,uBAAuB,CAAU;IACzC,iCAAiC;IACzB,oBAAoB,CAAU;IACtC,+BAA+B;IACvB,SAAS,CAAQ;IACzB,uDAAuD;IAC/C,gBAAgB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AAC,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":["/*---------------------------------------------------------------------------------------------\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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardAttributes.js","sourceRoot":"","sources":["../../../../src/pointc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+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"]}
|
|
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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------------------------\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 { AttributeTypes } from \"./AttributeTypes\";\r\nimport { AttributeValue } from \"./AttributeValue\";\r\nimport { PointAttribute } from \"./PointAttribute\";\r\n\r\n/**\r\n * Class StandardAttributes defines some common attributes for pointclouds.\r\n *\r\n * @version 1.0 October 2013\r\n */\r\n/** @internal */\r\nexport class StandardAttributes {\r\n /** The standard \"color\" attribute */\r\n public static readonly COLOR: PointAttribute = new PointAttribute(\"Color\", \"The RGB color\", AttributeTypes.TYPE_COLOR, AttributeValue.createColor(0));\r\n /** The standard \"intensity\" attribute */\r\n public static readonly INTENSITY: PointAttribute = new PointAttribute(\"Intensity\", \"The reflection intensity\", AttributeTypes.TYPE_INT2, AttributeValue.createInt2(0));\r\n /** The standard \"gps-time\" attribute */\r\n public static readonly GPS_TIME: PointAttribute = new PointAttribute(\"GPSTime\", \"The registration time of the point\", AttributeTypes.TYPE_FLOAT8, AttributeValue.createFloat8(0.0));\r\n /** The standard \"weight\" attribute */\r\n public static readonly WEIGHT: PointAttribute = new PointAttribute(\"Weight\", \"The weight of a multi-resolution point\", AttributeTypes.TYPE_INT4, AttributeValue.createInt4(0));\r\n /** The standard \"clearance\" attribute */\r\n public static readonly CLEARANCE: PointAttribute = new PointAttribute(\"Clearance\", \"The vertical clearance of a bridge or road\", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0));\r\n /** The standard \"rutting\" attribute */\r\n public static readonly RUTTING: PointAttribute = new PointAttribute(\"Rutting\", \"The road deformation angle\", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0)); // range 0..90 deg\r\n /** The standard \"color-by\" attribute */\r\n public static readonly COLOR_BY: PointAttribute = new PointAttribute(\"ColorBy\", \"The attribute to modulate the point colors\", AttributeTypes.TYPE_FLOAT4, AttributeValue.createFloat4(0.0));\r\n\r\n /** The default \"gps-time\" attribute value */\r\n public static readonly DEFAULT_GPS_TIME: AttributeValue = AttributeValue.createFloat8(0.0);\r\n\r\n /** The \"adjusted\" gps time offset (The offset moves the time back to near zero to improve floating point resolution).\r\n See the \"GPS Time Type\" field in \"LAS SPECIFICATION VERSION 1.3\" */\r\n public static readonly GPS_TIME_OFFSET: float64 = 1.0e9;\r\n /** The number of seconds in a week (7*24*3600) */\r\n public static readonly GPS_WEEK_SECONDS: float64 = 604800.0;\r\n\r\n /**\r\n * No instances.\r\n */\r\n private constructor() { }\r\n}\r\n"]}
|
|
@@ -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;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
|
+
{"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":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\n\r\nimport { ALong } from \"../../system/runtime/ALong\";\r\nimport { GridIndex } from \"./GridIndex\";\r\n\r\n/**\r\n * Class TileIndex defines a tile index in a pointcloud file.\r\n *\r\n * @version 1.0 January 2014\r\n */\r\n/** @internal */\r\nexport class TileIndex {\r\n /** The level */\r\n public level: int32;\r\n /** The unique key of the block */\r\n public key: string;\r\n /** The index of the tile in the level */\r\n public index: int32;\r\n /** The grid index */\r\n public gridIndex: GridIndex;\r\n /** The index of the first point in the tile (derived) */\r\n public pointIndex: ALong;\r\n /** The point count */\r\n public pointCount: int32;\r\n /** The children */\r\n public children: Array<TileIndex>;\r\n /** The last access time */\r\n public accessTime: float64;\r\n\r\n /**\r\n * Create a new index.\r\n */\r\n public constructor(level: int32, index: int32, gridIndex: GridIndex, pointIndex: ALong, pointCount: int32) {\r\n this.level = level;\r\n this.index = index;\r\n this.gridIndex = gridIndex;\r\n this.pointIndex = pointIndex;\r\n this.pointCount = pointCount;\r\n this.children = null;\r\n this.accessTime = 0.0;\r\n this.key = (\"L\" + this.level + \",T:\" + this.index);\r\n }\r\n\r\n /**\r\n * Check if two indexes are the same.\r\n * @param other another index.\r\n * @return true if same.\r\n */\r\n public same(other: TileIndex): boolean {\r\n return (other.level == this.level) && (other.index == this.index);\r\n }\r\n\r\n /**\r\n * Get the unique key of the tile in the pointcloud file.\r\n * @return the unique key (combines level and grid index).\r\n */\r\n public getKey(): string {\r\n return \"T\" + this.level + \"/\" + this.gridIndex.x + \"/\" + this.gridIndex.y + \"/\" + this.gridIndex.z;\r\n }\r\n}\r\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":["/*---------------------------------------------------------------------------------------------\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"]}
|
|
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":["/*---------------------------------------------------------------------------------------------\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.render;\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 { TileIndex } from \"../model/TileIndex\";\r\nimport { Level } from \"./Level\";\r\n\r\n/**\r\n * Class AViewRequest defines a abstract request the render a view.\r\n *\r\n * @version 1.0 November 2015\r\n */\r\n/** @internal */\r\nexport abstract class AViewRequest {\r\n\t/**\r\n\t * Make a new request.\r\n\t */\r\n\tpublic constructor() {\r\n\t}\r\n\r\n\t/**\r\n\t * Get the frame time.\r\n\t * @return the frame time.\r\n\t */\r\n\tpublic abstract getFrameTime(): float64;\r\n\r\n\t/**\r\n\t * Check if bounds are visible.\r\n\t * @param bounds the bounds (in model space).\r\n\t * @return true if visible.\r\n\t */\r\n\tpublic abstract isVisibleBox(bounds: Bounds): boolean;\r\n\r\n\t/**\r\n\t * Should a tile be split?\r\n * @param level the level of the tile.\r\n * @param tile the tile index.\r\n\t * @return true if the tile should be split into its children.\r\n\t */\r\n\tpublic abstract shouldSplit(level: Level, tile: TileIndex): boolean;\r\n}\r\n"]}
|
|
@@ -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;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,E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;OAIG;IACI,QAAQ,CAAC,YAA+B;QAC9C,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE,CAAC;YAC5B,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YAC/C,OAAO,IAAI,CAAC;QACb,CAAC;QACD,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,QAAQ,CAAC,aAAwB;QACvC,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QACvC,IAAI,KAAK,GAAU,aAAa,CAAC,CAAC,CAAC;QACnC,IAAI,KAAK,GAA8B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAChE,IAAI,KAAK,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAC/B,IAAI,KAAK,GAAU,aAAa,CAAC,CAAC,CAAC;QACnC,IAAI,IAAI,GAAsB,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC/C,IAAI,IAAI,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAC9B,IAAI,KAAK,GAAU,aAAa,CAAC,CAAC,CAAC;QACnC,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;CACD;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"]}
|
|
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;AA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,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":["/*---------------------------------------------------------------------------------------------\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.render;\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 { IntMap } from \"../../system/collection/IntMap\";\r\nimport { BlockIndex } from \"../model/BlockIndex\";\r\nimport { GridIndex } from \"../model/GridIndex\";\r\nimport { TileIndex } from \"../model/TileIndex\";\r\nimport { Level } from \"./Level\";\r\n\r\n/**\r\n * Class Block defines a block of tiles.\r\n *\r\n * @version 1.0 November 2015\r\n */\r\n/** @internal */\r\nexport class Block {\r\n\t/** The index of the block */\r\n\tprivate _index: BlockIndex;\r\n\t/** The full list of tiles in the block (can be null if the tile-list has not been loaded) */\r\n\tprivate _tileList: Array<TileIndex>;\r\n\t/** The map of tiles in the block */\r\n\tprivate _tileMap: IntMap<IntMap<IntMap<TileIndex>>>;\r\n\r\n\t/**\r\n\t * Create a new block.\r\n\t * @param index the index of the block.\r\n\t */\r\n\tpublic constructor(index: BlockIndex) {\r\n\t\tthis._index = index;\r\n\t\tthis._tileList = null;\r\n\t\tthis._tileMap = null;\r\n\t}\r\n\r\n\t/**\r\n\t * Get the index of the block.\r\n\t * @return the index of the block.\r\n\t */\r\n\tpublic getBlockIndex(): BlockIndex {\r\n\t\treturn this._index;\r\n\t}\r\n\r\n\t/**\r\n\t * Get the spatial bounds of the block.\r\n\t * @param level the level to which the block belongs.\r\n\t * @return the spatial bounds of the block.\r\n\t */\r\n\tpublic getBlockBounds(level: Level): Bounds {\r\n\t\treturn level.getBlockGrid().getCellBounds(this._index.gridIndex);\r\n\t}\r\n\r\n\t/**\r\n\t * Add a block to the list of blocks to load.\r\n * @param blocksToLoad the list of blocks to load.\r\n * @param block the block to add.\r\n */\r\n\tprivate static addToLoadList(blocksToLoad: AList<BlockIndex>, block: BlockIndex): void {\r\n\t\tfor (let i: number = 0; i < blocksToLoad.size(); i++) if (blocksToLoad.get(i).same(block)) return;\r\n\t\tblocksToLoad.add(block);\r\n\t}\r\n\r\n\t/**\r\n\t * Set the tiles in the block.\r\n\t * @param tileList the list of tiles.\r\n\t */\r\n\tpublic setTiles(tileList: Array<TileIndex>): void {\r\n\t\t/* Store the list */\r\n\t\tthis._tileList = tileList;\r\n\t\t/* Make the map */\r\n\t\tthis._tileMap = new IntMap<IntMap<IntMap<TileIndex>>>();\r\n\t\tfor (let tile of this._tileList) {\r\n\t\t\tlet tileX: int32 = tile.gridIndex.x;\r\n\t\t\tlet yzMap: IntMap<IntMap<TileIndex>> = this._tileMap.get(tileX);\r\n\t\t\tif (yzMap == null) {\r\n\t\t\t\tyzMap = new IntMap<IntMap<TileIndex>>();\r\n\t\t\t\tthis._tileMap.set(tileX, yzMap);\r\n\t\t\t}\r\n\t\t\tlet tileY: int32 = tile.gridIndex.y;\r\n\t\t\tlet zMap: IntMap<TileIndex> = yzMap.get(tileY);\r\n\t\t\tif (zMap == null) {\r\n\t\t\t\tzMap = new IntMap<TileIndex>();\r\n\t\t\t\tyzMap.set(tileY, zMap);\r\n\t\t\t}\r\n\t\t\tlet tileZ: int32 = tile.gridIndex.z;\r\n\t\t\tzMap.set(tileZ, tile);\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Have the tiles been set?\r\n\t * @return true if the tiles have been set.\r\n\t */\r\n\tpublic hasTiles(): boolean {\r\n\t\treturn (this._tileList != null);\r\n\t}\r\n\r\n\t/**\r\n\t * List all tiles.\r\n * @param blocksToLoad the list of blocks to load.\r\n\t * @return all tiles (null if tiles are not loaded).\r\n\t */\r\n\tpublic getTiles(blocksToLoad: AList<BlockIndex>): Array<TileIndex> {\r\n\t\tif (this._tileList == null) {\r\n\t\t\tBlock.addToLoadList(blocksToLoad, this._index);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn this._tileList;\r\n\t}\r\n\r\n\t/**\r\n\t * Find a tile.\r\n * @param tileGridIndex the grid index of the tile.\r\n\t * @return the tile (null if not found).\r\n\t */\r\n\tpublic findTile(tileGridIndex: GridIndex): TileIndex {\r\n\t\tif (this._tileMap == null) return null;\r\n\t\tlet tileX: int32 = tileGridIndex.x;\r\n\t\tlet yzMap: IntMap<IntMap<TileIndex>> = this._tileMap.get(tileX);\r\n\t\tif (yzMap == null) return null;\r\n\t\tlet tileY: int32 = tileGridIndex.y;\r\n\t\tlet zMap: IntMap<TileIndex> = yzMap.get(tileY);\r\n\t\tif (zMap == null) return null;\r\n\t\tlet tileZ: int32 = tileGridIndex.z;\r\n\t\treturn zMap.get(tileZ);\r\n\t}\r\n}\r\n"]}
|