mars3d-cesium 1.94.0 → 1.94.3
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/Build/Cesium/Cesium.d.ts +228 -200
- package/Build/Cesium/Cesium.js +10 -10
- package/Build/Cesium/ThirdParty/Workers/z-worker-pako.js +1 -1
- package/Build/Cesium/ThirdParty/google-earth-dbroot-parser.js +1 -1
- package/Build/Cesium/Widgets/CesiumInspector/CesiumInspector.css +1 -1
- package/Build/Cesium/Widgets/widgets.css +1 -1
- package/Build/Cesium/Workers/{AxisAlignedBoundingBox-ef345290.js → AxisAlignedBoundingBox-e89a3bd3.js} +1 -1
- package/Build/Cesium/Workers/{BoundingRectangle-ffeef844.js → BoundingRectangle-e2b9571d.js} +1 -1
- package/Build/Cesium/Workers/{BoxGeometry-7949613c.js → BoxGeometry-d2742d52.js} +1 -1
- package/Build/Cesium/Workers/{Color-12d5ab6e.js → Color-4cbe9dde.js} +1 -1
- package/Build/Cesium/Workers/{CoplanarPolygonGeometryLibrary-bc611400.js → CoplanarPolygonGeometryLibrary-f62a086d.js} +1 -1
- package/Build/Cesium/Workers/{CorridorGeometryLibrary-02577142.js → CorridorGeometryLibrary-8d94bd35.js} +1 -1
- package/Build/Cesium/Workers/{CylinderGeometry-9ab4b6de.js → CylinderGeometry-4376f4a9.js} +1 -1
- package/Build/Cesium/Workers/{EllipseGeometry-7f98d885.js → EllipseGeometry-3718e431.js} +1 -1
- package/Build/Cesium/Workers/{EllipseGeometryLibrary-70ca3053.js → EllipseGeometryLibrary-7d9d8578.js} +1 -1
- package/Build/Cesium/Workers/{EllipseOutlineGeometry-a5a2b688.js → EllipseOutlineGeometry-cf92ef99.js} +1 -1
- package/Build/Cesium/Workers/{EllipsoidGeometry-591d0b9b.js → EllipsoidGeometry-84420be2.js} +1 -1
- package/Build/Cesium/Workers/{EllipsoidOutlineGeometry-650c7702.js → EllipsoidOutlineGeometry-1c25041e.js} +1 -1
- package/Build/Cesium/Workers/{EllipsoidTangentPlane-1cf43e5d.js → EllipsoidTangentPlane-d431886c.js} +1 -1
- package/Build/Cesium/Workers/{FrustumGeometry-9856383f.js → FrustumGeometry-3d1c78a9.js} +1 -1
- package/Build/Cesium/Workers/{GeometryAttribute-d50ea0de.js → GeometryAttribute-ad6fe63d.js} +1 -1
- package/Build/Cesium/Workers/{GeometryPipeline-20b6a6da.js → GeometryPipeline-58ed3258.js} +1 -1
- package/Build/Cesium/Workers/{IntersectionTests-4547e13f.js → IntersectionTests-c9a542c8.js} +1 -1
- package/Build/Cesium/Workers/{OrientedBoundingBox-966209b7.js → OrientedBoundingBox-87e36f5f.js} +1 -1
- package/Build/Cesium/Workers/{PolygonGeometryLibrary-2a7b65e7.js → PolygonGeometryLibrary-cc36562e.js} +1 -1
- package/Build/Cesium/Workers/{PolygonPipeline-a182ab3c.js → PolygonPipeline-b1cbbe6f.js} +1 -1
- package/Build/Cesium/Workers/{PolylinePipeline-4f5c4291.js → PolylinePipeline-7325c7b6.js} +1 -1
- package/Build/Cesium/Workers/{PolylineVolumeGeometryLibrary-bd0bbdaf.js → PolylineVolumeGeometryLibrary-c43e3160.js} +1 -1
- package/Build/Cesium/Workers/{PrimitivePipeline-8cf7c60b.js → PrimitivePipeline-7250dfa5.js} +1 -1
- package/Build/Cesium/Workers/{RectangleGeometryLibrary-a44974f6.js → RectangleGeometryLibrary-3e108daf.js} +1 -1
- package/Build/Cesium/Workers/{TerrainEncoding-365ddcc9.js → TerrainEncoding-96ae0eb9.js} +1 -1
- package/Build/Cesium/Workers/Transforms-3afcc791.js +39 -0
- package/Build/Cesium/Workers/{WallGeometryLibrary-55f64681.js → WallGeometryLibrary-2fbfc076.js} +1 -1
- package/Build/Cesium/Workers/combineGeometry.js +1 -1
- package/Build/Cesium/Workers/createBoxGeometry.js +1 -1
- package/Build/Cesium/Workers/createBoxOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createCircleGeometry.js +1 -1
- package/Build/Cesium/Workers/createCircleOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +1 -1
- package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createCorridorGeometry.js +1 -1
- package/Build/Cesium/Workers/createCorridorOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createCylinderGeometry.js +1 -1
- package/Build/Cesium/Workers/createCylinderOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createEllipseGeometry.js +1 -1
- package/Build/Cesium/Workers/createEllipseOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createEllipsoidGeometry.js +1 -1
- package/Build/Cesium/Workers/createEllipsoidOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createFrustumGeometry.js +1 -1
- package/Build/Cesium/Workers/createFrustumOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createGeometry.js +1 -1
- package/Build/Cesium/Workers/createGroundPolylineGeometry.js +1 -1
- package/Build/Cesium/Workers/createPlaneGeometry.js +1 -1
- package/Build/Cesium/Workers/createPlaneOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createPolygonGeometry.js +1 -1
- package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createPolylineGeometry.js +1 -1
- package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +1 -1
- package/Build/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createRectangleGeometry.js +1 -1
- package/Build/Cesium/Workers/createRectangleOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createSimplePolylineGeometry.js +1 -1
- package/Build/Cesium/Workers/createSphereGeometry.js +1 -1
- package/Build/Cesium/Workers/createSphereOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createVectorTileGeometries.js +1 -1
- package/Build/Cesium/Workers/createVectorTilePolygons.js +1 -1
- package/Build/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
- package/Build/Cesium/Workers/createVerticesFromHeightmap.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
- package/Build/Cesium/Workers/createWallGeometry.js +1 -1
- package/Build/Cesium/Workers/createWallOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +1 -1
- package/Build/package.json +1 -0
- package/package.json +6 -4
- package/Build/Cesium/Workers/AttributeCompression-6e71d14f.js +0 -1
- package/Build/Cesium/Workers/AttributeCompression-7a823eb1.js +0 -1
- package/Build/Cesium/Workers/AxisAlignedBoundingBox-6808e68a.js +0 -1
- package/Build/Cesium/Workers/AxisAlignedBoundingBox-dd1e93db.js +0 -1
- package/Build/Cesium/Workers/BoundingRectangle-0c088b10.js +0 -1
- package/Build/Cesium/Workers/BoundingRectangle-13e74a41.js +0 -1
- package/Build/Cesium/Workers/BoxGeometry-3d4876d9.js +0 -1
- package/Build/Cesium/Workers/BoxGeometry-c0d41d4f.js +0 -1
- package/Build/Cesium/Workers/Color-75e74066.js +0 -1
- package/Build/Cesium/Workers/Color-af5a56ba.js +0 -1
- package/Build/Cesium/Workers/ComponentDatatype-a9820060.js +0 -1
- package/Build/Cesium/Workers/CoplanarPolygonGeometryLibrary-0d63b099.js +0 -1
- package/Build/Cesium/Workers/CoplanarPolygonGeometryLibrary-63ae199f.js +0 -1
- package/Build/Cesium/Workers/CorridorGeometryLibrary-0169e68d.js +0 -1
- package/Build/Cesium/Workers/CorridorGeometryLibrary-a3fffc69.js +0 -1
- package/Build/Cesium/Workers/CylinderGeometry-068eebd3.js +0 -1
- package/Build/Cesium/Workers/CylinderGeometry-9b5e6460.js +0 -1
- package/Build/Cesium/Workers/CylinderGeometryLibrary-fe5ec654.js +0 -1
- package/Build/Cesium/Workers/EllipseGeometry-712fea19.js +0 -1
- package/Build/Cesium/Workers/EllipseGeometry-eeb1db07.js +0 -1
- package/Build/Cesium/Workers/EllipseGeometryLibrary-0ff34d76.js +0 -1
- package/Build/Cesium/Workers/EllipseGeometryLibrary-eedf4d0b.js +0 -1
- package/Build/Cesium/Workers/EllipseOutlineGeometry-7c871752.js +0 -1
- package/Build/Cesium/Workers/EllipseOutlineGeometry-abf90a31.js +0 -1
- package/Build/Cesium/Workers/EllipsoidGeodesic-7d405754.js +0 -1
- package/Build/Cesium/Workers/EllipsoidGeodesic-f4459924.js +0 -1
- package/Build/Cesium/Workers/EllipsoidGeometry-699fe483.js +0 -1
- package/Build/Cesium/Workers/EllipsoidGeometry-954ef938.js +0 -1
- package/Build/Cesium/Workers/EllipsoidOutlineGeometry-08ca8d96.js +0 -1
- package/Build/Cesium/Workers/EllipsoidOutlineGeometry-79998e39.js +0 -1
- package/Build/Cesium/Workers/EllipsoidRhumbLine-7b6199fa.js +0 -1
- package/Build/Cesium/Workers/EllipsoidRhumbLine-94e77fa4.js +0 -1
- package/Build/Cesium/Workers/EllipsoidTangentPlane-1cf39c37.js +0 -1
- package/Build/Cesium/Workers/EllipsoidTangentPlane-330be9cc.js +0 -1
- package/Build/Cesium/Workers/EncodedCartesian3-20914bf5.js +0 -1
- package/Build/Cesium/Workers/EncodedCartesian3-ee8e4156.js +0 -1
- package/Build/Cesium/Workers/FrustumGeometry-1ce1d73a.js +0 -1
- package/Build/Cesium/Workers/FrustumGeometry-1e1111d8.js +0 -1
- package/Build/Cesium/Workers/GeometryAttribute-71155085.js +0 -1
- package/Build/Cesium/Workers/GeometryAttribute-7a46074b.js +0 -1
- package/Build/Cesium/Workers/GeometryInstance-19ac39d5.js +0 -1
- package/Build/Cesium/Workers/GeometryInstance-86b030a6.js +0 -1
- package/Build/Cesium/Workers/GeometryPipeline-57ae8a09.js +0 -1
- package/Build/Cesium/Workers/GeometryPipeline-b15e7fd0.js +0 -1
- package/Build/Cesium/Workers/IndexDatatype-1cbc8622.js +0 -1
- package/Build/Cesium/Workers/IntersectionTests-93a038e3.js +0 -1
- package/Build/Cesium/Workers/IntersectionTests-f15438d8.js +0 -1
- package/Build/Cesium/Workers/Matrix2-1509208a.js +0 -1
- package/Build/Cesium/Workers/Matrix2-e6265fb0.js +0 -1
- package/Build/Cesium/Workers/OrientedBoundingBox-06b4fccc.js +0 -1
- package/Build/Cesium/Workers/OrientedBoundingBox-fa9056b2.js +0 -1
- package/Build/Cesium/Workers/Plane-042297c7.js +0 -1
- package/Build/Cesium/Workers/Plane-e3daa19b.js +0 -1
- package/Build/Cesium/Workers/PolygonGeometryLibrary-6c1ecc39.js +0 -1
- package/Build/Cesium/Workers/PolygonGeometryLibrary-cb0bc5e9.js +0 -1
- package/Build/Cesium/Workers/PolygonPipeline-32699305.js +0 -1
- package/Build/Cesium/Workers/PolygonPipeline-968b19bd.js +0 -1
- package/Build/Cesium/Workers/PolylinePipeline-39d7619d.js +0 -1
- package/Build/Cesium/Workers/PolylinePipeline-9b252c2a.js +0 -1
- package/Build/Cesium/Workers/PolylineVolumeGeometryLibrary-62034f07.js +0 -1
- package/Build/Cesium/Workers/PolylineVolumeGeometryLibrary-e9dd8941.js +0 -1
- package/Build/Cesium/Workers/PrimitivePipeline-7f75b0aa.js +0 -1
- package/Build/Cesium/Workers/PrimitivePipeline-e1f3eb3d.js +0 -1
- package/Build/Cesium/Workers/RectangleGeometryLibrary-12a48ca5.js +0 -1
- package/Build/Cesium/Workers/RectangleGeometryLibrary-18de78ad.js +0 -1
- package/Build/Cesium/Workers/TerrainEncoding-341cc7d2.js +0 -1
- package/Build/Cesium/Workers/TerrainEncoding-aa1bedce.js +0 -1
- package/Build/Cesium/Workers/Transforms-bf323bcf.js +0 -39
- package/Build/Cesium/Workers/Transforms-c84edde7.js +0 -39
- package/Build/Cesium/Workers/Transforms-fdc0a95d.js +0 -39
- package/Build/Cesium/Workers/WallGeometryLibrary-0cfe87c2.js +0 -1
- package/Build/Cesium/Workers/WallGeometryLibrary-ff159f75.js +0 -1
- package/Build/Cesium/Workers/WebMercatorProjection-2d827489.js +0 -1
- package/Build/Cesium/Workers/WebMercatorProjection-50f5da31.js +0 -1
- package/Build/Cesium/Workers/arrayRemoveDuplicates-fe254feb.js +0 -1
package/Build/Cesium/Cesium.d.ts
CHANGED
|
@@ -22462,7 +22462,7 @@ export class ModelVisualizer {
|
|
|
22462
22462
|
constructor(scene: Scene, entityCollection: EntityCollection);
|
|
22463
22463
|
/**
|
|
22464
22464
|
* Updates models created this visualizer to match their
|
|
22465
|
-
|
|
22465
|
+
Entity counterpart at the given time.
|
|
22466
22466
|
* @param time - The time to update to.
|
|
22467
22467
|
* @returns This function always returns true.
|
|
22468
22468
|
*/
|
|
@@ -27248,7 +27248,9 @@ export class Cesium3DTileContent {
|
|
|
27248
27248
|
*/
|
|
27249
27249
|
readonly texturesByteLength: number;
|
|
27250
27250
|
/**
|
|
27251
|
-
* Gets the amount of memory used by the batch table textures
|
|
27251
|
+
* Gets the amount of memory used by the batch table textures and any binary
|
|
27252
|
+
metadata properties not accounted for in geometryByteLength or
|
|
27253
|
+
texturesByteLength
|
|
27252
27254
|
*/
|
|
27253
27255
|
readonly batchTableByteLength: number;
|
|
27254
27256
|
/**
|
|
@@ -27317,7 +27319,7 @@ handler.setInputAction(function(movement) {
|
|
|
27317
27319
|
const length = propertyNames.length;
|
|
27318
27320
|
for (let i = 0; i < length; ++i) {
|
|
27319
27321
|
const propertyName = propertyNames[i];
|
|
27320
|
-
console.log(propertyName
|
|
27322
|
+
console.log(`{propertyName}: ${feature.getProperty(propertyName)}`);
|
|
27321
27323
|
}
|
|
27322
27324
|
}
|
|
27323
27325
|
}, Cesium.ScreenSpaceEventType.MOUSE_MOVE);
|
|
@@ -27379,7 +27381,7 @@ export class Cesium3DTileFeature {
|
|
|
27379
27381
|
const length = propertyNames.length;
|
|
27380
27382
|
for (let i = 0; i < length; ++i) {
|
|
27381
27383
|
const propertyName = propertyNames[i];
|
|
27382
|
-
console.log(propertyName
|
|
27384
|
+
console.log(`{propertyName}: ${feature.getProperty(propertyName)}`);
|
|
27383
27385
|
}
|
|
27384
27386
|
* @param name - The case-sensitive name of the property.
|
|
27385
27387
|
* @returns The value of the property or <code>undefined</code> if the feature does not have this property.
|
|
@@ -27465,7 +27467,7 @@ handler.setInputAction(function(movement) {
|
|
|
27465
27467
|
const length = propertyNames.length;
|
|
27466
27468
|
for (let i = 0; i < length; ++i) {
|
|
27467
27469
|
const propertyName = propertyNames[i];
|
|
27468
|
-
console.log(propertyName
|
|
27470
|
+
console.log(`{propertyName}: ${feature.getProperty(propertyName)}`);
|
|
27469
27471
|
}
|
|
27470
27472
|
}
|
|
27471
27473
|
}, Cesium.ScreenSpaceEventType.MOUSE_MOVE);
|
|
@@ -27655,7 +27657,7 @@ export class Cesium3DTilePointFeature {
|
|
|
27655
27657
|
const length = propertyNames.length;
|
|
27656
27658
|
for (let i = 0; i < length; ++i) {
|
|
27657
27659
|
const propertyName = propertyNames[i];
|
|
27658
|
-
console.log(propertyName
|
|
27660
|
+
console.log(`{propertyName} : ${feature.getProperty(propertyName)}`);
|
|
27659
27661
|
}
|
|
27660
27662
|
* @param name - The case-sensitive name of the property.
|
|
27661
27663
|
* @returns The value of the property or <code>undefined</code> if the feature does not have this property.
|
|
@@ -27714,6 +27716,8 @@ const tileset = scene.primitives.add(new Cesium.Cesium3DTileset({
|
|
|
27714
27716
|
* @param options.url - The url to a tileset JSON file.
|
|
27715
27717
|
* @param [options.show = true] - Determines if the tileset will be shown.
|
|
27716
27718
|
* @param [options.modelMatrix = Matrix4.IDENTITY] - A 4x4 transformation matrix that transforms the tileset's root tile.
|
|
27719
|
+
* @param [options.modelUpAxis = Axis.Y] - Which axis is considered up when loading models for tile contents.
|
|
27720
|
+
* @param [options.modelForwardAxis = Axis.X] - Which axis is considered forward when loading models for tile contents.
|
|
27717
27721
|
* @param [options.shadows = ShadowMode.ENABLED] - Determines whether the tileset casts or receives shadows from light sources.
|
|
27718
27722
|
* @param [options.maximumScreenSpaceError = 16] - The maximum screen space error used to drive level of detail refinement.
|
|
27719
27723
|
* @param [options.maximumMemoryUsage = 512] - The maximum amount of memory in MB that can be used by the tileset.
|
|
@@ -27753,6 +27757,7 @@ const tileset = scene.primitives.add(new Cesium.Cesium3DTileset({
|
|
|
27753
27757
|
* @param [options.instanceFeatureIdLabel = "instanceFeatureId_0"] - Label of the instance feature ID set used for picking and styling. If instanceFeatureIdLabel is set to an integer N, it is converted to the string "instanceFeatureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority.
|
|
27754
27758
|
* @param [options.showCreditsOnScreen = false] - Whether to display the credits of this tileset on screen.
|
|
27755
27759
|
* @param [options.splitDirection = SplitDirection.NONE] - The {@link SplitDirection} split to apply to this tileset.
|
|
27760
|
+
* @param [options.projectTo2D = false] - Whether to accurately project the tileset to 2D. If this is true, the tileset will be projected accurately to 2D, but it will use more memory to do so. If this is false, the tileset will use less memory and will still render in 2D / CV mode, but its projected positions may be inaccurate. This cannot be set after the tileset has loaded.
|
|
27756
27761
|
* @param [options.debugHeatmapTilePropertyName] - The tile variable to colorize as a heatmap. All rendered tiles will be colorized relative to each other's specified variable value.
|
|
27757
27762
|
* @param [options.debugFreezeFrame = false] - For debugging only. Determines if only the tiles from last frame should be used for rendering.
|
|
27758
27763
|
* @param [options.debugColorizeTiles = false] - For debugging only. When true, assigns a random color to each tile.
|
|
@@ -27771,6 +27776,8 @@ export class Cesium3DTileset {
|
|
|
27771
27776
|
url: Resource | string | Promise<Resource> | Promise<string>;
|
|
27772
27777
|
show?: boolean;
|
|
27773
27778
|
modelMatrix?: Matrix4;
|
|
27779
|
+
modelUpAxis?: Axis;
|
|
27780
|
+
modelForwardAxis?: Axis;
|
|
27774
27781
|
shadows?: ShadowMode;
|
|
27775
27782
|
maximumScreenSpaceError?: number;
|
|
27776
27783
|
maximumMemoryUsage?: number;
|
|
@@ -27810,6 +27817,7 @@ export class Cesium3DTileset {
|
|
|
27810
27817
|
instanceFeatureIdLabel?: string | number;
|
|
27811
27818
|
showCreditsOnScreen?: boolean;
|
|
27812
27819
|
splitDirection?: SplitDirection;
|
|
27820
|
+
projectTo2D?: boolean;
|
|
27813
27821
|
debugHeatmapTilePropertyName?: string;
|
|
27814
27822
|
debugFreezeFrame?: boolean;
|
|
27815
27823
|
debugColorizeTiles?: boolean;
|
|
@@ -27946,7 +27954,7 @@ export class Cesium3DTileset {
|
|
|
27946
27954
|
return;
|
|
27947
27955
|
}
|
|
27948
27956
|
|
|
27949
|
-
console.log(
|
|
27957
|
+
console.log(`Loading: requests: ${numberOfPendingRequests}, processing: ${numberOfTilesProcessing}`);
|
|
27950
27958
|
});
|
|
27951
27959
|
*/
|
|
27952
27960
|
loadProgress: Event;
|
|
@@ -28022,8 +28030,8 @@ export class Cesium3DTileset {
|
|
|
28022
28030
|
</p>
|
|
28023
28031
|
* @example
|
|
28024
28032
|
* tileset.tileFailed.addEventListener(function(error) {
|
|
28025
|
-
console.log(
|
|
28026
|
-
console.log(
|
|
28033
|
+
console.log(`An error occurred loading tile: ${error.url}`);
|
|
28034
|
+
console.log(`Error: ${error.message}`);
|
|
28027
28035
|
});
|
|
28028
28036
|
*/
|
|
28029
28037
|
tileFailed: Event;
|
|
@@ -28236,8 +28244,8 @@ export class Cesium3DTileset {
|
|
|
28236
28244
|
in the 3D Tiles spec for the full set of properties.
|
|
28237
28245
|
</p>
|
|
28238
28246
|
* @example
|
|
28239
|
-
* console.log(
|
|
28240
|
-
console.log(
|
|
28247
|
+
* console.log(`Maximum building height: ${tileset.properties.height.maximum}`);
|
|
28248
|
+
console.log(`Minimum building height: ${tileset.properties.height.minimum}`);
|
|
28241
28249
|
*/
|
|
28242
28250
|
readonly properties: any;
|
|
28243
28251
|
/**
|
|
@@ -28395,8 +28403,7 @@ export class Cesium3DTileset {
|
|
|
28395
28403
|
readonly timeSinceLoad: number;
|
|
28396
28404
|
/**
|
|
28397
28405
|
* The total amount of GPU memory in bytes used by the tileset. This value is estimated from
|
|
28398
|
-
geometry, texture,
|
|
28399
|
-
includes per-point metadata.
|
|
28406
|
+
geometry, texture, batch table textures, and binary metadata of loaded tiles.
|
|
28400
28407
|
*/
|
|
28401
28408
|
readonly totalMemoryUsageInBytes: number;
|
|
28402
28409
|
/**
|
|
@@ -28863,7 +28870,7 @@ export class Cesium3DTileStyle {
|
|
|
28863
28870
|
</p>
|
|
28864
28871
|
* @example
|
|
28865
28872
|
* const style = new Cesium3DTileStyle({
|
|
28866
|
-
labelStyle :
|
|
28873
|
+
labelStyle : `(\${Temperature} > 90) ? ${LabelStyle.FILL_AND_OUTLINE} : ${LabelStyle.FILL}`
|
|
28867
28874
|
});
|
|
28868
28875
|
style.labelStyle.evaluate(feature); // returns a LabelStyle
|
|
28869
28876
|
* @example
|
|
@@ -32847,9 +32854,9 @@ export class ImageryLayerCollection {
|
|
|
32847
32854
|
} else {
|
|
32848
32855
|
Promise.resolve(featuresPromise).then(function(features) {
|
|
32849
32856
|
// This function is called asynchronously when the list if picked features is available.
|
|
32850
|
-
console.log(
|
|
32857
|
+
console.log(`Number of features: ${features.length}`);
|
|
32851
32858
|
if (features.length > 0) {
|
|
32852
|
-
console.log(
|
|
32859
|
+
console.log(`First feature name: ${features[0].name}`);
|
|
32853
32860
|
}
|
|
32854
32861
|
});
|
|
32855
32862
|
}
|
|
@@ -35286,7 +35293,7 @@ export class ModelAnimation {
|
|
|
35286
35293
|
</p>
|
|
35287
35294
|
* @example
|
|
35288
35295
|
* animation.start.addEventListener(function(model, animation) {
|
|
35289
|
-
console.log(
|
|
35296
|
+
console.log(`Animation started: ${animation.name}`);
|
|
35290
35297
|
});
|
|
35291
35298
|
*/
|
|
35292
35299
|
start: Event;
|
|
@@ -35300,7 +35307,7 @@ export class ModelAnimation {
|
|
|
35300
35307
|
</p>
|
|
35301
35308
|
* @example
|
|
35302
35309
|
* animation.update.addEventListener(function(model, animation, time) {
|
|
35303
|
-
console.log(
|
|
35310
|
+
console.log(`Animation updated: ${animation.name}. glTF animation time: ${time}`);
|
|
35304
35311
|
});
|
|
35305
35312
|
*/
|
|
35306
35313
|
update: Event;
|
|
@@ -35312,7 +35319,7 @@ export class ModelAnimation {
|
|
|
35312
35319
|
</p>
|
|
35313
35320
|
* @example
|
|
35314
35321
|
* animation.stop.addEventListener(function(model, animation) {
|
|
35315
|
-
console.log(
|
|
35322
|
+
console.log(`Animation stopped: ${animation.name}`);
|
|
35316
35323
|
});
|
|
35317
35324
|
*/
|
|
35318
35325
|
stop: Event;
|
|
@@ -35387,7 +35394,7 @@ export class ModelAnimationCollection {
|
|
|
35387
35394
|
example, to keep a UI in sync.
|
|
35388
35395
|
* @example
|
|
35389
35396
|
* model.activeAnimations.animationAdded.addEventListener(function(model, animation) {
|
|
35390
|
-
console.log(
|
|
35397
|
+
console.log(`Animation added: ${animation.name}`);
|
|
35391
35398
|
});
|
|
35392
35399
|
*/
|
|
35393
35400
|
animationAdded: Event;
|
|
@@ -35396,7 +35403,7 @@ export class ModelAnimationCollection {
|
|
|
35396
35403
|
example, to keep a UI in sync.
|
|
35397
35404
|
* @example
|
|
35398
35405
|
* model.activeAnimations.animationRemoved.addEventListener(function(model, animation) {
|
|
35399
|
-
console.log(
|
|
35406
|
+
console.log(`Animation removed: ${animation.name}`);
|
|
35400
35407
|
});
|
|
35401
35408
|
*/
|
|
35402
35409
|
animationRemoved: Event;
|
|
@@ -35442,13 +35449,13 @@ export class ModelAnimationCollection {
|
|
|
35442
35449
|
});
|
|
35443
35450
|
|
|
35444
35451
|
animation.start.addEventListener(function(model, animation) {
|
|
35445
|
-
console.log(
|
|
35452
|
+
console.log(`Animation started: ${animation.name}`);
|
|
35446
35453
|
});
|
|
35447
35454
|
animation.update.addEventListener(function(model, animation, time) {
|
|
35448
|
-
console.log(
|
|
35455
|
+
console.log(`Animation updated: ${animation.name}. glTF animation time: ${time}`);
|
|
35449
35456
|
});
|
|
35450
35457
|
animation.stop.addEventListener(function(model, animation) {
|
|
35451
|
-
console.log(
|
|
35458
|
+
console.log(`Animation stopped: ${animation.name}`);
|
|
35452
35459
|
});
|
|
35453
35460
|
* @param options - Object with the following properties:
|
|
35454
35461
|
* @param [options.name] - The glTF animation name that identifies the animation. Must be defined if <code>options.index</code> is <code>undefined</code>.
|
|
@@ -35756,6 +35763,7 @@ the Model from your source data type.
|
|
|
35756
35763
|
</p>
|
|
35757
35764
|
* @param options - Object with the following properties:
|
|
35758
35765
|
* @param options.resource - The Resource to the 3D model.
|
|
35766
|
+
* @param [options.show = true] - Whether or not to render the model.
|
|
35759
35767
|
* @param [options.modelMatrix = Matrix4.IDENTITY] - The 4x4 transformation matrix that transforms the model from model to world coordinates.
|
|
35760
35768
|
* @param [options.scale = 1.0] - A uniform scale applied to this model.
|
|
35761
35769
|
* @param [options.minimumPixelSize = 0.0] - The approximate minimum pixel size of the model regardless of zoom.
|
|
@@ -35769,7 +35777,8 @@ the Model from your source data type.
|
|
|
35769
35777
|
* @param [options.allowPicking = true] - When <code>true</code>, each primitive is pickable with {@link Scene#pick}.
|
|
35770
35778
|
* @param [options.customShader] - A custom shader. This will add user-defined GLSL code to the vertex and fragment shaders. Using custom shaders with a {@link Cesium3DTileStyle} may lead to undefined behavior.
|
|
35771
35779
|
* @param [options.content] - The tile content this model belongs to. This property will be undefined if model is not loaded as part of a tileset.
|
|
35772
|
-
* @param [options.
|
|
35780
|
+
* @param [options.heightReference = HeightReference.NONE] - Determines how the model is drawn relative to terrain.
|
|
35781
|
+
* @param [options.scene] - Must be passed in for models that use the height reference property.
|
|
35773
35782
|
* @param [options.color] - A color that blends with the model's rendered color.
|
|
35774
35783
|
* @param [options.colorBlendMode = ColorBlendMode.HIGHLIGHT] - Defines how the color blends with the model.
|
|
35775
35784
|
* @param [options.colorBlendAmount = 0.5] - Value used to determine the color strength when the <code>colorBlendMode</code> is <code>MIX</code>. A value of 0.0 results in the model's rendered color while a value of 1.0 results in a solid color, with any value in-between resulting in a mix of the two.
|
|
@@ -35783,11 +35792,12 @@ the Model from your source data type.
|
|
|
35783
35792
|
* @param [options.shadows = ShadowMode.ENABLED] - Determines whether the model casts or receives shadows from light sources.
|
|
35784
35793
|
* @param [options.showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
|
|
35785
35794
|
* @param [options.splitDirection = SplitDirection.NONE] - The {@link SplitDirection} split to apply to this model.
|
|
35786
|
-
* @param [options.projectTo2D = false] - Whether to accurately project the model's positions in 2D. If this is false, the model will
|
|
35795
|
+
* @param [options.projectTo2D = false] - Whether to accurately project the model's positions in 2D. If this is true, the model will be projected accurately to 2D, but it will use more memory to do so. If this is false, the model will use less memory and will still render in 2D / CV mode, but its positions may be inaccurate. This disables minimumPixelSize and prevents future modification to the model matrix. This also cannot be set after the model has loaded.
|
|
35787
35796
|
*/
|
|
35788
35797
|
export class ModelExperimental {
|
|
35789
35798
|
constructor(options: {
|
|
35790
35799
|
resource: Resource;
|
|
35800
|
+
show?: boolean;
|
|
35791
35801
|
modelMatrix?: Matrix4;
|
|
35792
35802
|
scale?: number;
|
|
35793
35803
|
minimumPixelSize?: number;
|
|
@@ -35801,7 +35811,8 @@ export class ModelExperimental {
|
|
|
35801
35811
|
allowPicking?: boolean;
|
|
35802
35812
|
customShader?: CustomShader;
|
|
35803
35813
|
content?: Cesium3DTileContent;
|
|
35804
|
-
|
|
35814
|
+
heightReference?: HeightReference;
|
|
35815
|
+
scene?: Scene;
|
|
35805
35816
|
color?: Color;
|
|
35806
35817
|
colorBlendMode?: ColorBlendMode;
|
|
35807
35818
|
colorBlendAmount?: number;
|
|
@@ -35850,6 +35861,15 @@ export class ModelExperimental {
|
|
|
35850
35861
|
may lead to undefined behavior.
|
|
35851
35862
|
*/
|
|
35852
35863
|
customShader: CustomShader;
|
|
35864
|
+
/**
|
|
35865
|
+
* The height reference of the model, which determines how the model is drawn
|
|
35866
|
+
relative to terrain.
|
|
35867
|
+
*/
|
|
35868
|
+
heightReference: HeightReference;
|
|
35869
|
+
/**
|
|
35870
|
+
* The style to apply the to the features in the model. Cannot be applied if a {@link CustomShader} is also applied.
|
|
35871
|
+
*/
|
|
35872
|
+
style: Cesium3DTileStyle;
|
|
35853
35873
|
/**
|
|
35854
35874
|
* The color to blend with the model's rendered color.
|
|
35855
35875
|
*/
|
|
@@ -36006,6 +36026,7 @@ export class ModelExperimental {
|
|
|
36006
36026
|
* @param options - Object with the following properties:
|
|
36007
36027
|
* @param options.url - The url to the .gltf or .glb file.
|
|
36008
36028
|
* @param [options.basePath = ''] - The base path that paths in the glTF JSON are relative to.
|
|
36029
|
+
* @param [options.show = true] - Whether or not to render the model.
|
|
36009
36030
|
* @param [options.modelMatrix = Matrix4.IDENTITY] - The 4x4 transformation matrix that transforms the model from model to world coordinates.
|
|
36010
36031
|
* @param [options.scale = 1.0] - A uniform scale applied to this model.
|
|
36011
36032
|
* @param [options.minimumPixelSize = 0.0] - The approximate minimum pixel size of the model regardless of zoom.
|
|
@@ -36022,7 +36043,8 @@ export class ModelExperimental {
|
|
|
36022
36043
|
* @param [options.allowPicking = true] - When <code>true</code>, each primitive is pickable with {@link Scene#pick}.
|
|
36023
36044
|
* @param [options.customShader] - A custom shader. This will add user-defined GLSL code to the vertex and fragment shaders. Using custom shaders with a {@link Cesium3DTileStyle} may lead to undefined behavior.
|
|
36024
36045
|
* @param [options.content] - The tile content this model belongs to. This property will be undefined if model is not loaded as part of a tileset.
|
|
36025
|
-
* @param [options.
|
|
36046
|
+
* @param [options.heightReference = HeightReference.NONE] - Determines how the model is drawn relative to terrain.
|
|
36047
|
+
* @param [options.scene] - Must be passed in for models that use the height reference property.
|
|
36026
36048
|
* @param [options.color] - A color that blends with the model's rendered color.
|
|
36027
36049
|
* @param [options.colorBlendMode = ColorBlendMode.HIGHLIGHT] - Defines how the color blends with the model.
|
|
36028
36050
|
* @param [options.colorBlendAmount = 0.5] - Value used to determine the color strength when the <code>colorBlendMode</code> is <code>MIX</code>. A value of 0.0 results in the model's rendered color while a value of 1.0 results in a solid color, with any value in-between resulting in a mix of the two.
|
|
@@ -36036,12 +36058,13 @@ export class ModelExperimental {
|
|
|
36036
36058
|
* @param [options.shadows = ShadowMode.ENABLED] - Determines whether the model casts or receives shadows from light sources.
|
|
36037
36059
|
* @param [options.showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
|
|
36038
36060
|
* @param [options.splitDirection = SplitDirection.NONE] - The {@link SplitDirection} split to apply to this model.
|
|
36039
|
-
* @param [options.projectTo2D = false] - Whether to accurately project the model's positions in 2D. If this is false, the model will
|
|
36061
|
+
* @param [options.projectTo2D = false] - Whether to accurately project the model's positions in 2D. If this is true, the model will be projected accurately to 2D, but it will use more memory to do so. If this is false, the model will use less memory and will still render in 2D / CV mode, but its positions may be inaccurate. This disables minimumPixelSize and prevents future modification to the model matrix. This also cannot be set after the model has loaded.
|
|
36040
36062
|
* @returns The newly created model.
|
|
36041
36063
|
*/
|
|
36042
36064
|
static fromGltf(options: {
|
|
36043
36065
|
url: string | Resource;
|
|
36044
36066
|
basePath?: string | Resource;
|
|
36067
|
+
show?: boolean;
|
|
36045
36068
|
modelMatrix?: Matrix4;
|
|
36046
36069
|
scale?: number;
|
|
36047
36070
|
minimumPixelSize?: number;
|
|
@@ -36058,7 +36081,8 @@ export class ModelExperimental {
|
|
|
36058
36081
|
allowPicking?: boolean;
|
|
36059
36082
|
customShader?: CustomShader;
|
|
36060
36083
|
content?: Cesium3DTileContent;
|
|
36061
|
-
|
|
36084
|
+
heightReference?: HeightReference;
|
|
36085
|
+
scene?: Scene;
|
|
36062
36086
|
color?: Color;
|
|
36063
36087
|
colorBlendMode?: ColorBlendMode;
|
|
36064
36088
|
colorBlendAmount?: number;
|
|
@@ -36087,11 +36111,6 @@ m.modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(origin);
|
|
|
36087
36111
|
*/
|
|
36088
36112
|
export var modelMatrix: Matrix4;
|
|
36089
36113
|
|
|
36090
|
-
/**
|
|
36091
|
-
* The style to apply the to the features in the model. Cannot be applied if a {@link CustomShader} is also applied.
|
|
36092
|
-
*/
|
|
36093
|
-
export var style: Cesium3DTileStyle;
|
|
36094
|
-
|
|
36095
36114
|
/**
|
|
36096
36115
|
* An active animation derived from a glTF asset. An active animation is an
|
|
36097
36116
|
animation that is either currently playing or scheduled to be played due to
|
|
@@ -36118,7 +36137,7 @@ export class ModelExperimentalAnimation {
|
|
|
36118
36137
|
</p>
|
|
36119
36138
|
* @example
|
|
36120
36139
|
* animation.start.addEventListener(function(model, animation) {
|
|
36121
|
-
console.log(
|
|
36140
|
+
console.log(`Animation started: ${animation.name}`);
|
|
36122
36141
|
});
|
|
36123
36142
|
*/
|
|
36124
36143
|
start: Event;
|
|
@@ -36132,7 +36151,7 @@ export class ModelExperimentalAnimation {
|
|
|
36132
36151
|
</p>
|
|
36133
36152
|
* @example
|
|
36134
36153
|
* animation.update.addEventListener(function(model, animation, time) {
|
|
36135
|
-
console.log(
|
|
36154
|
+
console.log(`Animation updated: ${animation.name}. glTF animation time: ${time}`);
|
|
36136
36155
|
});
|
|
36137
36156
|
*/
|
|
36138
36157
|
update: Event;
|
|
@@ -36144,7 +36163,7 @@ export class ModelExperimentalAnimation {
|
|
|
36144
36163
|
</p>
|
|
36145
36164
|
* @example
|
|
36146
36165
|
* animation.stop.addEventListener(function(model, animation) {
|
|
36147
|
-
console.log(
|
|
36166
|
+
console.log(`Animation stopped: ${animation.name}`);
|
|
36148
36167
|
});
|
|
36149
36168
|
*/
|
|
36150
36169
|
stop: Event;
|
|
@@ -36219,7 +36238,7 @@ export class ModelExperimentalAnimationCollection {
|
|
|
36219
36238
|
example, to keep a UI in sync.
|
|
36220
36239
|
* @example
|
|
36221
36240
|
* model.activeAnimations.animationAdded.addEventListener(function(model, animation) {
|
|
36222
|
-
console.log(
|
|
36241
|
+
console.log(`Animation added: ${animation.name}`);
|
|
36223
36242
|
});
|
|
36224
36243
|
*/
|
|
36225
36244
|
animationAdded: Event;
|
|
@@ -36228,7 +36247,7 @@ export class ModelExperimentalAnimationCollection {
|
|
|
36228
36247
|
example, to keep a UI in sync.
|
|
36229
36248
|
* @example
|
|
36230
36249
|
* model.activeAnimations.animationRemoved.addEventListener(function(model, animation) {
|
|
36231
|
-
console.log(
|
|
36250
|
+
console.log(`Animation removed: ${animation.name}`);
|
|
36232
36251
|
});
|
|
36233
36252
|
*/
|
|
36234
36253
|
animationRemoved: Event;
|
|
@@ -36278,13 +36297,13 @@ export class ModelExperimentalAnimationCollection {
|
|
|
36278
36297
|
});
|
|
36279
36298
|
|
|
36280
36299
|
animation.start.addEventListener(function(model, animation) {
|
|
36281
|
-
console.log(
|
|
36300
|
+
console.log(`Animation started: ${animation.name}`);
|
|
36282
36301
|
});
|
|
36283
36302
|
animation.update.addEventListener(function(model, animation, time) {
|
|
36284
|
-
console.log(
|
|
36303
|
+
console.log(`Animation updated: ${animation.name}. glTF animation time: ${time}`);
|
|
36285
36304
|
});
|
|
36286
36305
|
animation.stop.addEventListener(function(model, animation) {
|
|
36287
|
-
console.log(
|
|
36306
|
+
console.log(`Animation stopped: ${animation.name}`);
|
|
36288
36307
|
});
|
|
36289
36308
|
* @param options - Object with the following properties:
|
|
36290
36309
|
* @param [options.name] - The glTF animation name that identifies the animation. Must be defined if <code>options.index</code> is <code>undefined</code>.
|
|
@@ -38093,15 +38112,15 @@ export class PolylineMaterialAppearance {
|
|
|
38093
38112
|
* Runs a post-process stage on either the texture rendered by the scene or the output of a previous post-process stage.
|
|
38094
38113
|
* @example
|
|
38095
38114
|
* // Simple stage to change the color
|
|
38096
|
-
const fs
|
|
38097
|
-
|
|
38098
|
-
|
|
38099
|
-
|
|
38100
|
-
|
|
38101
|
-
|
|
38102
|
-
|
|
38103
|
-
|
|
38104
|
-
|
|
38115
|
+
const fs =`
|
|
38116
|
+
uniform sampler2D colorTexture;
|
|
38117
|
+
varying vec2 v_textureCoordinates;
|
|
38118
|
+
uniform float scale;
|
|
38119
|
+
uniform vec3 offset;
|
|
38120
|
+
void main() {
|
|
38121
|
+
vec4 color = texture2D(colorTexture, v_textureCoordinates);
|
|
38122
|
+
gl_FragColor = vec4(color.rgb * scale + offset, 1.0);
|
|
38123
|
+
}`;
|
|
38105
38124
|
scene.postProcessStages.add(new Cesium.PostProcessStage({
|
|
38106
38125
|
fragmentShader : fs,
|
|
38107
38126
|
uniforms : {
|
|
@@ -38114,19 +38133,19 @@ scene.postProcessStages.add(new Cesium.PostProcessStage({
|
|
|
38114
38133
|
* @example
|
|
38115
38134
|
* // Simple stage to change the color of what is selected.
|
|
38116
38135
|
// If czm_selected returns true, the current fragment belongs to geometry in the selected array.
|
|
38117
|
-
const fs
|
|
38118
|
-
|
|
38119
|
-
|
|
38120
|
-
|
|
38121
|
-
|
|
38122
|
-
|
|
38123
|
-
|
|
38124
|
-
|
|
38125
|
-
|
|
38126
|
-
|
|
38127
|
-
|
|
38128
|
-
|
|
38129
|
-
|
|
38136
|
+
const fs =`
|
|
38137
|
+
uniform sampler2D colorTexture;
|
|
38138
|
+
varying vec2 v_textureCoordinates;
|
|
38139
|
+
uniform vec4 highlight;
|
|
38140
|
+
void main() {
|
|
38141
|
+
vec4 color = texture2D(colorTexture, v_textureCoordinates);
|
|
38142
|
+
if (czm_selected()) {
|
|
38143
|
+
vec3 highlighted = highlight.a * highlight.rgb + (1.0 - highlight.a) * color.rgb;
|
|
38144
|
+
gl_FragColor = vec4(highlighted, 1.0);
|
|
38145
|
+
} else {
|
|
38146
|
+
gl_FragColor = color;
|
|
38147
|
+
}
|
|
38148
|
+
}`;
|
|
38130
38149
|
const stage = scene.postProcessStages.add(new Cesium.PostProcessStage({
|
|
38131
38150
|
fragmentShader : fs,
|
|
38132
38151
|
uniforms : {
|
|
@@ -38239,7 +38258,7 @@ export class PostProcessStage {
|
|
|
38239
38258
|
if (czm_selected(v_textureCoordinates)) {
|
|
38240
38259
|
// apply post-process stage
|
|
38241
38260
|
} else {
|
|
38242
|
-
gl_FragColor = texture2D(colorTexture,
|
|
38261
|
+
gl_FragColor = texture2D(colorTexture, v_textureCoordinates);
|
|
38243
38262
|
}
|
|
38244
38263
|
</code>
|
|
38245
38264
|
</p>
|
|
@@ -38708,88 +38727,88 @@ export enum PostProcessStageSampleMode {
|
|
|
38708
38727
|
|
|
38709
38728
|
/**
|
|
38710
38729
|
* A primitive represents geometry in the {@link Scene}. The geometry can be from a single {@link GeometryInstance}
|
|
38711
|
-
|
|
38712
|
-
|
|
38713
|
-
|
|
38714
|
-
|
|
38715
|
-
|
|
38716
|
-
|
|
38717
|
-
|
|
38718
|
-
|
|
38719
|
-
|
|
38720
|
-
|
|
38721
|
-
|
|
38722
|
-
|
|
38723
|
-
|
|
38724
|
-
|
|
38725
|
-
|
|
38726
|
-
|
|
38727
|
-
|
|
38728
|
-
|
|
38730
|
+
as shown in example 1 below, or from an array of instances, even if the geometry is from different
|
|
38731
|
+
geometry types, e.g., an {@link RectangleGeometry} and an {@link EllipsoidGeometry} as shown in Code Example 2.
|
|
38732
|
+
<p>
|
|
38733
|
+
A primitive combines geometry instances with an {@link Appearance} that describes the full shading, including
|
|
38734
|
+
{@link Material} and {@link RenderState}. Roughly, the geometry instance defines the structure and placement,
|
|
38735
|
+
and the appearance defines the visual characteristics. Decoupling geometry and appearance allows us to mix
|
|
38736
|
+
and match most of them and add a new geometry or appearance independently of each other.
|
|
38737
|
+
</p>
|
|
38738
|
+
<p>
|
|
38739
|
+
Combining multiple instances into one primitive is called batching, and significantly improves performance for static data.
|
|
38740
|
+
Instances can be individually picked; {@link Scene#pick} returns their {@link GeometryInstance#id}. Using
|
|
38741
|
+
per-instance appearances like {@link PerInstanceColorAppearance}, each instance can also have a unique color.
|
|
38742
|
+
</p>
|
|
38743
|
+
<p>
|
|
38744
|
+
{@link Geometry} can either be created and batched on a web worker or the main thread. The first two examples
|
|
38745
|
+
show geometry that will be created on a web worker by using the descriptions of the geometry. The third example
|
|
38746
|
+
shows how to create the geometry on the main thread by explicitly calling the <code>createGeometry</code> method.
|
|
38747
|
+
</p>
|
|
38729
38748
|
* @example
|
|
38730
38749
|
* // 1. Draw a translucent ellipse on the surface with a checkerboard pattern
|
|
38731
|
-
|
|
38732
|
-
|
|
38733
|
-
|
|
38734
|
-
|
|
38735
|
-
|
|
38736
|
-
|
|
38737
|
-
|
|
38738
|
-
|
|
38739
|
-
|
|
38740
|
-
|
|
38741
|
-
|
|
38742
|
-
|
|
38743
|
-
|
|
38744
|
-
|
|
38745
|
-
|
|
38746
|
-
|
|
38750
|
+
const instance = new Cesium.GeometryInstance({
|
|
38751
|
+
geometry : new Cesium.EllipseGeometry({
|
|
38752
|
+
center : Cesium.Cartesian3.fromDegrees(-100.0, 20.0),
|
|
38753
|
+
semiMinorAxis : 500000.0,
|
|
38754
|
+
semiMajorAxis : 1000000.0,
|
|
38755
|
+
rotation : Cesium.Math.PI_OVER_FOUR,
|
|
38756
|
+
vertexFormat : Cesium.VertexFormat.POSITION_AND_ST
|
|
38757
|
+
}),
|
|
38758
|
+
id : 'object returned when this instance is picked and to get/set per-instance attributes'
|
|
38759
|
+
});
|
|
38760
|
+
scene.primitives.add(new Cesium.Primitive({
|
|
38761
|
+
geometryInstances : instance,
|
|
38762
|
+
appearance : new Cesium.EllipsoidSurfaceAppearance({
|
|
38763
|
+
material : Cesium.Material.fromType('Checkerboard')
|
|
38764
|
+
})
|
|
38765
|
+
}));
|
|
38747
38766
|
* @example
|
|
38748
38767
|
* // 2. Draw different instances each with a unique color
|
|
38749
|
-
|
|
38750
|
-
|
|
38751
|
-
|
|
38752
|
-
|
|
38753
|
-
|
|
38754
|
-
|
|
38755
|
-
|
|
38756
|
-
|
|
38757
|
-
|
|
38758
|
-
|
|
38759
|
-
|
|
38760
|
-
|
|
38761
|
-
|
|
38762
|
-
|
|
38763
|
-
|
|
38764
|
-
|
|
38765
|
-
|
|
38766
|
-
|
|
38767
|
-
|
|
38768
|
-
|
|
38769
|
-
|
|
38770
|
-
|
|
38771
|
-
|
|
38772
|
-
|
|
38773
|
-
|
|
38774
|
-
|
|
38768
|
+
const rectangleInstance = new Cesium.GeometryInstance({
|
|
38769
|
+
geometry : new Cesium.RectangleGeometry({
|
|
38770
|
+
rectangle : Cesium.Rectangle.fromDegrees(-140.0, 30.0, -100.0, 40.0),
|
|
38771
|
+
vertexFormat : Cesium.PerInstanceColorAppearance.VERTEX_FORMAT
|
|
38772
|
+
}),
|
|
38773
|
+
id : 'rectangle',
|
|
38774
|
+
attributes : {
|
|
38775
|
+
color : new Cesium.ColorGeometryInstanceAttribute(0.0, 1.0, 1.0, 0.5)
|
|
38776
|
+
}
|
|
38777
|
+
});
|
|
38778
|
+
const ellipsoidInstance = new Cesium.GeometryInstance({
|
|
38779
|
+
geometry : new Cesium.EllipsoidGeometry({
|
|
38780
|
+
radii : new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
|
|
38781
|
+
vertexFormat : Cesium.VertexFormat.POSITION_AND_NORMAL
|
|
38782
|
+
}),
|
|
38783
|
+
modelMatrix : Cesium.Matrix4.multiplyByTranslation(Cesium.Transforms.eastNorthUpToFixedFrame(
|
|
38784
|
+
Cesium.Cartesian3.fromDegrees(-95.59777, 40.03883)), new Cesium.Cartesian3(0.0, 0.0, 500000.0), new Cesium.Matrix4()),
|
|
38785
|
+
id : 'ellipsoid',
|
|
38786
|
+
attributes : {
|
|
38787
|
+
color : Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.AQUA)
|
|
38788
|
+
}
|
|
38789
|
+
});
|
|
38790
|
+
scene.primitives.add(new Cesium.Primitive({
|
|
38791
|
+
geometryInstances : [rectangleInstance, ellipsoidInstance],
|
|
38792
|
+
appearance : new Cesium.PerInstanceColorAppearance()
|
|
38793
|
+
}));
|
|
38775
38794
|
* @example
|
|
38776
38795
|
* // 3. Create the geometry on the main thread.
|
|
38777
|
-
|
|
38778
|
-
|
|
38779
|
-
|
|
38780
|
-
|
|
38781
|
-
|
|
38782
|
-
|
|
38783
|
-
|
|
38784
|
-
|
|
38785
|
-
|
|
38786
|
-
|
|
38787
|
-
|
|
38788
|
-
|
|
38789
|
-
|
|
38790
|
-
|
|
38791
|
-
|
|
38792
|
-
|
|
38796
|
+
scene.primitives.add(new Cesium.Primitive({
|
|
38797
|
+
geometryInstances : new Cesium.GeometryInstance({
|
|
38798
|
+
geometry : Cesium.EllipsoidGeometry.createGeometry(new Cesium.EllipsoidGeometry({
|
|
38799
|
+
radii : new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
|
|
38800
|
+
vertexFormat : Cesium.VertexFormat.POSITION_AND_NORMAL
|
|
38801
|
+
})),
|
|
38802
|
+
modelMatrix : Cesium.Matrix4.multiplyByTranslation(Cesium.Transforms.eastNorthUpToFixedFrame(
|
|
38803
|
+
Cesium.Cartesian3.fromDegrees(-95.59777, 40.03883)), new Cesium.Cartesian3(0.0, 0.0, 500000.0), new Cesium.Matrix4()),
|
|
38804
|
+
id : 'ellipsoid',
|
|
38805
|
+
attributes : {
|
|
38806
|
+
color : Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.AQUA)
|
|
38807
|
+
}
|
|
38808
|
+
}),
|
|
38809
|
+
appearance : new Cesium.PerInstanceColorAppearance(),
|
|
38810
|
+
asynchronous : false
|
|
38811
|
+
}));
|
|
38793
38812
|
* @param [options] - Object with the following properties:
|
|
38794
38813
|
* @param [options.geometryInstances] - The geometry instances - or a single geometry instance - to render.
|
|
38795
38814
|
* @param [options.appearance] - The appearance used to render the primitive.
|
|
@@ -38825,67 +38844,67 @@ export class Primitive {
|
|
|
38825
38844
|
});
|
|
38826
38845
|
/**
|
|
38827
38846
|
* The geometry instances rendered with this primitive. This may
|
|
38828
|
-
|
|
38829
|
-
|
|
38830
|
-
|
|
38831
|
-
|
|
38832
|
-
|
|
38847
|
+
be <code>undefined</code> if <code>options.releaseGeometryInstances</code>
|
|
38848
|
+
is <code>true</code> when the primitive is constructed.
|
|
38849
|
+
<p>
|
|
38850
|
+
Changing this property after the primitive is rendered has no effect.
|
|
38851
|
+
</p>
|
|
38833
38852
|
*/
|
|
38834
38853
|
readonly geometryInstances: GeometryInstance[] | GeometryInstance;
|
|
38835
38854
|
/**
|
|
38836
38855
|
* The {@link Appearance} used to shade this primitive. Each geometry
|
|
38837
|
-
|
|
38838
|
-
|
|
38839
|
-
|
|
38856
|
+
instance is shaded with the same appearance. Some appearances, like
|
|
38857
|
+
{@link PerInstanceColorAppearance} allow giving each instance unique
|
|
38858
|
+
properties.
|
|
38840
38859
|
*/
|
|
38841
38860
|
appearance: Appearance;
|
|
38842
38861
|
/**
|
|
38843
38862
|
* The {@link Appearance} used to shade this primitive when it fails the depth test. Each geometry
|
|
38844
|
-
|
|
38845
|
-
|
|
38846
|
-
|
|
38847
|
-
|
|
38848
|
-
|
|
38849
|
-
|
|
38850
|
-
|
|
38851
|
-
|
|
38852
|
-
|
|
38853
|
-
|
|
38854
|
-
|
|
38855
|
-
|
|
38856
|
-
|
|
38863
|
+
instance is shaded with the same appearance. Some appearances, like
|
|
38864
|
+
{@link PerInstanceColorAppearance} allow giving each instance unique
|
|
38865
|
+
properties.
|
|
38866
|
+
|
|
38867
|
+
<p>
|
|
38868
|
+
When using an appearance that requires a color attribute, like PerInstanceColorAppearance,
|
|
38869
|
+
add a depthFailColor per-instance attribute instead.
|
|
38870
|
+
</p>
|
|
38871
|
+
|
|
38872
|
+
<p>
|
|
38873
|
+
Requires the EXT_frag_depth WebGL extension to render properly. If the extension is not supported,
|
|
38874
|
+
there may be artifacts.
|
|
38875
|
+
</p>
|
|
38857
38876
|
*/
|
|
38858
38877
|
depthFailAppearance: Appearance;
|
|
38859
38878
|
/**
|
|
38860
38879
|
* The 4x4 transformation matrix that transforms the primitive (all geometry instances) from model to world coordinates.
|
|
38861
|
-
|
|
38862
|
-
|
|
38863
|
-
|
|
38864
|
-
|
|
38865
|
-
|
|
38866
|
-
|
|
38867
|
-
|
|
38880
|
+
When this is the identity matrix, the primitive is drawn in world coordinates, i.e., Earth's WGS84 coordinates.
|
|
38881
|
+
Local reference frames can be used by providing a different transformation matrix, like that returned
|
|
38882
|
+
by {@link Transforms.eastNorthUpToFixedFrame}.
|
|
38883
|
+
|
|
38884
|
+
<p>
|
|
38885
|
+
This property is only supported in 3D mode.
|
|
38886
|
+
</p>
|
|
38868
38887
|
* @example
|
|
38869
38888
|
* const origin = Cesium.Cartesian3.fromDegrees(-95.0, 40.0, 200000.0);
|
|
38870
|
-
|
|
38889
|
+
p.modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(origin);
|
|
38871
38890
|
*/
|
|
38872
38891
|
modelMatrix: Matrix4;
|
|
38873
38892
|
/**
|
|
38874
38893
|
* Determines if the primitive will be shown. This affects all geometry
|
|
38875
|
-
|
|
38894
|
+
instances in the primitive.
|
|
38876
38895
|
*/
|
|
38877
38896
|
show: boolean;
|
|
38878
38897
|
/**
|
|
38879
38898
|
* When <code>true</code>, the renderer frustum culls and horizon culls the primitive's commands
|
|
38880
|
-
|
|
38881
|
-
|
|
38899
|
+
based on their bounding volume. Set this to <code>false</code> for a small performance gain
|
|
38900
|
+
if you are manually culling the primitive.
|
|
38882
38901
|
*/
|
|
38883
38902
|
cull: boolean;
|
|
38884
38903
|
/**
|
|
38885
38904
|
* This property is for debugging only; it is not for production use nor is it optimized.
|
|
38886
|
-
|
|
38887
|
-
|
|
38888
|
-
|
|
38905
|
+
<p>
|
|
38906
|
+
Draws the bounding sphere for each draw command in the primitive.
|
|
38907
|
+
</p>
|
|
38889
38908
|
*/
|
|
38890
38909
|
debugShowBoundingVolume: boolean;
|
|
38891
38910
|
/**
|
|
@@ -38918,8 +38937,8 @@ export class Primitive {
|
|
|
38918
38937
|
readonly compressVertices: boolean;
|
|
38919
38938
|
/**
|
|
38920
38939
|
* Determines if the primitive is complete and ready to render. If this property is
|
|
38921
|
-
|
|
38922
|
-
|
|
38940
|
+
true, the primitive will be rendered the next time that {@link Primitive#update}
|
|
38941
|
+
is called.
|
|
38923
38942
|
*/
|
|
38924
38943
|
readonly ready: boolean;
|
|
38925
38944
|
/**
|
|
@@ -38928,42 +38947,42 @@ export class Primitive {
|
|
|
38928
38947
|
readonly readyPromise: Promise<Primitive>;
|
|
38929
38948
|
/**
|
|
38930
38949
|
* Called when {@link Viewer} or {@link CesiumWidget} render the scene to
|
|
38931
|
-
|
|
38932
|
-
|
|
38933
|
-
|
|
38934
|
-
|
|
38935
|
-
|
|
38950
|
+
get the draw commands needed to render this primitive.
|
|
38951
|
+
<p>
|
|
38952
|
+
Do not call this function directly. This is documented just to
|
|
38953
|
+
list the exceptions that may be propagated when the scene is rendered:
|
|
38954
|
+
</p>
|
|
38936
38955
|
*/
|
|
38937
38956
|
update(): void;
|
|
38938
38957
|
/**
|
|
38939
38958
|
* Returns the modifiable per-instance attributes for a {@link GeometryInstance}.
|
|
38940
38959
|
* @example
|
|
38941
38960
|
* const attributes = primitive.getGeometryInstanceAttributes('an id');
|
|
38942
|
-
|
|
38943
|
-
|
|
38944
|
-
|
|
38945
|
-
|
|
38961
|
+
attributes.color = Cesium.ColorGeometryInstanceAttribute.toValue(Cesium.Color.AQUA);
|
|
38962
|
+
attributes.show = Cesium.ShowGeometryInstanceAttribute.toValue(true);
|
|
38963
|
+
attributes.distanceDisplayCondition = Cesium.DistanceDisplayConditionGeometryInstanceAttribute.toValue(100.0, 10000.0);
|
|
38964
|
+
attributes.offset = Cesium.OffsetGeometryInstanceAttribute.toValue(Cartesian3.IDENTITY);
|
|
38946
38965
|
* @param id - The id of the {@link GeometryInstance}.
|
|
38947
38966
|
* @returns The typed array in the attribute's format or undefined if the is no instance with id.
|
|
38948
38967
|
*/
|
|
38949
38968
|
getGeometryInstanceAttributes(id: any): any;
|
|
38950
38969
|
/**
|
|
38951
38970
|
* Returns true if this object was destroyed; otherwise, false.
|
|
38952
|
-
|
|
38953
|
-
|
|
38954
|
-
|
|
38955
|
-
|
|
38971
|
+
<p>
|
|
38972
|
+
If this object was destroyed, it should not be used; calling any function other than
|
|
38973
|
+
<code>isDestroyed</code> will result in a {@link DeveloperError} exception.
|
|
38974
|
+
</p>
|
|
38956
38975
|
* @returns <code>true</code> if this object was destroyed; otherwise, <code>false</code>.
|
|
38957
38976
|
*/
|
|
38958
38977
|
isDestroyed(): boolean;
|
|
38959
38978
|
/**
|
|
38960
38979
|
* Destroys the WebGL resources held by this object. Destroying an object allows for deterministic
|
|
38961
|
-
|
|
38962
|
-
|
|
38963
|
-
|
|
38964
|
-
|
|
38965
|
-
|
|
38966
|
-
|
|
38980
|
+
release of WebGL resources, instead of relying on the garbage collector to destroy this object.
|
|
38981
|
+
<p>
|
|
38982
|
+
Once an object is destroyed, it should not be used; calling any function other than
|
|
38983
|
+
<code>isDestroyed</code> will result in a {@link DeveloperError} exception. Therefore,
|
|
38984
|
+
assign the return value (<code>undefined</code>) to the object as done in the example.
|
|
38985
|
+
</p>
|
|
38967
38986
|
* @example
|
|
38968
38987
|
* e = e && e.destroy();
|
|
38969
38988
|
*/
|
|
@@ -41045,8 +41064,8 @@ export class TimeDynamicPointCloud {
|
|
|
41045
41064
|
</ul>
|
|
41046
41065
|
* @example
|
|
41047
41066
|
* pointCloud.frameFailed.addEventListener(function(error) {
|
|
41048
|
-
console.log(
|
|
41049
|
-
console.log(
|
|
41067
|
+
console.log(`An error occurred loading frame: ${error.uri}`);
|
|
41068
|
+
console.log(`Error: ${error.message}`);
|
|
41050
41069
|
});
|
|
41051
41070
|
*/
|
|
41052
41071
|
frameFailed: Event;
|
|
@@ -42539,6 +42558,11 @@ export class Cesium3DTilesInspectorViewModel {
|
|
|
42539
42558
|
* Gets or sets the flag to show pick statistics. This property is observable.
|
|
42540
42559
|
*/
|
|
42541
42560
|
showPickStatistics: boolean;
|
|
42561
|
+
/**
|
|
42562
|
+
* Gets or sets the flag to show resource cache statistics. This property is
|
|
42563
|
+
observable.
|
|
42564
|
+
*/
|
|
42565
|
+
showResourceCacheStatistics: boolean;
|
|
42542
42566
|
/**
|
|
42543
42567
|
* Gets or sets the flag to show the inspector. This property is observable.
|
|
42544
42568
|
*/
|
|
@@ -42728,6 +42752,10 @@ export class Cesium3DTilesInspectorViewModel {
|
|
|
42728
42752
|
* Gets the pick statistics text. This property is observable.
|
|
42729
42753
|
*/
|
|
42730
42754
|
readonly pickStatisticsText: string;
|
|
42755
|
+
/**
|
|
42756
|
+
* Gets the resource cache statistics text. This property is observable.
|
|
42757
|
+
*/
|
|
42758
|
+
readonly resourceCacheStatisticsText: string;
|
|
42731
42759
|
/**
|
|
42732
42760
|
* Gets the available blend modes
|
|
42733
42761
|
*/
|