Describes a box. The center position and orientation are determined by the containing
Entity.
| Name | Type | Description |
|---|---|---|
options |
BoxGraphics.ConstructorOptions | optional 描述初始化选项的对象 |
Members
readonly definitionChanged : Event
当财产或次级财产被改变或修改时,获取该事件.
dimensions : Property|undefined
Gets or sets
Cartesian3 Property property specifying the length, width, and height of the box.
distanceDisplayCondition : Property|undefined
Gets or sets the
DistanceDisplayCondition Property specifying at what distance from the camera that this box will be displayed.
fill : Property|undefined
获取或设置布尔属性,指定该框是否包含所提供的材料.
-
Default Value:
true
heightReference : Property|undefined
Gets or sets the Property specifying the
HeightReference.
-
Default Value:
HeightReference.NONE
material : MaterialProperty|undefined
获取或设置用于填充盒子的材料.
-
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
shadows : Property|undefined
获取或设置 enum 属性,指定是否为框
投影或接收来自光源的阴影.
-
Default Value:
ShadowMode.DISABLED
show : Property|undefined
获取或设置指定框可见度的布尔属性.
-
Default Value:
true
Methods
clone(result) → BoxGraphics
重复这个例子.
| Name | Type | Description |
|---|---|---|
result |
BoxGraphics | optional 存储结果的对象 . |
Returns:
未提供修改的结果参数或新实例 .
指定该对象上每个未指定属性的值
- 提供源对象上的同一财产.
| Name | Type | Description |
|---|---|---|
source |
BoxGraphics | 要合并成此天体的对象. |
Type Definitions
BoxGraphics 构建器的初始化选项
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | 一个布尔属性指定了盒子的可见度. |
dimensions |
Property | Cartesian3 |
<optional> |
A Cartesian3 Property specifying the length, width, and height of the box. |
|
heightReference |
Property | HeightReference |
<optional> |
HeightReference.NONE | A Property specifying what the height from the entity position is relative to. |
fill |
Property | boolean |
<optional> |
true | A boolean Property specifying whether the box is filled with the provided material. |
material |
MaterialProperty | Color |
<optional> |
Color.WHITE | A Property specifying the material used to fill the box. |
outline |
Property | boolean |
<optional> |
false | A boolean Property specifying whether the box 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 box casts or receives shadows from light sources. |
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<optional> |
指定显示此框的相机距离的属性 . |