@itwin/core-orbitgt 4.6.0-dev.21 → 4.6.0-dev.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/pointcloud/format/opc/AttributeMask.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/BlockRecord.js +1 -1
- package/lib/cjs/pointcloud/format/opc/BlockRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/ContainerFile.js +1 -1
- package/lib/cjs/pointcloud/format/opc/ContainerFile.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/FileReader.js +1 -1
- package/lib/cjs/pointcloud/format/opc/FileReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/GeometryReader.js +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 +1 -1
- package/lib/cjs/pointcloud/format/opc/TileRecord.js.map +1 -1
- package/lib/cjs/pointcloud/model/AttributeTypes.js +1 -1
- package/lib/cjs/pointcloud/model/AttributeTypes.js.map +1 -1
- package/lib/cjs/pointcloud/model/AttributeValue.js +1 -1
- package/lib/cjs/pointcloud/model/AttributeValue.js.map +1 -1
- package/lib/cjs/pointcloud/model/CloudPoint.js +1 -1
- package/lib/cjs/pointcloud/model/CloudPoint.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointDataRaw.js +1 -1
- package/lib/cjs/pointcloud/model/PointDataRaw.js.map +1 -1
- package/lib/cjs/pointcloud/model/ReadRequest.js +1 -1
- package/lib/cjs/pointcloud/model/ReadRequest.js.map +1 -1
- package/lib/cjs/pointcloud/model/StandardAttributes.js +1 -1
- package/lib/cjs/pointcloud/model/StandardAttributes.js.map +1 -1
- package/lib/cjs/pointcloud/render/Block.js.map +1 -1
- package/lib/cjs/pointcloud/render/DataManager.js +1 -1
- package/lib/cjs/pointcloud/render/DataManager.js.map +1 -1
- package/lib/cjs/pointcloud/render/TileLoadSorter.js +1 -1
- package/lib/cjs/pointcloud/render/TileLoadSorter.js.map +1 -1
- package/lib/cjs/pointcloud/render/ViewTree.js +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 +1 -1
- package/lib/cjs/spatial/crs/CRSManager.js.map +1 -1
- package/lib/cjs/spatial/ecrs/CRS.js +1 -1
- package/lib/cjs/spatial/ecrs/CRS.js.map +1 -1
- package/lib/cjs/spatial/ecrs/CoordinateSystem.js +1 -1
- package/lib/cjs/spatial/ecrs/CoordinateSystem.js.map +1 -1
- package/lib/cjs/spatial/ecrs/DataFileUnit.js +1 -1
- package/lib/cjs/spatial/ecrs/DataFileUnit.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Datum.js +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 +1 -1
- package/lib/cjs/spatial/ecrs/OnlineRegistry.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Operation.js +1 -1
- package/lib/cjs/spatial/ecrs/Operation.js.map +1 -1
- package/lib/cjs/spatial/ecrs/ParameterValueList.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Registry.js +1 -1
- package/lib/cjs/spatial/ecrs/Registry.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Transform.js +1 -1
- package/lib/cjs/spatial/ecrs/Transform.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Unit.js +1 -1
- package/lib/cjs/spatial/ecrs/Unit.js.map +1 -1
- package/lib/cjs/spatial/ecrs/WellKnownText.js +1 -1
- package/lib/cjs/spatial/ecrs/WellKnownText.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js +1 -1
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js +1 -1
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js +1 -1
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js +1 -1
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js +1 -1
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js +1 -1
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js +1 -1
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js +1 -1
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js +1 -1
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/transformation/PositionVector.js +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/Line.js.map +1 -1
- package/lib/cjs/spatial/geom/Transform.js.map +1 -1
- package/lib/cjs/system/buffer/Float32Buffer.js +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 +1 -1
- package/lib/cjs/system/buffer/Uint16Buffer.js.map +1 -1
- package/lib/cjs/system/buffer/Uint8Buffer.js +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/runtime/ALong.js +1 -1
- package/lib/cjs/system/runtime/ALong.js.map +1 -1
- package/lib/cjs/system/runtime/ASystem.js +1 -1
- package/lib/cjs/system/runtime/ASystem.js.map +1 -1
- package/lib/cjs/system/runtime/Downloader.js +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 +1 -1
- package/lib/cjs/system/runtime/Message.js.map +1 -1
- package/lib/cjs/system/runtime/Numbers.js +1 -1
- package/lib/cjs/system/runtime/Numbers.js.map +1 -1
- package/lib/cjs/system/runtime/Strings.js +1 -1
- package/lib/cjs/system/runtime/Strings.js.map +1 -1
- package/lib/cjs/system/storage/CacheList.js.map +1 -1
- package/lib/cjs/system/storage/ContentLoader.js +1 -1
- package/lib/cjs/system/storage/ContentLoader.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/pointcloud/format/opc/AttributeMask.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/BlockRecord.js +1 -2
- package/lib/esm/pointcloud/format/opc/BlockRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/ContainerFile.js +1 -2
- package/lib/esm/pointcloud/format/opc/ContainerFile.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/FileReader.js +1 -2
- package/lib/esm/pointcloud/format/opc/FileReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/GeometryReader.js +1 -2
- 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 +1 -2
- package/lib/esm/pointcloud/format/opc/TileRecord.js.map +1 -1
- package/lib/esm/pointcloud/model/AttributeTypes.js +1 -2
- package/lib/esm/pointcloud/model/AttributeTypes.js.map +1 -1
- package/lib/esm/pointcloud/model/AttributeValue.js +1 -2
- package/lib/esm/pointcloud/model/AttributeValue.js.map +1 -1
- package/lib/esm/pointcloud/model/CloudPoint.js +1 -2
- package/lib/esm/pointcloud/model/CloudPoint.js.map +1 -1
- package/lib/esm/pointcloud/model/PointDataRaw.js +1 -2
- package/lib/esm/pointcloud/model/PointDataRaw.js.map +1 -1
- package/lib/esm/pointcloud/model/ReadRequest.js +1 -2
- package/lib/esm/pointcloud/model/ReadRequest.js.map +1 -1
- package/lib/esm/pointcloud/model/StandardAttributes.js +1 -2
- package/lib/esm/pointcloud/model/StandardAttributes.js.map +1 -1
- package/lib/esm/pointcloud/render/Block.js.map +1 -1
- package/lib/esm/pointcloud/render/DataManager.js +1 -2
- package/lib/esm/pointcloud/render/DataManager.js.map +1 -1
- package/lib/esm/pointcloud/render/TileLoadSorter.js +1 -2
- package/lib/esm/pointcloud/render/TileLoadSorter.js.map +1 -1
- package/lib/esm/pointcloud/render/ViewTree.js +1 -2
- 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 +1 -2
- package/lib/esm/spatial/crs/CRSManager.js.map +1 -1
- package/lib/esm/spatial/ecrs/CRS.js +1 -2
- package/lib/esm/spatial/ecrs/CRS.js.map +1 -1
- package/lib/esm/spatial/ecrs/CoordinateSystem.js +1 -2
- package/lib/esm/spatial/ecrs/CoordinateSystem.js.map +1 -1
- package/lib/esm/spatial/ecrs/DataFileUnit.js +1 -2
- package/lib/esm/spatial/ecrs/DataFileUnit.js.map +1 -1
- package/lib/esm/spatial/ecrs/Datum.js +1 -2
- 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 +1 -2
- package/lib/esm/spatial/ecrs/OnlineRegistry.js.map +1 -1
- package/lib/esm/spatial/ecrs/Operation.js +1 -2
- package/lib/esm/spatial/ecrs/Operation.js.map +1 -1
- package/lib/esm/spatial/ecrs/ParameterValueList.js.map +1 -1
- package/lib/esm/spatial/ecrs/Registry.js +1 -2
- package/lib/esm/spatial/ecrs/Registry.js.map +1 -1
- package/lib/esm/spatial/ecrs/Transform.js +1 -2
- package/lib/esm/spatial/ecrs/Transform.js.map +1 -1
- package/lib/esm/spatial/ecrs/Unit.js +1 -2
- package/lib/esm/spatial/ecrs/Unit.js.map +1 -1
- package/lib/esm/spatial/ecrs/WellKnownText.js +1 -2
- package/lib/esm/spatial/ecrs/WellKnownText.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js +1 -2
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js +1 -2
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js +1 -2
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js +1 -2
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js +1 -2
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.js +1 -2
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js +1 -2
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js +1 -2
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.js +1 -2
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/transformation/PositionVector.js +1 -2
- 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/Line.js.map +1 -1
- package/lib/esm/spatial/geom/Transform.js.map +1 -1
- package/lib/esm/system/buffer/Float32Buffer.js +1 -2
- package/lib/esm/system/buffer/Float32Buffer.js.map +1 -1
- package/lib/esm/system/buffer/LittleEndian.js.map +1 -1
- package/lib/esm/system/buffer/Uint16Buffer.js +1 -2
- package/lib/esm/system/buffer/Uint16Buffer.js.map +1 -1
- package/lib/esm/system/buffer/Uint8Buffer.js +1 -2
- package/lib/esm/system/buffer/Uint8Buffer.js.map +1 -1
- package/lib/esm/system/collection/AList.js.map +1 -1
- package/lib/esm/system/runtime/ALong.js +1 -2
- package/lib/esm/system/runtime/ALong.js.map +1 -1
- package/lib/esm/system/runtime/ASystem.js +1 -2
- package/lib/esm/system/runtime/ASystem.js.map +1 -1
- package/lib/esm/system/runtime/Downloader.js +1 -2
- package/lib/esm/system/runtime/Downloader.js.map +1 -1
- package/lib/esm/system/runtime/DownloaderNode.js.map +1 -1
- package/lib/esm/system/runtime/DownloaderXhr.js.map +1 -1
- package/lib/esm/system/runtime/Message.js +1 -2
- package/lib/esm/system/runtime/Message.js.map +1 -1
- package/lib/esm/system/runtime/Numbers.js +1 -2
- package/lib/esm/system/runtime/Numbers.js.map +1 -1
- package/lib/esm/system/runtime/Strings.js +1 -2
- package/lib/esm/system/runtime/Strings.js.map +1 -1
- package/lib/esm/system/storage/CacheList.js.map +1 -1
- package/lib/esm/system/storage/ContentLoader.js +1 -2
- package/lib/esm/system/storage/ContentLoader.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 +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttributeValue.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/AttributeValue.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAGhE,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,cAAc;IAiBvB;;OAEG;IACH;QACI,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;QACf,IAAI,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E,CAAC,CAAC;aACpG,IAAI,aAAa,IAAI,cAAc,CAAC,SAAS;YAAE,YAAY,CAAC,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;aACrG,IAAI,aAAa,IAAI,cAAc,CAAC,WAAW;YAAE,YAAY,CAAC,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;aAC1G,IAAI,aAAa,IAAI,cAAc,CAAC,WAAW;YAAE,YAAY,CAAC,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;aAC3G,IAAI,aAAa,IAAI,cAAc,CAAC,UAAU;YAAE,YAAY,CAAC,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;;YACvG,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,oCAAoC,GAAG,aAAa,CAAC,CAAC;IACvF,CAAC;;AArcD,wBAAwB;AACD,oBAAK,GAAmB,cAAc,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACnF,uBAAuB;AACA,mBAAI,GAAmB,cAAc,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;SAJxE,cAAc","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { ABuffer } from \"../../system/buffer/ABuffer\";\r\nimport { LittleEndian } from \"../../system/buffer/LittleEndian\";\r\nimport { InStream } from \"../../system/io/InStream\";\r\nimport { OutStream } from \"../../system/io/OutStream\";\r\nimport { ALong } from \"../../system/runtime/ALong\";\r\nimport { ASystem } from \"../../system/runtime/ASystem\";\r\nimport { Numbers } from \"../../system/runtime/Numbers\";\r\nimport { AttributeTypes } from \"./AttributeTypes\";\r\n\r\n/**\r\n * Class AttributeValue holds a single (typed) attribute value.\r\n *\r\n * @version 1.0 August 2013\r\n */\r\n/** @internal */\r\nexport class AttributeValue {\r\n /** The 'false' value */\r\n public static readonly FALSE: AttributeValue = AttributeValue.createBoolean(false);\r\n /** The 'true' value */\r\n public static readonly TRUE: AttributeValue = AttributeValue.createBoolean(true);\r\n\r\n /** The type */\r\n private _type: int32;\r\n /** The value for boolean/int1/int2/int4 types */\r\n private _valueI4: int32;\r\n /** The value for int8 types */\r\n private _valueI8: ALong;\r\n /** The value for float4 types */\r\n private _valueF4: float32;\r\n /** The value for float8 types */\r\n private _valueF8: float64;\r\n\r\n /**\r\n * Create a new (empty) value.\r\n */\r\n public constructor() {\r\n this._type = 0;\r\n this._valueI4 = 0;\r\n this._valueI8 = ALong.ZERO;\r\n this._valueF4 = 0.0;\r\n this._valueF8 = 0.0;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createBoolean(value: boolean): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setBoolean(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createInt1(value: int32): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setInt1(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createInt2(value: int32): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setInt2(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createInt4(value: int32): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setInt4(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createInt8(value: ALong): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setInt8(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createFloat4(value: float32): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setFloat4(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createFloat8(value: float64): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setFloat8(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createColor(value: int32): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setColor(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Get the type.\r\n * @return the type.\r\n */\r\n public getType(): int32 {\r\n return this._type;\r\n }\r\n\r\n /**\r\n * Clear the value.\r\n */\r\n public clear(): void {\r\n this._type = 0;\r\n }\r\n\r\n /**\r\n * Is this an empty value?\r\n * @return true for empty.\r\n */\r\n public isEmpty(): boolean {\r\n return (this._type == 0);\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getBoolean(): boolean {\r\n return (this._valueI4 != 0);\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getBooleanAsInt(): int32 {\r\n return this._valueI4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setBoolean(value: boolean): void {\r\n this._type = AttributeTypes.TYPE_BOOLEAN;\r\n if (value) this._valueI4 = 1;\r\n else this._valueI4 = 0;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setBooleanFromInt(value: int32): void {\r\n this._type = AttributeTypes.TYPE_BOOLEAN;\r\n if (value == 0) this._valueI4 = 0;\r\n else this._valueI4 = 1;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getInt1(): int32 {\r\n return this._valueI4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setInt1(value: int32): void {\r\n this._type = AttributeTypes.TYPE_INT1;\r\n this._valueI4 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getInt2(): int32 {\r\n return this._valueI4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setInt2(value: int32): void {\r\n this._type = AttributeTypes.TYPE_INT2;\r\n this._valueI4 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getInt4(): int32 {\r\n return this._valueI4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setInt4(value: int32): void {\r\n this._type = AttributeTypes.TYPE_INT4;\r\n this._valueI4 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getInt8(): ALong {\r\n return this._valueI8;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setInt8(value: ALong): void {\r\n this._type = AttributeTypes.TYPE_INT8;\r\n this._valueI8 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getFloat4(): float32 {\r\n return this._valueF4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setFloat4(value: float32): void {\r\n this._type = AttributeTypes.TYPE_FLOAT4;\r\n this._valueF4 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getFloat8(): float64 {\r\n return this._valueF8;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setFloat8(value: float64): void {\r\n this._type = AttributeTypes.TYPE_FLOAT8;\r\n this._valueF8 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getColor(): int32 {\r\n return this._valueI4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setColor(value: int32): void {\r\n this._type = AttributeTypes.TYPE_COLOR;\r\n this._valueI4 = value;\r\n }\r\n\r\n /**\r\n * Check if the value equals another value.\r\n * @param other the other value.\r\n * @return true if same.\r\n */\r\n public same(other: AttributeValue): boolean {\r\n /* Check the type */\r\n if (other._type != this._type) return false;\r\n /* Check the value */\r\n if (this._type == AttributeTypes.TYPE_BOOLEAN) return (other._valueI4 == this._valueI4);\r\n if (this._type == AttributeTypes.TYPE_INT1) return (other._valueI4 == this._valueI4);\r\n if (this._type == AttributeTypes.TYPE_INT2) return (other._valueI4 == this._valueI4);\r\n if (this._type == AttributeTypes.TYPE_INT4) return (other._valueI4 == this._valueI4);\r\n if (this._type == AttributeTypes.TYPE_INT8) return (other._valueI8.same(this._valueI8));\r\n if (this._type == AttributeTypes.TYPE_FLOAT4) return (other._valueF4 == this._valueF4);\r\n if (this._type == AttributeTypes.TYPE_FLOAT8) return (other._valueF8 == this._valueF8);\r\n if (this._type == AttributeTypes.TYPE_COLOR) return (other._valueI4 == this._valueI4);\r\n /* Empty value */\r\n return true;\r\n }\r\n\r\n /**\r\n * Copy to another value.\r\n * @param other the other value to copy to.\r\n */\r\n public copyTo(other: AttributeValue): void {\r\n /* Copy the type */\r\n other._type = this._type;\r\n /* Check the value */\r\n if (this._type == AttributeTypes.TYPE_BOOLEAN) { other._valueI4 = this._valueI4; return; }\r\n if (this._type == AttributeTypes.TYPE_INT1) { other._valueI4 = this._valueI4; return; }\r\n if (this._type == AttributeTypes.TYPE_INT2) { other._valueI4 = this._valueI4; return; }\r\n if (this._type == AttributeTypes.TYPE_INT4) { other._valueI4 = this._valueI4; return; }\r\n if (this._type == AttributeTypes.TYPE_INT8) { other._valueI8 = this._valueI8; return; }\r\n if (this._type == AttributeTypes.TYPE_FLOAT4) { other._valueF4 = this._valueF4; return; }\r\n if (this._type == AttributeTypes.TYPE_FLOAT8) { other._valueF8 = this._valueF8; return; }\r\n if (this._type == AttributeTypes.TYPE_COLOR) { other._valueI4 = this._valueI4; return; }\r\n /* Empty value */\r\n }\r\n\r\n /**\r\n * Copy the value.\r\n * @return the copied value.\r\n */\r\n public copy(): AttributeValue {\r\n let copy: AttributeValue = new AttributeValue();\r\n this.copyTo(copy);\r\n return copy;\r\n }\r\n\r\n /**\r\n * Copy a list of values.\r\n * @return the copied values.\r\n */\r\n public static copyList(list: Array<AttributeValue>): Array<AttributeValue> {\r\n if (list == null) return null;\r\n let list2: Array<AttributeValue> = new Array<AttributeValue>(list.length);\r\n for (let i: number = 0; i < list.length; i++) list2[i] = list[i].copy();\r\n return list2;\r\n }\r\n\r\n /**\r\n * Get the value as a string.\r\n * @return the string.\r\n */\r\n public asString(): string {\r\n if (this._type == AttributeTypes.TYPE_BOOLEAN) return \"\" + this.getBoolean();\r\n else if (this._type == AttributeTypes.TYPE_INT1) return \"\" + this.getInt1();\r\n else if (this._type == AttributeTypes.TYPE_INT2) return \"\" + this.getInt2();\r\n else if (this._type == AttributeTypes.TYPE_INT4) return \"\" + this.getInt4();\r\n else if (this._type == AttributeTypes.TYPE_INT8) return \"\" + this.getInt8().toString();\r\n else if (this._type == AttributeTypes.TYPE_FLOAT4) return \"\" + this.getFloat4();\r\n else if (this._type == AttributeTypes.TYPE_FLOAT8) return \"\" + this.getFloat8();\r\n else if (this._type == AttributeTypes.TYPE_COLOR) return Numbers.rgbToString(this.getColor());\r\n return \"\";\r\n }\r\n\r\n /**\r\n * The standard toString method.\r\n * @see Object#toString\r\n */\r\n public toString(): string {\r\n return \"[AttributeValue:type=\" + AttributeTypes.getTypeName(this._type) + \",value=\" + this.asString() + \"]\";\r\n }\r\n\r\n /**\r\n * Create a default attribute value.\r\n * @param type the type of value.\r\n * @return a default value.\r\n */\r\n public static createDefault(type: int32): AttributeValue {\r\n if (type == AttributeTypes.TYPE_BOOLEAN) return AttributeValue.createBoolean(false);\r\n if (type == AttributeTypes.TYPE_INT1) return AttributeValue.createInt1(0);\r\n if (type == AttributeTypes.TYPE_INT2) return AttributeValue.createInt2(0);\r\n if (type == AttributeTypes.TYPE_INT4) return AttributeValue.createInt4(0);\r\n if (type == AttributeTypes.TYPE_INT8) return AttributeValue.createInt8(ALong.ZERO);\r\n if (type == AttributeTypes.TYPE_FLOAT4) return AttributeValue.createFloat4(0.0);\r\n if (type == AttributeTypes.TYPE_FLOAT8) return AttributeValue.createFloat8(0.0);\r\n if (type == AttributeTypes.TYPE_COLOR) return AttributeValue.createColor(0);\r\n ASystem.assertNot(true, \"Cannot create attribute value of type \" + type);\r\n return null;\r\n }\r\n\r\n /**\r\n * Read an attribute value.\r\n * @param buffer the buffer to read from.\r\n * @param bufferOffset the buffer offset to read from.\r\n * @param attributeType the type of the attribute.\r\n * @param the value to read into.\r\n */\r\n public static readFromBufferTo(buffer: ABuffer, bufferOffset: int32, attributeType: int32, value: AttributeValue): void {\r\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) value.setBoolean(LittleEndian.readBufferByte(buffer, bufferOffset) != 0);\r\n else if (attributeType == AttributeTypes.TYPE_INT1) value.setInt1(LittleEndian.readBufferByte(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_INT2) value.setInt2(LittleEndian.readBufferShort(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_INT4) value.setInt4(LittleEndian.readBufferInt(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_INT8) value.setInt8(LittleEndian.readBufferLong(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT4) value.setFloat4(LittleEndian.readBufferFloat(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT8) value.setFloat8(LittleEndian.readBufferDouble(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_COLOR) value.setColor(LittleEndian.readBufferInt3(buffer, bufferOffset));\r\n else ASystem.assertNot(true, \"Cannot read attribute value type \" + attributeType);\r\n }\r\n\r\n /**\r\n * Read an attribute value.\r\n * @param input the input stream to read from.\r\n * @param attributeType the type of the attribute.\r\n * @param the value to read into.\r\n */\r\n public static readFromStreamTo(stream: InStream, attributeType: int32, value: AttributeValue): void {\r\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) value.setBoolean(LittleEndian.readStreamByte(stream) != 0);\r\n else if (attributeType == AttributeTypes.TYPE_INT1) value.setInt1(LittleEndian.readStreamByte(stream));\r\n else if (attributeType == AttributeTypes.TYPE_INT2) value.setInt2(LittleEndian.readStreamShort(stream));\r\n else if (attributeType == AttributeTypes.TYPE_INT4) value.setInt4(LittleEndian.readStreamInt(stream));\r\n else if (attributeType == AttributeTypes.TYPE_INT8) value.setInt8(LittleEndian.readStreamLong(stream));\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT4) value.setFloat4(LittleEndian.readStreamFloat(stream));\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT8) value.setFloat8(LittleEndian.readStreamDouble(stream));\r\n else if (attributeType == AttributeTypes.TYPE_COLOR) value.setColor(LittleEndian.readStreamInt3(stream));\r\n else ASystem.assertNot(true, \"Cannot read attribute value type \" + attributeType);\r\n }\r\n\r\n /**\r\n * Read an attribute value.\r\n * @param input the input stream to read from.\r\n * @param attributeType the type of the attribute.\r\n * @return the value.\r\n */\r\n public static readFromStream(stream: InStream, attributeType: int32): AttributeValue {\r\n let value: AttributeValue = new AttributeValue();\r\n AttributeValue.readFromStreamTo(stream, attributeType, value);\r\n return value;\r\n }\r\n\r\n /**\r\n * Write an attribute value.\r\n * @param output the output stream to write to.\r\n * @param attributeType the type of the attribute.\r\n * @param value the value of the attribute.\r\n */\r\n public static writeToStream(stream: OutStream, attributeType: int32, value: AttributeValue): void {\r\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) LittleEndian.writeStreamByte(stream, value.getBooleanAsInt());\r\n else if (attributeType == AttributeTypes.TYPE_INT1) LittleEndian.writeStreamByte(stream, value.getInt1());\r\n else if (attributeType == AttributeTypes.TYPE_INT2) LittleEndian.writeStreamShort(stream, value.getInt2());\r\n else if (attributeType == AttributeTypes.TYPE_INT4) LittleEndian.writeStreamInt(stream, value.getInt4());\r\n else if (attributeType == AttributeTypes.TYPE_INT8) LittleEndian.writeStreamLong(stream, value.getInt8());\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT4) LittleEndian.writeStreamFloat(stream, value.getFloat4());\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT8) LittleEndian.writeStreamDouble(stream, value.getFloat8());\r\n else if (attributeType == AttributeTypes.TYPE_COLOR) LittleEndian.writeStreamInt3(stream, value.getColor());\r\n else ASystem.assertNot(true, \"Cannot write attribute value type \" + attributeType);\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"AttributeValue.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/AttributeValue.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAGhE,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,cAAc;IAiBvB;;OAEG;IACH;QACI,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;QACf,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;IACxB,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,aAAa,CAAC,KAAc;QACtC,IAAI,MAAM,GAAmB,IAAI,c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WAAW;YAAE,YAAY,CAAC,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;aAC1G,IAAI,aAAa,IAAI,cAAc,CAAC,WAAW;YAAE,YAAY,CAAC,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;aAC3G,IAAI,aAAa,IAAI,cAAc,CAAC,UAAU;YAAE,YAAY,CAAC,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;;YACvG,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,oCAAoC,GAAG,aAAa,CAAC,CAAC;IACvF,CAAC;;AArcD,wBAAwB;AACD,oBAAK,GAAmB,cAAc,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACnF,uBAAuB;AACA,mBAAI,GAAmB,cAAc,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { ABuffer } from \"../../system/buffer/ABuffer\";\r\nimport { LittleEndian } from \"../../system/buffer/LittleEndian\";\r\nimport { InStream } from \"../../system/io/InStream\";\r\nimport { OutStream } from \"../../system/io/OutStream\";\r\nimport { ALong } from \"../../system/runtime/ALong\";\r\nimport { ASystem } from \"../../system/runtime/ASystem\";\r\nimport { Numbers } from \"../../system/runtime/Numbers\";\r\nimport { AttributeTypes } from \"./AttributeTypes\";\r\n\r\n/**\r\n * Class AttributeValue holds a single (typed) attribute value.\r\n *\r\n * @version 1.0 August 2013\r\n */\r\n/** @internal */\r\nexport class AttributeValue {\r\n /** The 'false' value */\r\n public static readonly FALSE: AttributeValue = AttributeValue.createBoolean(false);\r\n /** The 'true' value */\r\n public static readonly TRUE: AttributeValue = AttributeValue.createBoolean(true);\r\n\r\n /** The type */\r\n private _type: int32;\r\n /** The value for boolean/int1/int2/int4 types */\r\n private _valueI4: int32;\r\n /** The value for int8 types */\r\n private _valueI8: ALong;\r\n /** The value for float4 types */\r\n private _valueF4: float32;\r\n /** The value for float8 types */\r\n private _valueF8: float64;\r\n\r\n /**\r\n * Create a new (empty) value.\r\n */\r\n public constructor() {\r\n this._type = 0;\r\n this._valueI4 = 0;\r\n this._valueI8 = ALong.ZERO;\r\n this._valueF4 = 0.0;\r\n this._valueF8 = 0.0;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createBoolean(value: boolean): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setBoolean(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createInt1(value: int32): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setInt1(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createInt2(value: int32): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setInt2(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createInt4(value: int32): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setInt4(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createInt8(value: ALong): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setInt8(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createFloat4(value: float32): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setFloat4(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createFloat8(value: float64): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setFloat8(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Create a new value.\r\n * @param value the value.\r\n */\r\n public static createColor(value: int32): AttributeValue {\r\n let avalue: AttributeValue = new AttributeValue();\r\n avalue.setColor(value);\r\n return avalue;\r\n }\r\n\r\n /**\r\n * Get the type.\r\n * @return the type.\r\n */\r\n public getType(): int32 {\r\n return this._type;\r\n }\r\n\r\n /**\r\n * Clear the value.\r\n */\r\n public clear(): void {\r\n this._type = 0;\r\n }\r\n\r\n /**\r\n * Is this an empty value?\r\n * @return true for empty.\r\n */\r\n public isEmpty(): boolean {\r\n return (this._type == 0);\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getBoolean(): boolean {\r\n return (this._valueI4 != 0);\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getBooleanAsInt(): int32 {\r\n return this._valueI4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setBoolean(value: boolean): void {\r\n this._type = AttributeTypes.TYPE_BOOLEAN;\r\n if (value) this._valueI4 = 1;\r\n else this._valueI4 = 0;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setBooleanFromInt(value: int32): void {\r\n this._type = AttributeTypes.TYPE_BOOLEAN;\r\n if (value == 0) this._valueI4 = 0;\r\n else this._valueI4 = 1;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getInt1(): int32 {\r\n return this._valueI4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setInt1(value: int32): void {\r\n this._type = AttributeTypes.TYPE_INT1;\r\n this._valueI4 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getInt2(): int32 {\r\n return this._valueI4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setInt2(value: int32): void {\r\n this._type = AttributeTypes.TYPE_INT2;\r\n this._valueI4 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getInt4(): int32 {\r\n return this._valueI4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setInt4(value: int32): void {\r\n this._type = AttributeTypes.TYPE_INT4;\r\n this._valueI4 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getInt8(): ALong {\r\n return this._valueI8;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setInt8(value: ALong): void {\r\n this._type = AttributeTypes.TYPE_INT8;\r\n this._valueI8 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getFloat4(): float32 {\r\n return this._valueF4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setFloat4(value: float32): void {\r\n this._type = AttributeTypes.TYPE_FLOAT4;\r\n this._valueF4 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getFloat8(): float64 {\r\n return this._valueF8;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setFloat8(value: float64): void {\r\n this._type = AttributeTypes.TYPE_FLOAT8;\r\n this._valueF8 = value;\r\n }\r\n\r\n /**\r\n * Get the value.\r\n * @return the value.\r\n */\r\n public getColor(): int32 {\r\n return this._valueI4;\r\n }\r\n\r\n /**\r\n * Set the value.\r\n * @param value the new value.\r\n */\r\n public setColor(value: int32): void {\r\n this._type = AttributeTypes.TYPE_COLOR;\r\n this._valueI4 = value;\r\n }\r\n\r\n /**\r\n * Check if the value equals another value.\r\n * @param other the other value.\r\n * @return true if same.\r\n */\r\n public same(other: AttributeValue): boolean {\r\n /* Check the type */\r\n if (other._type != this._type) return false;\r\n /* Check the value */\r\n if (this._type == AttributeTypes.TYPE_BOOLEAN) return (other._valueI4 == this._valueI4);\r\n if (this._type == AttributeTypes.TYPE_INT1) return (other._valueI4 == this._valueI4);\r\n if (this._type == AttributeTypes.TYPE_INT2) return (other._valueI4 == this._valueI4);\r\n if (this._type == AttributeTypes.TYPE_INT4) return (other._valueI4 == this._valueI4);\r\n if (this._type == AttributeTypes.TYPE_INT8) return (other._valueI8.same(this._valueI8));\r\n if (this._type == AttributeTypes.TYPE_FLOAT4) return (other._valueF4 == this._valueF4);\r\n if (this._type == AttributeTypes.TYPE_FLOAT8) return (other._valueF8 == this._valueF8);\r\n if (this._type == AttributeTypes.TYPE_COLOR) return (other._valueI4 == this._valueI4);\r\n /* Empty value */\r\n return true;\r\n }\r\n\r\n /**\r\n * Copy to another value.\r\n * @param other the other value to copy to.\r\n */\r\n public copyTo(other: AttributeValue): void {\r\n /* Copy the type */\r\n other._type = this._type;\r\n /* Check the value */\r\n if (this._type == AttributeTypes.TYPE_BOOLEAN) { other._valueI4 = this._valueI4; return; }\r\n if (this._type == AttributeTypes.TYPE_INT1) { other._valueI4 = this._valueI4; return; }\r\n if (this._type == AttributeTypes.TYPE_INT2) { other._valueI4 = this._valueI4; return; }\r\n if (this._type == AttributeTypes.TYPE_INT4) { other._valueI4 = this._valueI4; return; }\r\n if (this._type == AttributeTypes.TYPE_INT8) { other._valueI8 = this._valueI8; return; }\r\n if (this._type == AttributeTypes.TYPE_FLOAT4) { other._valueF4 = this._valueF4; return; }\r\n if (this._type == AttributeTypes.TYPE_FLOAT8) { other._valueF8 = this._valueF8; return; }\r\n if (this._type == AttributeTypes.TYPE_COLOR) { other._valueI4 = this._valueI4; return; }\r\n /* Empty value */\r\n }\r\n\r\n /**\r\n * Copy the value.\r\n * @return the copied value.\r\n */\r\n public copy(): AttributeValue {\r\n let copy: AttributeValue = new AttributeValue();\r\n this.copyTo(copy);\r\n return copy;\r\n }\r\n\r\n /**\r\n * Copy a list of values.\r\n * @return the copied values.\r\n */\r\n public static copyList(list: Array<AttributeValue>): Array<AttributeValue> {\r\n if (list == null) return null;\r\n let list2: Array<AttributeValue> = new Array<AttributeValue>(list.length);\r\n for (let i: number = 0; i < list.length; i++) list2[i] = list[i].copy();\r\n return list2;\r\n }\r\n\r\n /**\r\n * Get the value as a string.\r\n * @return the string.\r\n */\r\n public asString(): string {\r\n if (this._type == AttributeTypes.TYPE_BOOLEAN) return \"\" + this.getBoolean();\r\n else if (this._type == AttributeTypes.TYPE_INT1) return \"\" + this.getInt1();\r\n else if (this._type == AttributeTypes.TYPE_INT2) return \"\" + this.getInt2();\r\n else if (this._type == AttributeTypes.TYPE_INT4) return \"\" + this.getInt4();\r\n else if (this._type == AttributeTypes.TYPE_INT8) return \"\" + this.getInt8().toString();\r\n else if (this._type == AttributeTypes.TYPE_FLOAT4) return \"\" + this.getFloat4();\r\n else if (this._type == AttributeTypes.TYPE_FLOAT8) return \"\" + this.getFloat8();\r\n else if (this._type == AttributeTypes.TYPE_COLOR) return Numbers.rgbToString(this.getColor());\r\n return \"\";\r\n }\r\n\r\n /**\r\n * The standard toString method.\r\n * @see Object#toString\r\n */\r\n public toString(): string {\r\n return \"[AttributeValue:type=\" + AttributeTypes.getTypeName(this._type) + \",value=\" + this.asString() + \"]\";\r\n }\r\n\r\n /**\r\n * Create a default attribute value.\r\n * @param type the type of value.\r\n * @return a default value.\r\n */\r\n public static createDefault(type: int32): AttributeValue {\r\n if (type == AttributeTypes.TYPE_BOOLEAN) return AttributeValue.createBoolean(false);\r\n if (type == AttributeTypes.TYPE_INT1) return AttributeValue.createInt1(0);\r\n if (type == AttributeTypes.TYPE_INT2) return AttributeValue.createInt2(0);\r\n if (type == AttributeTypes.TYPE_INT4) return AttributeValue.createInt4(0);\r\n if (type == AttributeTypes.TYPE_INT8) return AttributeValue.createInt8(ALong.ZERO);\r\n if (type == AttributeTypes.TYPE_FLOAT4) return AttributeValue.createFloat4(0.0);\r\n if (type == AttributeTypes.TYPE_FLOAT8) return AttributeValue.createFloat8(0.0);\r\n if (type == AttributeTypes.TYPE_COLOR) return AttributeValue.createColor(0);\r\n ASystem.assertNot(true, \"Cannot create attribute value of type \" + type);\r\n return null;\r\n }\r\n\r\n /**\r\n * Read an attribute value.\r\n * @param buffer the buffer to read from.\r\n * @param bufferOffset the buffer offset to read from.\r\n * @param attributeType the type of the attribute.\r\n * @param the value to read into.\r\n */\r\n public static readFromBufferTo(buffer: ABuffer, bufferOffset: int32, attributeType: int32, value: AttributeValue): void {\r\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) value.setBoolean(LittleEndian.readBufferByte(buffer, bufferOffset) != 0);\r\n else if (attributeType == AttributeTypes.TYPE_INT1) value.setInt1(LittleEndian.readBufferByte(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_INT2) value.setInt2(LittleEndian.readBufferShort(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_INT4) value.setInt4(LittleEndian.readBufferInt(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_INT8) value.setInt8(LittleEndian.readBufferLong(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT4) value.setFloat4(LittleEndian.readBufferFloat(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT8) value.setFloat8(LittleEndian.readBufferDouble(buffer, bufferOffset));\r\n else if (attributeType == AttributeTypes.TYPE_COLOR) value.setColor(LittleEndian.readBufferInt3(buffer, bufferOffset));\r\n else ASystem.assertNot(true, \"Cannot read attribute value type \" + attributeType);\r\n }\r\n\r\n /**\r\n * Read an attribute value.\r\n * @param input the input stream to read from.\r\n * @param attributeType the type of the attribute.\r\n * @param the value to read into.\r\n */\r\n public static readFromStreamTo(stream: InStream, attributeType: int32, value: AttributeValue): void {\r\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) value.setBoolean(LittleEndian.readStreamByte(stream) != 0);\r\n else if (attributeType == AttributeTypes.TYPE_INT1) value.setInt1(LittleEndian.readStreamByte(stream));\r\n else if (attributeType == AttributeTypes.TYPE_INT2) value.setInt2(LittleEndian.readStreamShort(stream));\r\n else if (attributeType == AttributeTypes.TYPE_INT4) value.setInt4(LittleEndian.readStreamInt(stream));\r\n else if (attributeType == AttributeTypes.TYPE_INT8) value.setInt8(LittleEndian.readStreamLong(stream));\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT4) value.setFloat4(LittleEndian.readStreamFloat(stream));\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT8) value.setFloat8(LittleEndian.readStreamDouble(stream));\r\n else if (attributeType == AttributeTypes.TYPE_COLOR) value.setColor(LittleEndian.readStreamInt3(stream));\r\n else ASystem.assertNot(true, \"Cannot read attribute value type \" + attributeType);\r\n }\r\n\r\n /**\r\n * Read an attribute value.\r\n * @param input the input stream to read from.\r\n * @param attributeType the type of the attribute.\r\n * @return the value.\r\n */\r\n public static readFromStream(stream: InStream, attributeType: int32): AttributeValue {\r\n let value: AttributeValue = new AttributeValue();\r\n AttributeValue.readFromStreamTo(stream, attributeType, value);\r\n return value;\r\n }\r\n\r\n /**\r\n * Write an attribute value.\r\n * @param output the output stream to write to.\r\n * @param attributeType the type of the attribute.\r\n * @param value the value of the attribute.\r\n */\r\n public static writeToStream(stream: OutStream, attributeType: int32, value: AttributeValue): void {\r\n if (attributeType == AttributeTypes.TYPE_BOOLEAN) LittleEndian.writeStreamByte(stream, value.getBooleanAsInt());\r\n else if (attributeType == AttributeTypes.TYPE_INT1) LittleEndian.writeStreamByte(stream, value.getInt1());\r\n else if (attributeType == AttributeTypes.TYPE_INT2) LittleEndian.writeStreamShort(stream, value.getInt2());\r\n else if (attributeType == AttributeTypes.TYPE_INT4) LittleEndian.writeStreamInt(stream, value.getInt4());\r\n else if (attributeType == AttributeTypes.TYPE_INT8) LittleEndian.writeStreamLong(stream, value.getInt8());\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT4) LittleEndian.writeStreamFloat(stream, value.getFloat4());\r\n else if (attributeType == AttributeTypes.TYPE_FLOAT8) LittleEndian.writeStreamDouble(stream, value.getFloat8());\r\n else if (attributeType == AttributeTypes.TYPE_COLOR) LittleEndian.writeStreamInt3(stream, value.getColor());\r\n else ASystem.assertNot(true, \"Cannot write attribute value type \" + attributeType);\r\n }\r\n}\r\n"]}
|
|
@@ -17,7 +17,7 @@ import { PointAttribute } from "./PointAttribute";
|
|
|
17
17
|
* @version 1.0 November 2011
|
|
18
18
|
*/
|
|
19
19
|
/** @internal */
|
|
20
|
-
class CloudPoint {
|
|
20
|
+
export class CloudPoint {
|
|
21
21
|
/**
|
|
22
22
|
* Create a new point.
|
|
23
23
|
*/
|
|
@@ -312,5 +312,4 @@ class CloudPoint {
|
|
|
312
312
|
}
|
|
313
313
|
/** The name of this module */
|
|
314
314
|
CloudPoint.MODULE = "CloudPoint";
|
|
315
|
-
export { CloudPoint };
|
|
316
315
|
//# sourceMappingURL=CloudPoint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudPoint.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/CloudPoint.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,UAAU;IA0BnB;;OAEG;IACH;QACI,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,IAAI,C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C,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;QAChE,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI;YAAE,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,EAAE;gBAAE,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACtM,CAAC;;AAvVD,8BAA8B;AACN,iBAAM,GAAW,YAAY,CAAC;SAF7C,UAAU","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Coordinate } from \"../../spatial/geom/Coordinate\";\r\nimport { ALong } from \"../../system/runtime/ALong\";\r\nimport { Message } from \"../../system/runtime/Message\";\r\nimport { Numbers } from \"../../system/runtime/Numbers\";\r\nimport { AttributeValue } from \"./AttributeValue\";\r\nimport { PointAttribute } from \"./PointAttribute\";\r\n\r\n/**\r\n * Class CloudPoint defines a point in the point cloud.\r\n *\r\n * @version 1.0 November 2011\r\n */\r\n/** @internal */\r\nexport class CloudPoint {\r\n /** The name of this module */\r\n private static readonly MODULE: string = \"CloudPoint\";\r\n\r\n /** The index */\r\n private _index: ALong;\r\n /** The x position */\r\n private _x: float64;\r\n /** The y position */\r\n private _y: float64;\r\n /** The z position */\r\n private _z: float64;\r\n /** The ARGB color */\r\n private _color: int32;\r\n /** The intensity */\r\n private _intensity: int32;\r\n /** The weight */\r\n private _weight: int32;\r\n /** Has the point been selected? */\r\n private _selected: boolean;\r\n\r\n /** The definitions of the extra attributes */\r\n private _attributes: Array<PointAttribute>;\r\n /** The values of the extra attributes */\r\n private _values: Array<AttributeValue>;\r\n\r\n /**\r\n * Create a new point.\r\n */\r\n public constructor() {\r\n this._index = ALong.ZERO;\r\n this._x = 0.0;\r\n this._y = 0.0;\r\n this._z = 0.0;\r\n this._color = 0;\r\n this._intensity = 0;\r\n this._weight = 0;\r\n this._selected = false;\r\n this._attributes = null;\r\n this._values = null;\r\n }\r\n\r\n /**\r\n * Create a new point.\r\n * @param index the index of the point.\r\n * @param x the x position.\r\n * @param y the y position.\r\n * @param z the z position.\r\n * @param color the ARGB color.\r\n * @param intensity the intensity.\r\n * @return the new point.\r\n */\r\n public static create(index: ALong, x: float64, y: float64, z: float64, color: int32, intensity: int32): CloudPoint {\r\n let point: CloudPoint = new CloudPoint();\r\n point._index = index;\r\n point._x = x;\r\n point._y = y;\r\n point._z = z;\r\n point._color = color;\r\n point._intensity = intensity;\r\n return point;\r\n }\r\n\r\n /**\r\n * Create a new point.\r\n * @param attributes the definitions of the attributes.\r\n * @return the new point.\r\n */\r\n public static createWithAttributes(attributes: Array<PointAttribute>): CloudPoint {\r\n let point: CloudPoint = new CloudPoint();\r\n point._attributes = attributes;\r\n if (attributes != null) {\r\n point._values = new Array<AttributeValue>(attributes.length);\r\n for (let i: number = 0; i < attributes.length; i++) point._values[i] = new AttributeValue();\r\n }\r\n return point;\r\n }\r\n\r\n /**\r\n * Clear the point.\r\n */\r\n public clear(): void {\r\n this._index = ALong.ZERO;\r\n this._x = 0.0;\r\n this._y = 0.0;\r\n this._z = 0.0;\r\n this._color = 0;\r\n this._intensity = 0;\r\n this._weight = 0;\r\n this._selected = false;\r\n }\r\n\r\n /**\r\n * Get the index.\r\n * @return the index.\r\n */\r\n public getIndex(): ALong {\r\n return this._index;\r\n }\r\n\r\n /**\r\n * Set the index.\r\n * @param index the index.\r\n */\r\n public setIndex(index: ALong): void {\r\n this._index = index;\r\n }\r\n\r\n /**\r\n * Get the x position.\r\n * @return the x position.\r\n */\r\n public getX(): float64 {\r\n return this._x;\r\n }\r\n\r\n /**\r\n * Set the x position.\r\n * @param x the new x position.\r\n */\r\n public setX(x: float64): void {\r\n this._x = x;\r\n }\r\n\r\n /**\r\n * Get the y position.\r\n * @return the y position.\r\n */\r\n public getY(): float64 {\r\n return this._y;\r\n }\r\n\r\n /**\r\n * Set the y position.\r\n * @param y the new y position.\r\n */\r\n public setY(y: float64): void {\r\n this._y = y;\r\n }\r\n\r\n /**\r\n * Get the z position.\r\n * @return the z position.\r\n */\r\n public getZ(): float64 {\r\n return this._z;\r\n }\r\n\r\n /**\r\n * Set the z position.\r\n * @param z the new z position.\r\n */\r\n public setZ(z: float64): void {\r\n this._z = z;\r\n }\r\n\r\n /**\r\n * Get the ARGB color.\r\n * @return the color.\r\n */\r\n public getColor(): int32 {\r\n return this._color;\r\n }\r\n\r\n /**\r\n * Set the color.\r\n * @param color the new color.\r\n */\r\n public setColor(color: int32): void {\r\n this._color = color;\r\n }\r\n\r\n /**\r\n * Get the intensity.\r\n * @return the intensity.\r\n */\r\n public getIntensity(): int32 {\r\n return this._intensity;\r\n }\r\n\r\n /**\r\n * Set the intensity.\r\n * @param intensity the new intensity.\r\n */\r\n public setIntensity(intensity: int32): void {\r\n this._intensity = intensity;\r\n }\r\n\r\n /**\r\n * Get the weight.\r\n * @return the weight.\r\n */\r\n public getWeight(): int32 {\r\n return this._weight;\r\n }\r\n\r\n /**\r\n * Set the weight.\r\n * @param weight the weight.\r\n */\r\n public setWeight(weight: int32): void {\r\n this._weight = weight;\r\n }\r\n\r\n /**\r\n * Has the point been selected?\r\n * @return true if selected.\r\n */\r\n public isSelected(): boolean {\r\n return this._selected;\r\n }\r\n\r\n /**\r\n * Select the point.\r\n * @param selected true if the point has been selected.\r\n */\r\n public setSelected(selected: boolean): void {\r\n this._selected = selected;\r\n }\r\n\r\n /**\r\n * Get the attribute definitions.\r\n * @return the attribute definitions.\r\n */\r\n public getAttributes(): Array<PointAttribute> {\r\n return this._attributes;\r\n }\r\n\r\n /**\r\n * Get an attribute definitions.\r\n * @param index the index of the attribute.\r\n * @return an attribute definitions.\r\n */\r\n public getAttribute(index: int32): PointAttribute {\r\n return this._attributes[index];\r\n }\r\n\r\n /**\r\n * Get the attribute values.\r\n * @return the attribute values.\r\n */\r\n public getAttributeValues(): Array<AttributeValue> {\r\n return this._values;\r\n }\r\n\r\n /**\r\n * Get an attribute value.\r\n * @param index the index of the value.\r\n * @return the value.\r\n */\r\n public getAttributeValue(index: int32): AttributeValue {\r\n return this._values[index];\r\n }\r\n\r\n /**\r\n * Get an attribute value.\r\n * @param attributeName the name of the attribute.\r\n * @return the value.\r\n */\r\n public getNamedAttributeValue(attributeName: string): AttributeValue {\r\n let index: int32 = PointAttribute.indexOfName(this._attributes, attributeName);\r\n return (index < 0) ? (null) : this._values[index];\r\n }\r\n\r\n /**\r\n * Set the attributes.\r\n * @param attributes the definitions of the attributes.\r\n * @param values the values of the attributes.\r\n */\r\n public setAttributes(attributes: Array<PointAttribute>, values: Array<AttributeValue>): void {\r\n this._attributes = attributes;\r\n this._values = values;\r\n }\r\n\r\n /**\r\n * Copy the values to another point.\r\n * @param other the other point.\r\n */\r\n public copyTo(other: CloudPoint): void {\r\n other._index = this._index;\r\n other._x = this._x;\r\n other._y = this._y;\r\n other._z = this._z;\r\n other._color = this._color;\r\n other._intensity = this._intensity;\r\n other._weight = this._weight;\r\n other._selected = this._selected;\r\n other._attributes = this._attributes;\r\n other._values = AttributeValue.copyList(this._values);\r\n }\r\n\r\n /**\r\n * Make a copy.\r\n * @return a copy.\r\n */\r\n public copy(): CloudPoint {\r\n let copy: CloudPoint = new CloudPoint();\r\n this.copyTo(copy);\r\n return copy;\r\n }\r\n\r\n /**\r\n * Get the distance to another point.\r\n * @param other the other point.\r\n * @return the distance.\r\n */\r\n public getDistance(other: CloudPoint): float64 {\r\n let dx: float64 = (other._x - this._x);\r\n let dy: float64 = (other._y - this._y);\r\n let dz: float64 = (other._z - this._z);\r\n return Math.sqrt(dx * dx + dy * dy + dz * dz);\r\n }\r\n\r\n /**\r\n * Get the square distance to another point.\r\n * @param other the other point.\r\n * @return the square distance.\r\n */\r\n public getSquareDistance(other: CloudPoint): float64 {\r\n let dx: float64 = (other._x - this._x);\r\n let dy: float64 = (other._y - this._y);\r\n let dz: float64 = (other._z - this._z);\r\n return (dx * dx + dy * dy + dz * dz);\r\n }\r\n\r\n /**\r\n * Get a coordinate.\r\n * @return a coordinate.\r\n */\r\n public getCoordinate(): Coordinate {\r\n return new Coordinate(this._x, this._y, this._z);\r\n }\r\n\r\n /**\r\n * Print the point.\r\n */\r\n public print(): void {\r\n Message.print(CloudPoint.MODULE, \"Index: \" + this._index);\r\n Message.print(CloudPoint.MODULE, \"Position: \" + this._x + \",\" + this._y + \",\" + this._z);\r\n Message.print(CloudPoint.MODULE, \"Color: \" + Numbers.rgbToString(this._color));\r\n Message.print(CloudPoint.MODULE, \"Intensity: \" + this._intensity);\r\n Message.print(CloudPoint.MODULE, \"Weight: \" + this._weight);\r\n Message.print(CloudPoint.MODULE, \"Selected? \" + this._selected);\r\n if (this._attributes != null) for (let i: number = 0; i < this._attributes.length; i++) Message.print(CloudPoint.MODULE, \"Attribute '\" + this._attributes[i].getName() + \"': \" + this._values[i]);\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"CloudPoint.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/CloudPoint.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,OAAO,EA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AAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAC/E,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;QAClE,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5D,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;QAChE,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI;YAAE,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,EAAE;gBAAE,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACtM,CAAC;;AAvVD,8BAA8B;AACN,iBAAM,GAAW,YAAY,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Coordinate } from \"../../spatial/geom/Coordinate\";\r\nimport { ALong } from \"../../system/runtime/ALong\";\r\nimport { Message } from \"../../system/runtime/Message\";\r\nimport { Numbers } from \"../../system/runtime/Numbers\";\r\nimport { AttributeValue } from \"./AttributeValue\";\r\nimport { PointAttribute } from \"./PointAttribute\";\r\n\r\n/**\r\n * Class CloudPoint defines a point in the point cloud.\r\n *\r\n * @version 1.0 November 2011\r\n */\r\n/** @internal */\r\nexport class CloudPoint {\r\n /** The name of this module */\r\n private static readonly MODULE: string = \"CloudPoint\";\r\n\r\n /** The index */\r\n private _index: ALong;\r\n /** The x position */\r\n private _x: float64;\r\n /** The y position */\r\n private _y: float64;\r\n /** The z position */\r\n private _z: float64;\r\n /** The ARGB color */\r\n private _color: int32;\r\n /** The intensity */\r\n private _intensity: int32;\r\n /** The weight */\r\n private _weight: int32;\r\n /** Has the point been selected? */\r\n private _selected: boolean;\r\n\r\n /** The definitions of the extra attributes */\r\n private _attributes: Array<PointAttribute>;\r\n /** The values of the extra attributes */\r\n private _values: Array<AttributeValue>;\r\n\r\n /**\r\n * Create a new point.\r\n */\r\n public constructor() {\r\n this._index = ALong.ZERO;\r\n this._x = 0.0;\r\n this._y = 0.0;\r\n this._z = 0.0;\r\n this._color = 0;\r\n this._intensity = 0;\r\n this._weight = 0;\r\n this._selected = false;\r\n this._attributes = null;\r\n this._values = null;\r\n }\r\n\r\n /**\r\n * Create a new point.\r\n * @param index the index of the point.\r\n * @param x the x position.\r\n * @param y the y position.\r\n * @param z the z position.\r\n * @param color the ARGB color.\r\n * @param intensity the intensity.\r\n * @return the new point.\r\n */\r\n public static create(index: ALong, x: float64, y: float64, z: float64, color: int32, intensity: int32): CloudPoint {\r\n let point: CloudPoint = new CloudPoint();\r\n point._index = index;\r\n point._x = x;\r\n point._y = y;\r\n point._z = z;\r\n point._color = color;\r\n point._intensity = intensity;\r\n return point;\r\n }\r\n\r\n /**\r\n * Create a new point.\r\n * @param attributes the definitions of the attributes.\r\n * @return the new point.\r\n */\r\n public static createWithAttributes(attributes: Array<PointAttribute>): CloudPoint {\r\n let point: CloudPoint = new CloudPoint();\r\n point._attributes = attributes;\r\n if (attributes != null) {\r\n point._values = new Array<AttributeValue>(attributes.length);\r\n for (let i: number = 0; i < attributes.length; i++) point._values[i] = new AttributeValue();\r\n }\r\n return point;\r\n }\r\n\r\n /**\r\n * Clear the point.\r\n */\r\n public clear(): void {\r\n this._index = ALong.ZERO;\r\n this._x = 0.0;\r\n this._y = 0.0;\r\n this._z = 0.0;\r\n this._color = 0;\r\n this._intensity = 0;\r\n this._weight = 0;\r\n this._selected = false;\r\n }\r\n\r\n /**\r\n * Get the index.\r\n * @return the index.\r\n */\r\n public getIndex(): ALong {\r\n return this._index;\r\n }\r\n\r\n /**\r\n * Set the index.\r\n * @param index the index.\r\n */\r\n public setIndex(index: ALong): void {\r\n this._index = index;\r\n }\r\n\r\n /**\r\n * Get the x position.\r\n * @return the x position.\r\n */\r\n public getX(): float64 {\r\n return this._x;\r\n }\r\n\r\n /**\r\n * Set the x position.\r\n * @param x the new x position.\r\n */\r\n public setX(x: float64): void {\r\n this._x = x;\r\n }\r\n\r\n /**\r\n * Get the y position.\r\n * @return the y position.\r\n */\r\n public getY(): float64 {\r\n return this._y;\r\n }\r\n\r\n /**\r\n * Set the y position.\r\n * @param y the new y position.\r\n */\r\n public setY(y: float64): void {\r\n this._y = y;\r\n }\r\n\r\n /**\r\n * Get the z position.\r\n * @return the z position.\r\n */\r\n public getZ(): float64 {\r\n return this._z;\r\n }\r\n\r\n /**\r\n * Set the z position.\r\n * @param z the new z position.\r\n */\r\n public setZ(z: float64): void {\r\n this._z = z;\r\n }\r\n\r\n /**\r\n * Get the ARGB color.\r\n * @return the color.\r\n */\r\n public getColor(): int32 {\r\n return this._color;\r\n }\r\n\r\n /**\r\n * Set the color.\r\n * @param color the new color.\r\n */\r\n public setColor(color: int32): void {\r\n this._color = color;\r\n }\r\n\r\n /**\r\n * Get the intensity.\r\n * @return the intensity.\r\n */\r\n public getIntensity(): int32 {\r\n return this._intensity;\r\n }\r\n\r\n /**\r\n * Set the intensity.\r\n * @param intensity the new intensity.\r\n */\r\n public setIntensity(intensity: int32): void {\r\n this._intensity = intensity;\r\n }\r\n\r\n /**\r\n * Get the weight.\r\n * @return the weight.\r\n */\r\n public getWeight(): int32 {\r\n return this._weight;\r\n }\r\n\r\n /**\r\n * Set the weight.\r\n * @param weight the weight.\r\n */\r\n public setWeight(weight: int32): void {\r\n this._weight = weight;\r\n }\r\n\r\n /**\r\n * Has the point been selected?\r\n * @return true if selected.\r\n */\r\n public isSelected(): boolean {\r\n return this._selected;\r\n }\r\n\r\n /**\r\n * Select the point.\r\n * @param selected true if the point has been selected.\r\n */\r\n public setSelected(selected: boolean): void {\r\n this._selected = selected;\r\n }\r\n\r\n /**\r\n * Get the attribute definitions.\r\n * @return the attribute definitions.\r\n */\r\n public getAttributes(): Array<PointAttribute> {\r\n return this._attributes;\r\n }\r\n\r\n /**\r\n * Get an attribute definitions.\r\n * @param index the index of the attribute.\r\n * @return an attribute definitions.\r\n */\r\n public getAttribute(index: int32): PointAttribute {\r\n return this._attributes[index];\r\n }\r\n\r\n /**\r\n * Get the attribute values.\r\n * @return the attribute values.\r\n */\r\n public getAttributeValues(): Array<AttributeValue> {\r\n return this._values;\r\n }\r\n\r\n /**\r\n * Get an attribute value.\r\n * @param index the index of the value.\r\n * @return the value.\r\n */\r\n public getAttributeValue(index: int32): AttributeValue {\r\n return this._values[index];\r\n }\r\n\r\n /**\r\n * Get an attribute value.\r\n * @param attributeName the name of the attribute.\r\n * @return the value.\r\n */\r\n public getNamedAttributeValue(attributeName: string): AttributeValue {\r\n let index: int32 = PointAttribute.indexOfName(this._attributes, attributeName);\r\n return (index < 0) ? (null) : this._values[index];\r\n }\r\n\r\n /**\r\n * Set the attributes.\r\n * @param attributes the definitions of the attributes.\r\n * @param values the values of the attributes.\r\n */\r\n public setAttributes(attributes: Array<PointAttribute>, values: Array<AttributeValue>): void {\r\n this._attributes = attributes;\r\n this._values = values;\r\n }\r\n\r\n /**\r\n * Copy the values to another point.\r\n * @param other the other point.\r\n */\r\n public copyTo(other: CloudPoint): void {\r\n other._index = this._index;\r\n other._x = this._x;\r\n other._y = this._y;\r\n other._z = this._z;\r\n other._color = this._color;\r\n other._intensity = this._intensity;\r\n other._weight = this._weight;\r\n other._selected = this._selected;\r\n other._attributes = this._attributes;\r\n other._values = AttributeValue.copyList(this._values);\r\n }\r\n\r\n /**\r\n * Make a copy.\r\n * @return a copy.\r\n */\r\n public copy(): CloudPoint {\r\n let copy: CloudPoint = new CloudPoint();\r\n this.copyTo(copy);\r\n return copy;\r\n }\r\n\r\n /**\r\n * Get the distance to another point.\r\n * @param other the other point.\r\n * @return the distance.\r\n */\r\n public getDistance(other: CloudPoint): float64 {\r\n let dx: float64 = (other._x - this._x);\r\n let dy: float64 = (other._y - this._y);\r\n let dz: float64 = (other._z - this._z);\r\n return Math.sqrt(dx * dx + dy * dy + dz * dz);\r\n }\r\n\r\n /**\r\n * Get the square distance to another point.\r\n * @param other the other point.\r\n * @return the square distance.\r\n */\r\n public getSquareDistance(other: CloudPoint): float64 {\r\n let dx: float64 = (other._x - this._x);\r\n let dy: float64 = (other._y - this._y);\r\n let dz: float64 = (other._z - this._z);\r\n return (dx * dx + dy * dy + dz * dz);\r\n }\r\n\r\n /**\r\n * Get a coordinate.\r\n * @return a coordinate.\r\n */\r\n public getCoordinate(): Coordinate {\r\n return new Coordinate(this._x, this._y, this._z);\r\n }\r\n\r\n /**\r\n * Print the point.\r\n */\r\n public print(): void {\r\n Message.print(CloudPoint.MODULE, \"Index: \" + this._index);\r\n Message.print(CloudPoint.MODULE, \"Position: \" + this._x + \",\" + this._y + \",\" + this._z);\r\n Message.print(CloudPoint.MODULE, \"Color: \" + Numbers.rgbToString(this._color));\r\n Message.print(CloudPoint.MODULE, \"Intensity: \" + this._intensity);\r\n Message.print(CloudPoint.MODULE, \"Weight: \" + this._weight);\r\n Message.print(CloudPoint.MODULE, \"Selected? \" + this._selected);\r\n if (this._attributes != null) for (let i: number = 0; i < this._attributes.length; i++) Message.print(CloudPoint.MODULE, \"Attribute '\" + this._attributes[i].getName() + \"': \" + this._values[i]);\r\n }\r\n}\r\n"]}
|
|
@@ -10,7 +10,7 @@ import { PointData } from "./PointData";
|
|
|
10
10
|
* Class PointDataRaw stores point data with 8 or 16-bit XYZ geometry and 24-bit BGR color precision.
|
|
11
11
|
*/
|
|
12
12
|
/** @internal */
|
|
13
|
-
class PointDataRaw extends PointData {
|
|
13
|
+
export class PointDataRaw extends PointData {
|
|
14
14
|
/**
|
|
15
15
|
* Create new point data.
|
|
16
16
|
*/
|
|
@@ -63,5 +63,4 @@ class PointDataRaw extends PointData {
|
|
|
63
63
|
}
|
|
64
64
|
// the identifier of this data format
|
|
65
65
|
PointDataRaw.TYPE = 1;
|
|
66
|
-
export { PointDataRaw };
|
|
67
66
|
//# sourceMappingURL=PointDataRaw.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointDataRaw.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/PointDataRaw.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAcH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC;;GAEG;AACH,gBAAgB;AAChB,
|
|
1
|
+
{"version":3,"file":"PointDataRaw.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/PointDataRaw.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAcH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC;;GAEG;AACH,gBAAgB;AAChB,MAAM,OAAO,YAAa,SAAQ,SAAS;IAW1C;;OAEG;IACH,YAAmB,SAAoB,EAAE,MAAc,EAAE,QAAsB,EAAE,OAAoB,EAAE,MAAmB;QACzH,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAEM,OAAO,CAAC,UAAiB;QAC/B,IAAI,IAAI,CAAC,QAAQ,IAAI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C,CAAC;IAC5C,CAAC;IAEM,QAAQ,CAAC,UAAiB;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;IAC5C,CAAC;IAEM,OAAO,CAAC,UAAiB;QAC/B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC;IAC5C,CAAC;;AAhED,qCAAqC;AACd,iBAAI,GAAU,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\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"]}
|
|
@@ -14,7 +14,7 @@ import { Strings } from "../../system/runtime/Strings";
|
|
|
14
14
|
* @version 1.0 December 2011
|
|
15
15
|
*/
|
|
16
16
|
/** @internal */
|
|
17
|
-
class ReadRequest {
|
|
17
|
+
export class ReadRequest {
|
|
18
18
|
/**
|
|
19
19
|
* Create a new request to read all data (geometry and attributes) (except deleted points).
|
|
20
20
|
*/
|
|
@@ -233,5 +233,4 @@ ReadRequest.READ_GEOMETRY = ReadRequest.getGeometry();
|
|
|
233
233
|
ReadRequest.READ_GEOMETRY_AND_COLOR = ReadRequest.getGeometryAndColor();
|
|
234
234
|
/** The request to read geometry and attributes */
|
|
235
235
|
ReadRequest.READ_ALL = ReadRequest.getGeometryAndAttributes();
|
|
236
|
-
export { ReadRequest };
|
|
237
236
|
//# sourceMappingURL=ReadRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReadRequest.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/ReadRequest.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,WAAW;IAiCpB;;OAEG;IACH;QACI,uBAAuB;QACvB,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC;QACnC,kCAAkC;QAClC,IAAI,CAAC,mBAAmB,GAAG,I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B,EAAE,CAAC;AAChG,kDAAkD;AAC3B,oBAAQ,GAAgB,WAAW,CAAC,wBAAwB,EAAE,CAAC;SAN7E,WAAW","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Bounds } from \"../../spatial/geom/Bounds\";\r\nimport { AList } from \"../../system/collection/AList\";\r\nimport { ALong } from \"../../system/runtime/ALong\";\r\nimport { Strings } from \"../../system/runtime/Strings\";\r\n\r\n/**\r\n * Class ReadRequest allows selective reading of information from a point cloud file.\r\n *\r\n * @version 1.0 December 2011\r\n */\r\n/** @internal */\r\nexport class ReadRequest {\r\n /** The request to only read the geometry */\r\n public static readonly READ_GEOMETRY: ReadRequest = ReadRequest.getGeometry();\r\n /** The request to only read the geometry and color */\r\n public static readonly READ_GEOMETRY_AND_COLOR: ReadRequest = ReadRequest.getGeometryAndColor();\r\n /** The request to read geometry and attributes */\r\n public static readonly READ_ALL: ReadRequest = ReadRequest.getGeometryAndAttributes();\r\n\r\n /** Should the geometry be read? */\r\n private _readGeometryAttribute: boolean;\r\n /** Should the color be read? */\r\n private _readColorAttribute: boolean;\r\n /** Should the intensity be read? */\r\n private _readIntensityAttribute: boolean;\r\n /** Should the weight be read? */\r\n private _readWeightAttribute: boolean;\r\n /** Should thinning be used? */\r\n private _thinning: int32;\r\n /** The list of extra attributes that should be read */\r\n private _extraAttributes: AList<string>;\r\n /** Should the deleted points be read as well? */\r\n private _readDeletedAttribute: boolean;\r\n\r\n /** An optional 2D area to filter */\r\n private _areaFilter: Bounds;\r\n\r\n /** The number read transactions */\r\n private _dataTransactions: int32;\r\n /** The number of bytes read for this request */\r\n private _dataSize: ALong;\r\n /** The number of nanoseconds spent reading data */\r\n private _dataReadTime: ALong;\r\n\r\n /**\r\n * Create a new request to read all data (geometry and attributes) (except deleted points).\r\n */\r\n public constructor() {\r\n /* Read the geometry */\r\n this._readGeometryAttribute = true;\r\n /* Read all standard attributes */\r\n this._readColorAttribute = true;\r\n this._readIntensityAttribute = true;\r\n this._readWeightAttribute = true;\r\n this._thinning = 0;\r\n /* Read all extra attributes */\r\n this._extraAttributes = new AList<string>();\r\n this._extraAttributes.add(\"*\");\r\n /* Default to not reading deleted points */\r\n this._readDeletedAttribute = false;\r\n /* Clear */\r\n this._areaFilter = null;\r\n this._dataTransactions = 0;\r\n this._dataSize = ALong.ZERO;\r\n this._dataReadTime = ALong.ZERO;\r\n }\r\n\r\n /**\r\n * Create a new request.\r\n * @param readColor should the color be read?\r\n * @param readIntensity should the intensity be read?\r\n * @param readWeight should the weight be read?\r\n * @param thinning should thinning be used?\r\n */\r\n public static create(readColor: boolean, readIntensity: boolean, readWeight: boolean, thinning: int32): ReadRequest {\r\n let request: ReadRequest = new ReadRequest();\r\n request._readColorAttribute = readColor;\r\n request._readIntensityAttribute = readIntensity;\r\n request._readWeightAttribute = readWeight;\r\n request._thinning = thinning;\r\n request._extraAttributes.clear();\r\n return request;\r\n }\r\n\r\n /**\r\n * Create the request to only read the geometry.\r\n * @return the request.\r\n */\r\n public static getGeometry(): ReadRequest {\r\n return ReadRequest.create(false/*color*/, false/*intensity*/, false/*weight*/, 0/*thinning*/);\r\n }\r\n\r\n /**\r\n * Create the request to only read the geometry and colot.\r\n * @return the request.\r\n */\r\n public static getGeometryAndColor(): ReadRequest {\r\n return ReadRequest.create(true/*color*/, false/*intensity*/, false/*weight*/, 0/*thinning*/);\r\n }\r\n\r\n /**\r\n * Create the request to read the full geometry and all attributes.\r\n * @return the request.\r\n */\r\n public static getGeometryAndAttributes(): ReadRequest {\r\n return new ReadRequest();\r\n }\r\n\r\n /**\r\n * Should the geometry be read?\r\n * @return true if it should be read.\r\n */\r\n public readGeometry(): boolean {\r\n return this._readGeometryAttribute;\r\n }\r\n\r\n /**\r\n * Should the geometry be read?\r\n * @param read true if it should be read.\r\n */\r\n public setReadGeometry(read: boolean): void {\r\n this._readGeometryAttribute = read;\r\n }\r\n\r\n /**\r\n * Should the color be read?\r\n * @return true if it should be read.\r\n */\r\n public readColor(): boolean {\r\n return this._readColorAttribute;\r\n }\r\n\r\n /**\r\n * Should the intensity be read?\r\n * @return true if it should be read.\r\n */\r\n public readIntensity(): boolean {\r\n return this._readIntensityAttribute;\r\n }\r\n\r\n /**\r\n * Should the weight be read?\r\n * @return true if it should be read.\r\n */\r\n public readWeight(): boolean {\r\n return this._readWeightAttribute;\r\n }\r\n\r\n /**\r\n * Should thinning be used?\r\n * @return the thinning factor.\r\n */\r\n public getThinning(): int32 {\r\n return this._thinning;\r\n }\r\n\r\n /**\r\n * Should the deleted points be read?\r\n * @return true if they should be read.\r\n */\r\n public readDeleted(): boolean {\r\n return this._readDeletedAttribute;\r\n }\r\n\r\n /**\r\n * Should the deleted points be read?\r\n * @param read true if they should be read.\r\n */\r\n public setReadDeleted(read: boolean): void {\r\n this._readDeletedAttribute = read;\r\n }\r\n\r\n /**\r\n * Should all extra attributes be read?\r\n * @return true if all extra attribute should be read.\r\n */\r\n public readAllExtraAttributes(): boolean {\r\n if (this._extraAttributes.size() != 1) return false;\r\n let extraAttribute: string = this._extraAttributes.get(0);\r\n return Strings.equals(extraAttribute, \"*\");\r\n }\r\n\r\n /**\r\n * Get the list of extra attributes to read.\r\n * @return the list of extra attributes to read.\r\n */\r\n public getExtraAttributes(): AList<string> {\r\n return this._extraAttributes;\r\n }\r\n\r\n /**\r\n * Set the list of extra attributes to read.\r\n * @param list the list of extra attributes to read.\r\n */\r\n public setExtraAttributes(list: AList<string>): void {\r\n this._extraAttributes = list;\r\n }\r\n\r\n /**\r\n * Add the name of an extra attribute to read.\r\n * @param attributeName the name of the attribute to read.\r\n * @return this request for convenient chaining.\r\n */\r\n public addExtraAttribute(attributeName: string): ReadRequest {\r\n this._extraAttributes.add(attributeName);\r\n return this;\r\n }\r\n\r\n /**\r\n * Get the area filter.\r\n * @return the area filter.\r\n */\r\n public getAreaFilter(): Bounds {\r\n return this._areaFilter;\r\n }\r\n\r\n /**\r\n * Set the area filter.\r\n * @param filter the new area filter.\r\n */\r\n public setAreaFilter(filter: Bounds): void {\r\n this._areaFilter = filter;\r\n }\r\n\r\n /**\r\n * Add a number of bytes to the data size.\r\n * @param size the number of bytes.\r\n */\r\n public addDataSize(size: int32): void {\r\n this._dataSize = this._dataSize.addInt(size);\r\n this._dataTransactions++;\r\n }\r\n\r\n /**\r\n * Get the data size of the request.\r\n * @return the number of bytes.\r\n */\r\n public getDataSize(): ALong {\r\n return this._dataSize;\r\n }\r\n\r\n /**\r\n * Clear the data size of the request.\r\n */\r\n public clearDataSize(): void {\r\n this._dataSize = ALong.ZERO;\r\n this._dataTransactions = 0;\r\n }\r\n\r\n /**\r\n * Get the number of data transactions.\r\n * @return the number of data transactions.\r\n */\r\n public getDataTransactions(): int32 {\r\n return this._dataTransactions;\r\n }\r\n\r\n /**\r\n * Add a number of nanoseconds to the data read time.\r\n * @param time the number of nanoseconds.\r\n */\r\n public addDataReadTime(time: ALong): void {\r\n this._dataReadTime = this._dataReadTime.add(time);\r\n }\r\n\r\n /**\r\n * Get the data read time of the request.\r\n * @return the number of nanoseconds.\r\n */\r\n public getDataReadTime(): ALong {\r\n return this._dataReadTime;\r\n }\r\n\r\n /**\r\n * Clear the data read time of the request.\r\n */\r\n public clearDataReadTime(): void {\r\n this._dataReadTime = ALong.ZERO;\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"ReadRequest.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/ReadRequest.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAA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;QAClB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAED;;OAEG;IACI,iBAAiB;QACpB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC;IACpC,CAAC;;AA1QD,4CAA4C;AACrB,yBAAa,GAAgB,WAAW,CAAC,WAAW,EAAE,CAAC;AAC9E,sDAAsD;AAC/B,mCAAuB,GAAgB,WAAW,CAAC,mBAAmB,EAAE,CAAC;AAChG,kDAAkD;AAC3B,oBAAQ,GAAgB,WAAW,CAAC,wBAAwB,EAAE,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Bounds } from \"../../spatial/geom/Bounds\";\r\nimport { AList } from \"../../system/collection/AList\";\r\nimport { ALong } from \"../../system/runtime/ALong\";\r\nimport { Strings } from \"../../system/runtime/Strings\";\r\n\r\n/**\r\n * Class ReadRequest allows selective reading of information from a point cloud file.\r\n *\r\n * @version 1.0 December 2011\r\n */\r\n/** @internal */\r\nexport class ReadRequest {\r\n /** The request to only read the geometry */\r\n public static readonly READ_GEOMETRY: ReadRequest = ReadRequest.getGeometry();\r\n /** The request to only read the geometry and color */\r\n public static readonly READ_GEOMETRY_AND_COLOR: ReadRequest = ReadRequest.getGeometryAndColor();\r\n /** The request to read geometry and attributes */\r\n public static readonly READ_ALL: ReadRequest = ReadRequest.getGeometryAndAttributes();\r\n\r\n /** Should the geometry be read? */\r\n private _readGeometryAttribute: boolean;\r\n /** Should the color be read? */\r\n private _readColorAttribute: boolean;\r\n /** Should the intensity be read? */\r\n private _readIntensityAttribute: boolean;\r\n /** Should the weight be read? */\r\n private _readWeightAttribute: boolean;\r\n /** Should thinning be used? */\r\n private _thinning: int32;\r\n /** The list of extra attributes that should be read */\r\n private _extraAttributes: AList<string>;\r\n /** Should the deleted points be read as well? */\r\n private _readDeletedAttribute: boolean;\r\n\r\n /** An optional 2D area to filter */\r\n private _areaFilter: Bounds;\r\n\r\n /** The number read transactions */\r\n private _dataTransactions: int32;\r\n /** The number of bytes read for this request */\r\n private _dataSize: ALong;\r\n /** The number of nanoseconds spent reading data */\r\n private _dataReadTime: ALong;\r\n\r\n /**\r\n * Create a new request to read all data (geometry and attributes) (except deleted points).\r\n */\r\n public constructor() {\r\n /* Read the geometry */\r\n this._readGeometryAttribute = true;\r\n /* Read all standard attributes */\r\n this._readColorAttribute = true;\r\n this._readIntensityAttribute = true;\r\n this._readWeightAttribute = true;\r\n this._thinning = 0;\r\n /* Read all extra attributes */\r\n this._extraAttributes = new AList<string>();\r\n this._extraAttributes.add(\"*\");\r\n /* Default to not reading deleted points */\r\n this._readDeletedAttribute = false;\r\n /* Clear */\r\n this._areaFilter = null;\r\n this._dataTransactions = 0;\r\n this._dataSize = ALong.ZERO;\r\n this._dataReadTime = ALong.ZERO;\r\n }\r\n\r\n /**\r\n * Create a new request.\r\n * @param readColor should the color be read?\r\n * @param readIntensity should the intensity be read?\r\n * @param readWeight should the weight be read?\r\n * @param thinning should thinning be used?\r\n */\r\n public static create(readColor: boolean, readIntensity: boolean, readWeight: boolean, thinning: int32): ReadRequest {\r\n let request: ReadRequest = new ReadRequest();\r\n request._readColorAttribute = readColor;\r\n request._readIntensityAttribute = readIntensity;\r\n request._readWeightAttribute = readWeight;\r\n request._thinning = thinning;\r\n request._extraAttributes.clear();\r\n return request;\r\n }\r\n\r\n /**\r\n * Create the request to only read the geometry.\r\n * @return the request.\r\n */\r\n public static getGeometry(): ReadRequest {\r\n return ReadRequest.create(false/*color*/, false/*intensity*/, false/*weight*/, 0/*thinning*/);\r\n }\r\n\r\n /**\r\n * Create the request to only read the geometry and colot.\r\n * @return the request.\r\n */\r\n public static getGeometryAndColor(): ReadRequest {\r\n return ReadRequest.create(true/*color*/, false/*intensity*/, false/*weight*/, 0/*thinning*/);\r\n }\r\n\r\n /**\r\n * Create the request to read the full geometry and all attributes.\r\n * @return the request.\r\n */\r\n public static getGeometryAndAttributes(): ReadRequest {\r\n return new ReadRequest();\r\n }\r\n\r\n /**\r\n * Should the geometry be read?\r\n * @return true if it should be read.\r\n */\r\n public readGeometry(): boolean {\r\n return this._readGeometryAttribute;\r\n }\r\n\r\n /**\r\n * Should the geometry be read?\r\n * @param read true if it should be read.\r\n */\r\n public setReadGeometry(read: boolean): void {\r\n this._readGeometryAttribute = read;\r\n }\r\n\r\n /**\r\n * Should the color be read?\r\n * @return true if it should be read.\r\n */\r\n public readColor(): boolean {\r\n return this._readColorAttribute;\r\n }\r\n\r\n /**\r\n * Should the intensity be read?\r\n * @return true if it should be read.\r\n */\r\n public readIntensity(): boolean {\r\n return this._readIntensityAttribute;\r\n }\r\n\r\n /**\r\n * Should the weight be read?\r\n * @return true if it should be read.\r\n */\r\n public readWeight(): boolean {\r\n return this._readWeightAttribute;\r\n }\r\n\r\n /**\r\n * Should thinning be used?\r\n * @return the thinning factor.\r\n */\r\n public getThinning(): int32 {\r\n return this._thinning;\r\n }\r\n\r\n /**\r\n * Should the deleted points be read?\r\n * @return true if they should be read.\r\n */\r\n public readDeleted(): boolean {\r\n return this._readDeletedAttribute;\r\n }\r\n\r\n /**\r\n * Should the deleted points be read?\r\n * @param read true if they should be read.\r\n */\r\n public setReadDeleted(read: boolean): void {\r\n this._readDeletedAttribute = read;\r\n }\r\n\r\n /**\r\n * Should all extra attributes be read?\r\n * @return true if all extra attribute should be read.\r\n */\r\n public readAllExtraAttributes(): boolean {\r\n if (this._extraAttributes.size() != 1) return false;\r\n let extraAttribute: string = this._extraAttributes.get(0);\r\n return Strings.equals(extraAttribute, \"*\");\r\n }\r\n\r\n /**\r\n * Get the list of extra attributes to read.\r\n * @return the list of extra attributes to read.\r\n */\r\n public getExtraAttributes(): AList<string> {\r\n return this._extraAttributes;\r\n }\r\n\r\n /**\r\n * Set the list of extra attributes to read.\r\n * @param list the list of extra attributes to read.\r\n */\r\n public setExtraAttributes(list: AList<string>): void {\r\n this._extraAttributes = list;\r\n }\r\n\r\n /**\r\n * Add the name of an extra attribute to read.\r\n * @param attributeName the name of the attribute to read.\r\n * @return this request for convenient chaining.\r\n */\r\n public addExtraAttribute(attributeName: string): ReadRequest {\r\n this._extraAttributes.add(attributeName);\r\n return this;\r\n }\r\n\r\n /**\r\n * Get the area filter.\r\n * @return the area filter.\r\n */\r\n public getAreaFilter(): Bounds {\r\n return this._areaFilter;\r\n }\r\n\r\n /**\r\n * Set the area filter.\r\n * @param filter the new area filter.\r\n */\r\n public setAreaFilter(filter: Bounds): void {\r\n this._areaFilter = filter;\r\n }\r\n\r\n /**\r\n * Add a number of bytes to the data size.\r\n * @param size the number of bytes.\r\n */\r\n public addDataSize(size: int32): void {\r\n this._dataSize = this._dataSize.addInt(size);\r\n this._dataTransactions++;\r\n }\r\n\r\n /**\r\n * Get the data size of the request.\r\n * @return the number of bytes.\r\n */\r\n public getDataSize(): ALong {\r\n return this._dataSize;\r\n }\r\n\r\n /**\r\n * Clear the data size of the request.\r\n */\r\n public clearDataSize(): void {\r\n this._dataSize = ALong.ZERO;\r\n this._dataTransactions = 0;\r\n }\r\n\r\n /**\r\n * Get the number of data transactions.\r\n * @return the number of data transactions.\r\n */\r\n public getDataTransactions(): int32 {\r\n return this._dataTransactions;\r\n }\r\n\r\n /**\r\n * Add a number of nanoseconds to the data read time.\r\n * @param time the number of nanoseconds.\r\n */\r\n public addDataReadTime(time: ALong): void {\r\n this._dataReadTime = this._dataReadTime.add(time);\r\n }\r\n\r\n /**\r\n * Get the data read time of the request.\r\n * @return the number of nanoseconds.\r\n */\r\n public getDataReadTime(): ALong {\r\n return this._dataReadTime;\r\n }\r\n\r\n /**\r\n * Clear the data read time of the request.\r\n */\r\n public clearDataReadTime(): void {\r\n this._dataReadTime = ALong.ZERO;\r\n }\r\n}\r\n"]}
|
|
@@ -14,7 +14,7 @@ import { PointAttribute } from "./PointAttribute";
|
|
|
14
14
|
* @version 1.0 October 2013
|
|
15
15
|
*/
|
|
16
16
|
/** @internal */
|
|
17
|
-
class StandardAttributes {
|
|
17
|
+
export class StandardAttributes {
|
|
18
18
|
/**
|
|
19
19
|
* No instances.
|
|
20
20
|
*/
|
|
@@ -41,5 +41,4 @@ StandardAttributes.DEFAULT_GPS_TIME = AttributeValue.createFloat8(0.0);
|
|
|
41
41
|
StandardAttributes.GPS_TIME_OFFSET = 1.0e9;
|
|
42
42
|
/** The number of seconds in a week (7*24*3600) */
|
|
43
43
|
StandardAttributes.GPS_WEEK_SECONDS = 604800.0;
|
|
44
|
-
export { StandardAttributes };
|
|
45
44
|
//# sourceMappingURL=StandardAttributes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardAttributes.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/StandardAttributes.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,
|
|
1
|
+
{"version":3,"file":"StandardAttributes.js","sourceRoot":"","sources":["../../../../src/pointcloud/model/StandardAttributes.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,kBAAkB;IAyB3B;;O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AACxD,kDAAkD;AAC3B,mCAAgB,GAAY,QAAQ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.pointcloud.model;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { 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":"Block.js","sourceRoot":"","sources":["../../../../src/pointcloud/render/Block.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAYH,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAMxD;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,KAAK;IAQjB;;;OAGG;IACH,YAAmB,KAAiB;QACnC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACtB,CAAC;IAED;;;OAGG;IACI,aAAa;QACnB,OAAO,IAAI,CAAC,MAAM,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACI,cAAc,CAAC,KAAY;QACjC,OAAO,KAAK,CAAC,YAAY,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAClE,CAAC;IAED;;;;OAIM;IACE,MAAM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SAAS,IAAI,IAAI,CAAC,CAAC;IACjC,CAAC;IAED;;;;OAIG;IACI,QAAQ,CAAC,YAA+B;QAC9C,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE,CAAC;YAC5B,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YAC/C,OAAO,IAAI,CAAC;QACb,CAAC;QACD,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,QAAQ,CAAC,aAAwB;QACvC,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QACvC,IAAI,KAAK,GAAU,aAAa,CAAC,CAAC,CAAC;QACnC,IAAI,KAAK,GAA8B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAChE,IAAI,KAAK,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAC/B,IAAI,KAAK,GAAU,aAAa,CAAC,CAAC,CAAC;QACnC,IAAI,IAAI,GAAsB,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC/C,IAAI,IAAI,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAC9B,IAAI,KAAK,GAAU,aAAa,CAAC,CAAC,CAAC;QACnC,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;CACD","sourcesContent":["/*---------------------------------------------------------------------------------------------\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"]}
|
|
@@ -20,7 +20,7 @@ import { ViewTree } from "./ViewTree";
|
|
|
20
20
|
* @version 1.0 December 2017
|
|
21
21
|
*/
|
|
22
22
|
/** @internal */
|
|
23
|
-
class DataManager {
|
|
23
|
+
export class DataManager {
|
|
24
24
|
/**
|
|
25
25
|
* Create a new data model (to be shared between different views).
|
|
26
26
|
* @param pointCloudReader the reader of the pointcloud file.
|
|
@@ -336,5 +336,4 @@ DataManager.MODULE = "DataManager";
|
|
|
336
336
|
DataManager.MAX_FILE_CONTENT_SIZE = 128 * 1024;
|
|
337
337
|
/** The expire time to unload unused point data (seconds) */
|
|
338
338
|
DataManager.POINT_DATA_EXIRE_TIME = 5 * 60.0;
|
|
339
|
-
export { DataManager };
|
|
340
339
|
//# sourceMappingURL=DataManager.js.map
|