new Cesium.TimeDynamicPointCloud(options)

提供时间动态点云数据的回放.

点云框按平均帧负载时间和当前时钟速度决定的间隔预设. 如果中间帧无法及时装入以满足回放速度,它们会被跳过. 如果帧足够 小或时钟足够慢,则不会跳过帧.

Name Type Description
options object 下列属性的对象 :
Name Type Default Description
clock Clock A Clock instance that is used when determining the value for the time dimension.
intervals TimeIntervalCollection A TimeIntervalCollection with its data property being an object containing a uri to a 3D Tiles Point Cloud tile and an optional transform.
show boolean true optional Determines if the point cloud will be shown.
modelMatrix Matrix4 Matrix4.IDENTITY optional A 4x4 transformation matrix that transforms the point cloud.
shadows ShadowMode ShadowMode.ENABLED optional Determines whether the point cloud casts or receives shadows from light sources.
maximumMemoryUsage number 256 optional 点云可以使用的MB中最大内存量.
shading object optional 为控制点衰减和眼睛穹顶照明而构建 PointCloudShading 对象的选项.
style Cesium3DTileStyle optional The style, defined using the 3D Tiles Styling language, applied to each point in the point cloud.
clippingPlanes ClippingPlaneCollection optional The ClippingPlaneCollection used to selectively disable rendering the point cloud.

Members

readonly boundingSphere : BoundingSphere

The bounding sphere of the frame being rendered. Returns undefined if no frame is being rendered.

clippingPlanes : ClippingPlaneCollection

The ClippingPlaneCollection used to selectively disable rendering the point cloud.

frameChanged : Event

这次事件是为了表明新框架已经打开.

The time dynamic point cloud TimeDynamicPointCloud is passed to the event listener.

Default Value: new Event()
Example:
pointCloud.frameChanged.addEventListener(function(timeDynamicPointCloud) {
    viewer.camera.viewBoundingSphere(timeDynamicPointCloud.boundingSphere);
});

frameFailed : Event

该事件是为了表明一个帧未能装入. 如果 请求其uri失败或处理失败,因为内容无效.

如果没有事件听众,错误消息会登录到控制台.

传递给听众的错误对象包含两个属性:

  • uri: the uri of the failed frame.
  • message: the error message.
Default Value: new Event()
Example:
pointCloud.frameFailed.addEventListener(function(error) {
    console.log(`An error occurred loading frame: ${error.uri}`);
    console.log(`Error: ${error.message}`);
});

maximumMemoryUsage : number

用于缓存点云帧的 NT 0 内存(以 MB 计) 最大值 .

未装入或制成的帧会被卸下以强制执行.

如果降低这一值导致卸下瓦片,则在下一个框架上卸下瓦片.

Default Value: 256
See:

modelMatrix : Matrix4

4×4变换矩阵变换点云.
Default Value: Matrix4.IDENTITY

shading : PointCloudShading

基于几何误差和眼穹照明的控制点大小的选项.

shadows : ShadowMode

确定点云是投影还是接收来自光源的阴影.

赋能阴影具有性能影响. 投影的点云必须两次渲染,一次从镜头,另一次从光线的角度.

阴影只有在 Viewer#shadows 时才会渲染.

Default Value: ShadowMode.ENABLED

show : boolean

确定点云是否会显示.
Default Value: true
样式, 使用 3D Tiles Styling language, 适用于点云中的每个点.

Assign undefined to remove the style, which will restore the visual 当未应用样式时,点云出现到默认值.

Example:
pointCloud.style = new Cesium.Cesium3DTileStyle({
   color : {
       conditions : [
           ['${Classification} === 0', 'color("purple", 0.5)'],
           ['${Classification} === 1', 'color("red")'],
           ['true', '${COLOR}']
       ]
   },
   show : '${Classification} !== 2'
});
See:

readonly totalMemoryUsageInBytes : number

点云所使用的字节中的 NT 0 内存总量.
See:

Methods

destroy()

Destroys the WebGL resources held by this object. Destroying an object allows for deterministic 释放 WebGL 资源,而不是依赖垃圾收集器来摧毁此对象.

Once an object is destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception. Therefore, assign the return value (undefined) to the object as done in the example.
Throws:
  • DeveloperError : This object was destroyed, i.e., destroy() was called.
Example:
pointCloud = pointCloud && pointCloud.destroy();
See:

isDestroyed()boolean

如果此对象被销毁, 返回真实; 否则, 错误 .

If this object was destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception.
Returns:
true if this object was destroyed; otherwise, false.
See:

makeStyleDirty()

Marks the point cloud's TimeDynamicPointCloud#style as dirty, which forces all 指点可以重新评价下一个框架中的样式.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.