new Cesium.PolygonGraphics(options)

描述构成外形和任何巢孔的线形环的分级定义的多边形. 多边形符合地球的曲率,可以放置在表面或 在高度上,可以选择挤出一个卷.
Name Type Description
options PolygonGraphics.ConstructorOptions optional 描述初始化选项的对象
Demo:
See:

Members

arcType : Property|undefined

Gets or sets the ArcType Property specifying the type of lines the polygon edges use.
Default Value: ArcType.GEODESIC

classificationType : Property|undefined

Gets or sets the ClassificationType Property specifying whether this polygon will classify terrain, 3D Tiles, or both when on the ground.
Default Value: ClassificationType.BOTH

closeBottom : Property|undefined

获取或设置布尔,指定是否包含外部多边形的底部.

closeTop : Property|undefined

获取或设置布尔指定是否包含挤压多边形的顶部.

readonly definitionChanged : Event

当财产或次级财产被改变或修改时,获取该事件.

distanceDisplayCondition : Property|undefined

Gets or sets the DistanceDisplayCondition Property specifying at what distance from the camera that this polygon will be displayed.

extrudedHeight : Property|undefined

获取或设置指定多边形挤压高度的数值属性. 如果 PolygonGraphics#perPositionHeight 是虚假的,音量开始于 PolygonGraphics#height ,结束于此高度. 如果 PolygonGraphics#perPositionHeight 是真的,则音量从每个 PolygonGraphics#hierarchy 位置的高度开始,到此高度结束.

extrudedHeightReference : Property|undefined

Gets or sets the Property specifying the extruded HeightReference.
Default Value: HeightReference.NONE

fill : Property|undefined

获取或设置布尔属性,指定多边形是否包含所提供的材料.
Default Value: true

granularity : Property|undefined

获取或设置指定多边形各点之间的角距离的数值属性.
Default Value: {CesiumMath.RADIANS_PER_DEGREE}

height : Property|undefined

获取或设置指定多边形常数高度的数值属性.
Default Value: 0.0

heightReference : Property|undefined

Gets or sets the Property specifying the HeightReference.
Default Value: HeightReference.NONE

hierarchy : Property|undefined

Gets or sets the Property specifying the PolygonHierarchy.

material : MaterialProperty

获取或设置指定用于填充多边形的材料的属性.
Default Value: Color.WHITE

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

perPositionHeight : Property|undefined

获取或设置布尔,指定是否使用每个位置的高度. If true, the shape will have non-uniform altitude defined by the height of each PolygonGraphics#hierarchy position. 如果错误,形状将具有由 PolygonGraphics#height 指定的恒定高度.

shadows : Property|undefined

获取或设置指定多边形属性 投影或接收来自光源的阴影.
Default Value: ShadowMode.DISABLED

show : Property|undefined

获取或设置指定多边形可见度的布尔属性.
Default Value: true

stRotation : Property|undefined

获取或设置指定多边形纹理逆时针自北旋转的数值属性。 只有在纹理坐标没有被定义时才有效果.
Default Value: 0

textureCoordinates : Property|undefined

A Property specifying texture coordinates as a PolygonHierarchy of Cartesian2 points. Has no effect for ground primitives.

zIndex : ConstantProperty|undefined

获取或设置指定地面几何顺序的 zIndex Prperty 。 只有当多边形是恒定的,且既不指定高度,也不指定外部高度时,才产生效果.
Default Value: 0

Methods

clone(result)PolygonGraphics

重复这个例子.
Name Type Description
result PolygonGraphics optional 存储结果的对象 .
Returns:
未提供修改的结果参数或新实例 .

merge(source)

指定该对象上每个未指定属性的值 - 提供源对象上的同一财产.
Name Type Description
source PolygonGraphics 要合并成此天体的对象.

Type Definitions

Cesium.PolygonGraphics.ConstructorOptions

多边形构造器的初始化选项
Properties:
Name Type Attributes Default Description
show Property | boolean <optional>
true 指定多边形可见度的布尔属性.
hierarchy Property | PolygonHierarchy | Array.<Cartesian3> <optional>
A Property specifying the PolygonHierarchy.
height Property | number <optional>
0 A numeric Property specifying the altitude of the polygon relative to the ellipsoid surface.
heightReference Property | HeightReference <optional>
HeightReference.NONE A Property specifying what the height is relative to.
extrudedHeight Property | number <optional>
一个数字属性,指定多边形外凸面相对于椭圆表面的高度.
extrudedHeightReference Property | HeightReference <optional>
HeightReference.NONE A Property specifying what the extrudedHeight is relative to.
stRotation Property | number <optional>
0.0 指定多边形纹理逆时针自北旋转的数值属性. 只有在纹理坐标没有被定义时才有效果.
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 polygon is filled with the provided material.
material MaterialProperty | Color <optional>
Color.WHITE A Property specifying the material used to fill the polygon.
outline Property | boolean <optional>
false A boolean Property specifying whether the polygon is outlined.
outlineColor Property | Color <optional>
Color.BLACK A Property specifying the Color of the outline.
outlineWidth Property | number <optional>
1.0 指定大纲宽度的数值属性.
perPositionHeight Property | boolean <optional>
false A boolean specifying whether or not the height of each position is used.
closeTop boolean | boolean <optional>
true When false, leaves off the top of an extruded polygon open.
closeBottom boolean | boolean <optional>
true When false, leaves off the bottom of an extruded polygon open.
arcType Property | ArcType <optional>
ArcType.GEODESIC The type of line the polygon edges must follow.
shadows Property | ShadowMode <optional>
ShadowMode.DISABLED An enum Property specifying whether the polygon casts or receives shadows from light sources.
distanceDisplayCondition Property | DistanceDisplayCondition <optional>
指定此多边形显示距离相机的属性 .
classificationType Property | ClassificationType <optional>
ClassificationType.BOTH An enum Property specifying whether this polygon will classify terrain, 3D Tiles, or both when on the ground.
zIndex ConstantProperty | number <optional>
0 A property specifying the zIndex used for ordering ground geometry. Only has an effect if the polygon is constant and neither height or extrudedHeight are specified.
textureCoordinates Property | PolygonHierarchy <optional>
A Property specifying texture coordinates as a PolygonHierarchy of Cartesian2 points. Has no effect for ground primitives.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.