Appearance
KBE3D / KBCore / Cesium / DebugCameraPrimitive
类: DebugCameraPrimitive
Draws the outline of the camera's view frustum.
示例
ts
primitives.add(new Cesium.DebugCameraPrimitive({
camera : camera,
color : Cesium.Color.YELLOW
}));参数
Object with the following properties:
参数
The camera.
参数
Distances to the near and far planes of the camera frustums. This overrides the camera's frustum near and far values.
参数
The color of the debug outline.
参数
Whether the primitive updates when the underlying camera changes.
参数
Determines if this primitive will be shown.
参数
A user-defined object to return when the instance is picked with Scene#pick.
属性
show
show:
boolean
Determines if this primitive will be shown.
id
id:
any
User-defined value returned when the primitive is picked.
方法
isDestroyed()
isDestroyed():
boolean
Returns true if this object was destroyed; otherwise, false. <p> If this object was destroyed, it should not be used; calling any function other than <code>isDestroyed</code> will result in a DeveloperError exception. </p>
返回
boolean
true if this object was destroyed; otherwise, false.
destroy()
destroy():
void
Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object. <p> Once an object is destroyed, it should not be used; calling any function other than <code>isDestroyed</code> will result in a DeveloperError exception. Therefore, assign the return value (<code>undefined</code>) to the object as done in the example. </p>
返回
void
示例
ts
p = p && p.destroy();构造函数
构造函数
new DebugCameraPrimitive(
options: {camera:Camera;frustumSplits?:number[];color?:Color;updateOnChange?:boolean;show?:boolean;id?:any; }):DebugCameraPrimitive
参数
options
camera
frustumSplits?
number[]
color?
updateOnChange?
boolean
show?
boolean
id?
any
返回
DebugCameraPrimitive
