绘制摄影机视锥的轮廓。
Name | Type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 具有以下属性的对象:
|
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:
-
DeveloperError :此对象已销毁,即调用destroy()。
Example:
p = p && p.destroy();
See:
如果此对象已销毁,则返回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
。