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 | 具有以下属性的对象:
|
Members
readonly boundingSphere : BoundingSphere
undefined
。clippingPlanes : ClippingPlaneCollection
ClippingPlaneCollection
用于有选择地禁用渲染点云。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
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);
});
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:
modelMatrix : Matrix4
-
Default Value:
Matrix4.IDENTITY
readonly readyPromise : Promise.<TimeDynamicPointCloud>
shadows : ShadowMode
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
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:
Methods
销毁此对象持有的WebGL资源。销毁一个对象允许确定性 释放WebGL资源,而不是依赖垃圾回收器销毁此对象。 一旦一个对象被销毁,就不应该使用它;调用除
isDestroyed
将导致DeveloperError
异常。因此,
如示例所示,将返回值(undefined
)分配给对象。Throws:
-
DeveloperError :此对象已销毁,即调用destroy()。
Example:
pointCloud = pointCloud && pointCloud.destroy();
See:
Returns:
true
;否则为false
。TimeDynamicPointCloud#style
标记为脏的,这将强制所有
指向在下一帧中重新评估样式。