English中文

WallGraphics

new Cesium.WallGraphics(options)

描述定义为线带和可选的最大和最小高度的二维墙。该墙符合地球的曲率,可以沿表面或高空放置。 Describes a two dimensional wall defined as a line strip and optional maximum and minimum heights. The wall conforms to the curvature of the globe and can be placed along the surface or at altitude.
名称 Name 类型 Type 说明 Description
options WallGraphics.ConstructorOptions 可选 optional 描述初始化选项的对象 Object describing initialization options
演示: Demo:
另见: See:

成员 Members

获取每当更改或修改属性或子属性时引发的事件。 Gets the event that is raised whenever a property or sub-property is changed or modified.

distanceDisplayCondition : Property|undefined

获取或设置 Gets or sets the DistanceDisplayCondition 属性指定该墙将在距摄像机的距离处显示。 Property specifying at what distance from the camera that this wall will be displayed.
获取或设置布尔属性,指定墙壁是否填充所提供的材料。 Gets or sets the boolean Property specifying whether the wall is filled with the provided material.
默认值: Default Value: true
获取或设置指定墙上点之间的角距离的数字属性。 Gets or sets the numeric Property specifying the angular distance between points on the wall.
默认值: Default Value: {CesiumMath.RADIANS_PER_DEGREE}
获取或设置指定用于填充墙壁的材质的属性。 Gets or sets the Property specifying the material used to fill the wall.
默认值: Default Value: Color.WHITE
获取或设置属性,指定用于墙顶部的高度数组,而不是每个位置的高度。如果定义,数组的长度必须与 Gets or sets the Property specifying an array of heights to be used for the top of the wall instead of the height of each position. If defined, the array must be the same length as Wall#positions.
获取或设置指定用于墙底部而不是地球表面的高度数组的属性。如果定义,数组的长度必须与 Gets or sets the Property specifying an array of heights to be used for the bottom of the wall instead of the surface of the globe. If defined, the array must be the same length as Wall#positions.
获取或设置指定墙是否为轮廓的属性。 Gets or sets the Property specifying whether the wall is outlined.
默认值: Default Value: false
获取或设置指定的属性 Gets or sets the Property specifying the Color 的轮廓。 of the outline.
默认值: Default Value: Color.BLACK
获取或设置指定轮廓宽度的数字属性。 Gets or sets the numeric Property specifying the width of the outline.

注意:此属性在 Windows 平台上的所有主要浏览器上都将被忽略。有关详细信息,请参阅(@link https://github.com/CesiumGS/cesium/issues/40}。 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
获取或设置指定数组的属性 Gets or sets the Property specifying the array of Cartesian3 定义墙顶部的位置。 positions which define the top of the wall.
获取或设置枚举属性,指定墙壁是否投射或接收来自光源的阴影。 Get or sets the enum Property specifying whether the wall casts or receives shadows from light sources.
默认值: Default Value: ShadowMode.DISABLED
获取或设置指定墙的可见性的布尔属性。 Gets or sets the boolean Property specifying the visibility of the wall.
默认值: Default Value: true

方法 Methods

复制此实例。 Duplicates this instance.
名称 Name 类型 Type 说明 Description
result WallGraphics 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新实例(如果未提供)。 The modified result parameter or a new instance if one was not provided.
将此对象上每个未分配的属性分配给所提供的源对象上相同属性的值。 Assigns each unassigned property on this object to the value of the same property on the provided source object.
名称 Name 类型 Type 说明 Description
source WallGraphics 要合并到此对象中的对象。 The object to be merged into this object.

类型定义 Type Definitions

Cesium.WallGraphics.ConstructorOptions

WallGraphics 构造函数的初始化选项 Initialization options for the WallGraphics constructor
属性: Properties:
名称 Name 类型 Type Attributes 默认值 Default 说明 Description
show Property | boolean <可选> &lt;optional>
true 指定墙的可见性的布尔属性。 A boolean Property specifying the visibility of the wall.
positions Property | Array.<Cartesian3> <可选> &lt;optional>
指定数组的属性 A Property specifying the array of Cartesian3 定义墙顶部的位置。 positions which define the top of the wall.
minimumHeights Property | Array.<number> <可选> &lt;optional>
指定用于墙底部而不是地球表面的高度数组的属性。 A Property specifying an array of heights to be used for the bottom of the wall instead of the globe surface.
maximumHeights Property | Array.<number> <可选> &lt;optional>
一个属性,指定用于墙顶部的高度数组,而不是每个位置的高度。 A Property specifying an array of heights to be used for the top of the wall instead of the height of each position.
granularity Property | number <可选> &lt;optional>
Cesium.Math.RADIANS_PER_DEGREE 指定每个纬度和经度点之间的角距离的数字属性。 A numeric Property specifying the angular distance between each latitude and longitude point.
fill Property | boolean <可选> &lt;optional>
true 一个布尔属性,指定墙壁是否填充所提供的材料。 A boolean Property specifying whether the wall is filled with the provided material.
material MaterialProperty | Color <可选> &lt;optional>
Color.WHITE 指定用于填充墙壁的材料的属性。 A Property specifying the material used to fill the wall.
outline Property | boolean <可选> &lt;optional>
false 一个布尔属性,指定墙是否已勾勒出轮廓。 A boolean Property specifying whether the wall is outlined.
outlineColor Property | Color <可选> &lt;optional>
Color.BLACK 指定的属性 A Property specifying the Color 的轮廓。 of the outline.
outlineWidth Property | number <可选> &lt;optional>
1.0 指定轮廓宽度的数字属性。 A numeric Property specifying the width of the outline.
shadows Property | ShadowMode <可选> &lt;optional>
ShadowMode.DISABLED 一个枚举属性,指定墙壁是否投射或接收来自光源的阴影。 An enum Property specifying whether the wall casts or receives shadows from light sources.
distanceDisplayCondition Property | DistanceDisplayCondition <可选> &lt;optional>
一个属性,指定该墙将在距摄像机的距离处显示。 A Property specifying at what distance from the camera that this wall will be displayed.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.