描述一个折线体,定义为线带和沿其拉伸的相应二维形状。
生成的体会贴合地球曲率。
| 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 平台上的所有主流浏览器都会忽略此属性。详情请参见 https://github.com/CesiumGS/cesium/issues/40。
-
Default Value:
1.0
positions : Property|undefined
获取或设置指定定义线带的
Cartesian3 位置数组的属性。
shadows : Property|undefined
获取或设置枚举属性,指定体是否从光源投射或接收阴影。
-
Default Value:
ShadowMode.DISABLED
shape : Property|undefined
获取或设置指定定义要拉伸的形状的
Cartesian2 位置数组的属性。
show : Property|undefined
获取或设置指定体可见性的布尔属性。
-
Default Value:
true
Methods
Duplicates this instance.
| Name | Type | Description |
|---|---|---|
result |
PolylineVolumeGraphics | 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 |
PolylineVolumeGraphics | The object to be merged into this object. |
Type Definitions
PolylineVolumeGraphics 构造函数的初始化选项
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | 布尔属性,指定体的可见性。 |
positions |
Property | Array.<Cartesian3> |
<optional> |
指定定义线带的 Cartesian3 位置数组的属性。 |
|
shape |
Property | Array.<Cartesian2> |
<optional> |
指定定义要拉伸的形状的 Cartesian2 位置数组的属性。 |
|
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> |
指定从相机多远距离显示此体的属性。 |
