Describes a graphical point located at the position of the containing
Entity.
| Name | Type | Description |
|---|---|---|
options |
PointGraphics.ConstructorOptions | optional 描述初始化选项的对象 |
Members
color : Property|undefined
获取或设置指定点的
Color .
-
Default Value:
Color.WHITE
readonly definitionChanged : Event
当财产或次级财产被改变或修改时,获取该事件.
disableDepthTestDistance : Property|undefined
获取或设定相机的距离,以禁用深度测试,例如防止对地形进行剪切.
当设定为零时,总是应用深度测试. 当设定为 Number.POSITIVE_INFINITY 时,深度测试从未应用.
distanceDisplayCondition : Property|undefined
Gets or sets the
DistanceDisplayCondition Property specifying at what distance from the camera that this point will be displayed.
heightReference : Property|undefined
Gets or sets the Property specifying the
HeightReference.
-
Default Value:
HeightReference.NONE
outlineColor : Property|undefined
获取或设置指定大纲的
Color 的属性 .
-
Default Value:
Color.BLACK
outlineWidth : Property|undefined
获取或设置以像素表示大纲宽度的数值属性.
-
Default Value:
0
pixelSize : Property|undefined
获取或设置以像素表示大小的数值属性.
-
Default Value:
1
scaleByDistance : Property|undefined
获取或设置用于根据距离对点进行比例化的
NearFarScalar 属性.
如果未定义,则使用常数大小.
show : Property|undefined
获取或设置指定该点可见度的布尔属性 .
-
Default Value:
true
splitDirection : Property|undefined
Gets or sets the Property specifying the
SplitDirection of this point.
-
Default Value:
SplitDirection.NONE
translucencyByDistance : Property|undefined
Gets or sets
NearFarScalar Property specifying the translucency of the point based on the distance from the camera.
A point's translucency will interpolate between the NearFarScalar#nearValue and
NearFarScalar#farValue while the camera distance falls within the lower and upper bounds
of the specified NearFarScalar#near and NearFarScalar#far.
在这些范围以外,各点的透明度仍被限制在最接近的界限内.
Methods
clone(result) → PointGraphics
重复这个例子.
| Name | Type | Description |
|---|---|---|
result |
PointGraphics | optional 存储结果的对象 . |
Returns:
未提供修改的结果参数或新实例 .
指定该对象上每个未指定属性的值
- 提供源对象上的同一财产.
| Name | Type | Description |
|---|---|---|
source |
PointGraphics | 要合并成此天体的对象. |
Type Definitions
点图形构建器的初始化选项
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | 一个布尔属性指定了点的可见度. |
pixelSize |
Property | number |
<optional> |
1 | A numeric Property specifying the size in pixels. |
heightReference |
Property | HeightReference |
<optional> |
HeightReference.NONE | A Property specifying what the height is relative to. |
color |
Property | Color |
<optional> |
Color.WHITE | A Property specifying the Color of the point. |
outlineColor |
Property | Color |
<optional> |
Color.BLACK | A Property specifying the Color of the outline. |
outlineWidth |
Property | number |
<optional> |
0 | A numeric Property specifying the the outline width in pixels. |
scaleByDistance |
Property | NearFarScalar |
<optional> |
A NearFarScalar Property used to scale the point based on distance. |
|
translucencyByDistance |
Property | NearFarScalar |
<optional> |
A NearFarScalar Property used to set translucency based on distance from the camera. |
|
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<optional> |
指定此点将显示在相机的距离的属性 . | |
disableDepthTestDistance |
Property | number |
<optional> |
指定从相机到深度测试的距离的属性 . | |
splitDirection |
Property | SplitDirection |
<optional> |
A Property specifying the SplitDirection split to apply to this point. |