TimeDynamicPointCloud

new Cesium.TimeDynamicPointCloud(options)

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

Point cloud frames are prefetched in intervals determined by the average frame load time and the current clock speed. If intermediate frames cannot be loaded in time to meet playback speed, they will be skipped. If frames are sufficiently small or the clock is sufficiently slow then no frames will be skipped.

Name Type Description
options Object 具有以下属性的对象:
Name Type Default Description
clock Clock 确定时间维度的值时使用的Clock实例。
intervals TimeIntervalCollection 一个TimeIntervalCollection,它的数据属性是一个对象,其中包含一个指向三维分片的uri和一个可选的transform
show Boolean true optional 确定是否显示点云。
modelMatrix Matrix4 Matrix4.IDENTITY optional 变换点云的4x4变换矩阵。
shadows ShadowMode ShadowMode.ENABLED optional 确定点云是投射还是接收来自光源的阴影。
maximumMemoryUsage Number 256 optional 点云可以使用的最大内存量(MB)。
shading Object optional 用于构造PointCloudShading对象以控制点衰减和眼罩照明的选项。
style Cesium3DTileStyle optional 使用3D Tiles Styling language定义的样式应用于点云中的每个点。
clippingPlanes ClippingPlaneCollection optional ClippingPlaneCollection用于选择性地禁用渲染点云。

Members

正在渲染的帧的边界球体。如果没有渲染帧,则返回undefined
ClippingPlaneCollection用于有选择地禁用渲染点云。
激发以指示新帧已呈现的事件。

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);
});
触发以指示帧加载失败的事件。如果 由于内容无效,对其uri的请求失败或处理失败。

If there are no event listeners, error messages will be logged to the console.

The error object passed to the listener contains two properties:

  • 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

可用于缓存点云帧的最大GPU内存量(以MB为单位)。

Frames that are not being loaded or rendered are unloaded to enforce this.

If decreasing this value results in unloading tiles, the tiles are unloaded the next frame.

Default Value: 256
See:
变换点云的4x4变换矩阵。
Default Value: Matrix4.IDENTITY

readonly readyPromise : Promise.<TimeDynamicPointCloud>

获取将在点云首次渲染帧时解析的承诺。
基于几何误差和眼罩照明控制点大小的选项。
确定点云是投射还是接收来自光源的阴影。

Enabling shadows has a performance impact. A point cloud that casts shadows must be rendered twice, once from the camera and again from the light's point of view.

Shadows are rendered only when Viewer#shadows is true.

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

Assign undefined to remove the style, which will restore the visual appearance of the point cloud to its default when no style was applied.

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

点云使用的GPU内存总量(字节)。
See:

Methods



销毁此对象持有的WebGL资源。销毁一个对象允许确定性 释放WebGL资源,而不是依赖垃圾回收器销毁此对象。 一旦一个对象被销毁,就不应该使用它;调用除 isDestroyed将导致DeveloperError异常。因此, 如示例所示,将返回值(undefined)分配给对象。
Throws:
Example:
pointCloud = pointCloud && pointCloud.destroy();
See:

isDestroyed()Boolean



如果此对象已销毁,则返回true;否则返回false。 如果此对象已被销毁,则不应使用它;调用除 isDestroyed将导致DeveloperError异常。
Returns:
如果此对象被销毁,则为true;否则为false
See:
将点云的TimeDynamicPointCloud#style标记为脏的,这将强制所有 指向在下一帧中重新评估样式。