描述一个二维壁,定义为线条和可选的最大和最小高度.
墙壁符合地球的曲面,可以沿表面或高度放置.
| Name | Type | Description |
|---|---|---|
options |
WallGraphics.ConstructorOptions | optional 描述初始化选项的对象 |
Demo:
See:
Members
readonly definitionChanged : Event
当财产或次级财产被改变或修改时,获取该事件.
distanceDisplayCondition : Property|undefined
Gets or sets the
DistanceDisplayCondition Property specifying at what distance from the camera that this wall will be displayed.
fill : Property|undefined
获取或设置布尔属性,指定墙壁是否填充所提供的材料.
-
Default Value:
true
granularity : Property|undefined
获取或设置指定墙上各点之间的角距离的数值属性.
-
Default Value:
{CesiumMath.RADIANS_PER_DEGREE}
material : MaterialProperty
获取或设置指定用于填充墙壁的材料的属性.
-
Default Value:
Color.WHITE
maximumHeights : Property|undefined
获取或设置属性指定用于壁顶而非每个位置高度的高度数组.
如果定义,阵列的长度必须与
Wall#positions 相同.
minimumHeights : Property|undefined
获取或设置指定用于壁底而非地球表面的高程的属性 .
如果定义,阵列的长度必须与
Wall#positions 相同.
outline : Property|undefined
获取或设置属性,指定是否绘制了墙壁.
-
Default Value:
false
outlineColor : Property|undefined
获取或设置指定大纲的
Color 的属性 .
-
Default Value:
Color.BLACK
outlineWidth : Property|undefined
获取或设置指定大纲宽度的数字属性.
Note: This property will be ignored on all major browsers on Windows platforms. For details, see (@link https://github.com/CesiumGS/cesium/issues/40}.
-
Default Value:
1.0
positions : Property|undefined
Gets or sets the Property specifying the array of
Cartesian3 positions which define the top of the wall.
shadows : Property|undefined
获取或设置 enum 属性,指定是否墙壁
投影或接收来自光源的阴影.
-
Default Value:
ShadowMode.DISABLED
show : Property|undefined
获取或设置指定壁的可见度的布尔属性 .
-
Default Value:
true
Methods
clone(result) → WallGraphics
重复这个例子.
| Name | Type | Description |
|---|---|---|
result |
WallGraphics | optional 存储结果的对象 . |
Returns:
未提供修改的结果参数或新实例 .
指定该对象上每个未指定属性的值
- 提供源对象上的同一财产.
| Name | Type | Description |
|---|---|---|
source |
WallGraphics | 要合并成此天体的对象. |
Type Definitions
WallGraphics 构造器的初始化选项
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | A boolean Property specifying the visibility of the wall. |
positions |
Property | Array.<Cartesian3> |
<optional> |
A Property specifying the array of Cartesian3 positions which define the top of the wall. |
|
minimumHeights |
Property | Array.<number> |
<optional> |
指定用于壁底而非地球表面的高度数组属性 . | |
maximumHeights |
Property | Array.<number> |
<optional> |
指定用于墙顶而非每个位置高度的高度阵列属性. | |
granularity |
Property | number |
<optional> |
Cesium.Math.RADIANS_PER_DEGREE | A numeric Property specifying the angular distance between each latitude and longitude point. |
fill |
Property | boolean |
<optional> |
true | A boolean Property specifying whether the wall is filled with the provided material. |
material |
MaterialProperty | Color |
<optional> |
Color.WHITE | A Property specifying the material used to fill the wall. |
outline |
Property | boolean |
<optional> |
false | A boolean Property specifying whether the wall is outlined. |
outlineColor |
Property | Color |
<optional> |
Color.BLACK | A Property specifying the Color of the outline. |
outlineWidth |
Property | number |
<optional> |
1.0 | 指定大纲宽度的数值属性. |
shadows |
Property | ShadowMode |
<optional> |
ShadowMode.DISABLED | An enum Property specifying whether the wall casts or receives shadows from light sources. |
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<optional> |
指定显示此墙的距离的属性 . |