ViewportQuad

new Cesium.ViewportQuad(rectangle, material)

视口对齐的四边形。
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对象中的一个,也可以是一个自定义材质,用 Fabric

The default material is Material.ColorType.

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:
定义四边形在视口中的位置的边界矩形。
Example:
viewportQuad.rectangle = new Cesium.BoundingRectangle(0, 0, 80, 40);

show : Boolean

确定是否显示视口四边形基本体。
Default Value: true

Methods



销毁此对象持有的WebGL资源。销毁一个对象允许确定性 释放WebGL资源,而不是依赖垃圾回收器销毁此对象。 一旦一个对象被销毁,就不应该使用它;调用除 isDestroyed将导致DeveloperError异常。因此, 如示例所示,将返回值(undefined)分配给对象。
Throws:
Example:
quad = quad && quad.destroy();
See:

isDestroyed()Boolean



如果此对象已销毁,则返回true;否则返回false。 如果此对象已被销毁,则不应使用它;调用除 isDestroyed将导致DeveloperError异常。
Returns:
如果此对象被销毁,则为True;否则为false。
See:
ViewerCesiumWidget将场景渲染到 获取渲染此基本体所需的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: