new Cesium.PlaneGraphics(options)

Describes a plane. The center position and orientation are determined by the containing Entity.
Name Type Description
options PlaneGraphics.ConstructorOptions optional 描述初始化选项的对象
Demo:

Members

readonly definitionChanged : Event

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

dimensions : Property|undefined

Gets or sets the Cartesian2 Property specifying the width and height of the plane.

distanceDisplayCondition : Property|undefined

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

fill : Property|undefined

获取或设置布尔属性,指定平面是否充满了所提供的材料 .
Default Value: true

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

plane : Property|undefined

获取或设置指定平面正常和距离的 Plane 属性.

shadows : Property|undefined

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

show : Property|undefined

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

Methods

clone(result)PlaneGraphics

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

merge(source)

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

Type Definitions

Cesium.PlaneGraphics.ConstructorOptions

PlaneGraphics 构建器的初始化选项
Properties:
Name Type Attributes Default Description
show Property | boolean <optional>
true A boolean Property specifying the visibility of the plane.
plane Property | Plane <optional>
A Plane Property specifying the normal and distance for the plane.
dimensions Property | Cartesian2 <optional>
A Cartesian2 Property specifying the width and height of the plane.
fill Property | boolean <optional>
true A boolean Property specifying whether the plane is filled with the provided material.
material MaterialProperty | Color <optional>
Color.WHITE A Property specifying the material used to fill the plane.
outline Property | boolean <optional>
false A boolean Property specifying whether the plane 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 plane casts or receives shadows from light sources.
distanceDisplayCondition Property | DistanceDisplayCondition <optional>
指定此平面显示距离相机的属性 .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.