描述由一条线串以及沿其拉伸的对应二维形状所定义的管线体。
生成的体贴合地球的曲率。
| Name | Type | Description |
|---|---|---|
options |
PolylineVolumeGraphics.ConstructorOptions | optional 描述初始化选项的对象。 |
Demo:
See:
Members
cornerType : Property|undefined
获取或设置
CornerType 属性,指定拐角的样式。
-
Default Value:
CornerType.ROUNDED
readonly definitionChanged : Event
获取当某个属性或子属性发生更改时被触发的事件。
distanceDisplayCondition : Property|undefined
获取或设置
DistanceDisplayCondition 属性,指定此体将在距离相机多远时显示。
fill : Property|undefined
获取或设置布尔属性,指定体是否使用所提供的材质进行填充。
-
Default Value:
true
granularity : Property|undefined
获取或设置数值属性,指定体上各点之间的角距离。
-
Default Value:
{CesiumMath.RADIANS_PER_DEGREE}
获取或设置指定用于填充体的材质的属性。
-
Default Value:
Color.WHITE
outline : Property|undefined
获取或设置指定体是否带有轮廓的属性。
-
Default Value:
false
outlineColor : Property|undefined
获取或设置指定轮廓
Color 的属性。
-
Default Value:
Color.BLACK
outlineWidth : Property|undefined
获取或设置数值属性,指定轮廓的宽度。
注意:在 Windows 平台上的所有主流浏览器中,此属性将被忽略。详情请参阅 (@link https://github.com/CesiumGS/cesium/issues/40}.
-
Default Value:
1.0
positions : Property|undefined
获取或设置指定定义线串的
Cartesian3 positions 数组的属性。
shadows : Property|undefined
获取或设置枚举属性,指定体是否
投射或接收来自光源的阴影。
-
Default Value:
ShadowMode.DISABLED
shape : Property|undefined
获取或设置指定定义要拉伸形状的
Cartesian2 positions 数组的属性。
show : Property|undefined
获取或设置布尔属性,指定体的可见性。
-
Default Value:
true
Methods
复制此实例。
| Name | Type | Description |
|---|---|---|
result |
PolylineVolumeGraphics | optional 用于存储结果的对象。 |
Returns:
修改后的 result 参数,如果未提供则返回新实例。
将此对象上每个未赋值的属性设为
所提供源对象上相同属性的值。
| Name | Type | Description |
|---|---|---|
source |
PolylineVolumeGraphics | 要合并到此对象中的对象。 |
Type Definitions
PolylineVolumeGraphics 构造函数的初始化选项
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | 一个布尔属性,指定体的可见性。 |
positions |
Property | Array.<Cartesian3> |
<optional> |
一个属性,指定定义线串的 Cartesian3 positions 数组。 |
|
shape |
Property | Array.<Cartesian2> |
<optional> |
一个属性,指定定义要拉伸形状的 Cartesian2 positions 数组。 |
|
cornerType |
Property | CornerType |
<optional> |
CornerType.ROUNDED | 一个 CornerType 属性,指定拐角的样式。 |
granularity |
Property | number |
<optional> |
Cesium.Math.RADIANS_PER_DEGREE | 一个数值属性,指定每个经纬度点之间的角距离。 |
fill |
Property | boolean |
<optional> |
true | 一个布尔属性,指定体是否使用所提供的材质进行填充。 |
material |
MaterialProperty | Color |
<optional> |
Color.WHITE | 一个属性,指定用于填充体的材质。 |
outline |
Property | boolean |
<optional> |
false | 一个布尔属性,指定体是否带有轮廓。 |
outlineColor |
Property | Color |
<optional> |
Color.BLACK | 一个属性,指定轮廓的 Color。 |
outlineWidth |
Property | number |
<optional> |
1.0 | 一个数值属性,指定轮廓的宽度。 |
shadows |
Property | ShadowMode |
<optional> |
ShadowMode.DISABLED | 一个枚举属性,指定体是否投射或接收来自光源的阴影。 |
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<optional> |
一个属性,指定此体将在距离相机多远时显示。 |
