绘制摄像机视锥体的轮廓。
Name | Type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
对象,具有以下属性:
|
Example:
primitives.add(new Cesium.DebugCameraPrimitive({
camera : camera,
color : Cesium.Color.YELLOW
}));
Members
选取基元时返回的 User-defined 值。
-
Default Value:
undefined
See:
确定是否显示此基元.
-
Default Value:
true
Methods
销毁此对象持有的 WebGL 资源。 销毁对象允许确定性
释放 WebGL 资源,而不是依赖垃圾回收器来销毁这个对象。
一旦对象被销毁,就不应该使用它;调用
isDestroyed
将导致 DeveloperError
异常。 Therefore,
将返回值 (undefined
) 分配给对象,如示例中所示。
Throws:
-
DeveloperError : 这个物体被摧毁了,destroy().
Example:
p = p && p.destroy();
See:
如果此对象已销毁,则返回 true;否则为 false。
如果此对象已销毁,则不应使用;调用
isDestroyed
将导致 DeveloperError
异常。
Returns:
如果此对象被销毁,
则为 true
;否则为 false
。