DebugCameraPrimitive

new Cesium.DebugCameraPrimitive(options)

绘制摄影机视锥的轮廓。
Name Type Description
options Object 具有以下属性的对象:
Name Type Default Description
camera Camera 摄像机。
frustumSplits Array.<Number> optional 到相机截头的近平面和远平面的距离。这将覆盖摄影机的“圆台近”和“远”值。
color Color Color.CYAN optional 调试大纲的颜色。
updateOnChange Boolean true optional 基本体是否在基础摄影机更改时更新。
show Boolean true optional 确定是否显示此原语。
id Object optional 使用Scene#pick选择实例时要返回的用户定义对象。
Example:
primitives.add(new Cesium.DebugCameraPrimitive({
  camera : camera,
  color : Cesium.Color.YELLOW
}));

Members

拾取基元时返回的用户定义值。
Default Value: undefined
See:
确定是否显示此基本体。
Default Value: true

Methods

销毁此对象持有的WebGL资源。销毁一个对象允许确定性 释放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:
Example:
p = p && p.destroy();
See:

isDestroyed()Boolean

如果此对象已销毁,则返回true;否则返回false。

If this object was destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception.

Returns:
如果此对象被销毁,则为true;否则为false
See: