描述位于包含
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
获取或设置
DistanceDisplayCondition
属性,用于指定在距摄像机多远处显示此点。
heightReference : Property|undefined
获取或设置指定
HeightReference
的属性。
-
Default Value:
HeightReference.NONE
outlineColor : Property|undefined
获取或设置指定轮廓的
Color
的属性。
-
Default Value:
Color.BLACK
outlineWidth : Property|undefined
获取或设置numeric 属性,用于指定轮廓宽度(以像素为单位)。
-
Default Value:
0
pixelSize : Property|undefined
获取或设置numeric 属性,以像素为单位指定大小。
-
Default Value:
1
scaleByDistance : Property|undefined
获取或设置
NearFarScalar
用于根据距离缩放点的属性。
如果未定义,则使用常量大小。
show : Property|undefined
获取或设置boolean 指定点可见性的属性。
-
Default Value:
true
splitDirection : Property|undefined
获取或设置指定此点的
SplitDirection
的属性。
-
Default Value:
SplitDirection.NONE
translucencyByDistance : Property|undefined
获取或设置
NearFarScalar
属性,根据与摄像机的距离指定点的半透明性。
点的半透明性将在 NearFarScalar#nearValue
和
NearFarScalar#farValue
当摄像机距离落在下限和上限内时
指定的 NearFarScalar#near
和 NearFarScalar#far
的 。
在这些范围之外,点的半透明性仍然被限制在最近的边界上。
Methods
clone(result) → PointGraphics
复制实例。
Name | Type | Description |
---|---|---|
result |
PointGraphics | optional 要在其上存储结果的对象。 |
Returns:
修改后的结果参数 或者一个新实例(如果未提供)。
将此对象上的每个未分配的属性分配给值
的 API 值。
Name | Type | Description |
---|---|---|
source |
PointGraphics | 要合并到此对象中的对象。 |
Type Definitions
PointGraphics 构造函数的初始化选项
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | 一个布尔属性,指定点的可见性。 |
pixelSize |
Property | number |
<optional> |
1 | 一个数字属性,用于指定以像素为单位的大小。 |
heightReference |
Property | HeightReference |
<optional> |
HeightReference.NONE | 指定高度相对于什么的属性。 |
color |
Property | Color |
<optional> |
Color.WHITE | 指定点的 Color 的属性。 |
outlineColor |
Property | Color |
<optional> |
Color.BLACK | 指定轮廓的 Color 的属性。 |
outlineWidth |
Property | number |
<optional> |
0 | 一个数字属性,指定轮廓宽度(以像素为单位)。 |
scaleByDistance |
Property | NearFarScalar |
<optional> |
一个 NearFarScalar 用于根据距离缩放点的属性。 |
|
translucencyByDistance |
Property | NearFarScalar |
<optional> |
一个 NearFarScalar 属性,用于根据与摄像机的距离设置半透明。 |
|
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<optional> |
一个属性,指定在距摄像头多远处显示此点。 | |
disableDepthTestDistance |
Property | number |
<optional> |
一个属性,用于指定要禁用深度测试的摄像头的距离。 | |
splitDirection |
Property | SplitDirection |
<optional> |
一个属性,指定要应用于此点的 SplitDirection 分割。 |