new Cesium.DebugCameraPrimitive(options)

绘制相机视野的轮廓 .
Name Type Description
options object 下列属性的对象 :
Name Type Default Description
camera Camera The camera.
frustumSplits Array.<number> optional 距离相机的近距离和远处的飞机。 这覆盖了相机的浮雕 接近和远值.
color Color Color.CYAN optional The color of the debug outline.
updateOnChange boolean true optional Whether the primitive updates when the underlying camera changes.
show boolean true optional Determines if this primitive will be shown.
id object optional A user-defined object to return when the instance is picked with Scene#pick.
Example:
primitives.add(new Cesium.DebugCameraPrimitive({
  camera : camera,
  color : Cesium.Color.YELLOW
}));

Members

id : *

选择原始时返回用户定义的值 .
Default Value: undefined
See:

show : boolean

确定是否将显示此原始文件 .
Default Value: true

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:
p = p && p.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:
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.