视口对齐的四边形。
Name | Type | Description |
---|---|---|
rectangle |
BoundingRectangle | optional
BoundingRectangle 定义四元曲线在视口中的位置。 |
material |
Material | optional
Material 定义视口四边形的曲面外观。 |
Example:
var viewportQuad = new Cesium.ViewportQuad(new Cesium.BoundingRectangle(0, 0, 80, 40));
viewportQuad.material.uniforms.color = new Cesium.Color(1.0, 0.0, 0.0, 1.0);
Members
material : Material
Example:
// 1. Change the color of the default material to yellow
viewportQuad.material.uniforms.color = new Cesium.Color(1.0, 1.0, 0.0, 1.0);
// 2. Change material to horizontal stripes
viewportQuad.material = Cesium.Material.fromType(Cesium.Material.StripeType);
See:
rectangle : BoundingRectangle
定义四边形在视口中的位置的边界矩形。
Example:
viewportQuad.rectangle = new Cesium.BoundingRectangle(0, 0, 80, 40);
确定是否显示视口四边形基本体。
-
Default Value:
true
Methods
销毁此对象持有的WebGL资源。销毁一个对象允许确定性 释放WebGL资源,而不是依赖垃圾回收器销毁此对象。 一旦一个对象被销毁,就不应该使用它;调用除
isDestroyed
将导致DeveloperError
异常。因此,
如示例所示,将返回值(undefined
)分配给对象。Throws:
-
DeveloperError :此对象已销毁,即调用destroy()。
Example:
quad = quad && quad.destroy();
See:
Returns:
如果此对象被销毁,则为True;否则为false。
See:
当
Viewer
或CesiumWidget
将场景渲染到
获取渲染此基本体所需的draw命令。
Do not call this function directly. This is documented just to list the exceptions that may be propagated when the scene is rendered:
Throws:
-
DeveloperError : 这个。材料必须定义。
-
DeveloperError : 这个矩形必须定义。