English中文

PointGraphics

new Cesium.PointGraphics(options)

描述位于包含位置的图形点 Describes a graphical point located at the position of the containing Entity.
名称 Name 类型 Type 说明 Description
options PointGraphics.ConstructorOptions 可选 optional 描述初始化选项的对象 Object describing initialization options

成员 Members

获取或设置指定的属性 Gets or sets the Property specifying the Color 的要点。 of the point.
默认值: Default Value: Color.WHITE
获取每当更改或修改属性或子属性时引发的事件。 Gets the event that is raised whenever a property or sub-property is changed or modified.

disableDepthTestDistance : Property|undefined

获取或设置禁用深度测试的距相机的距离,例如,防止对地形进行裁剪。当设置为零时,始终应用深度测试。当设置为 Number.POSITIVE_INFINITY 时,永远不会应用深度测试。 Gets or sets the distance from the camera at which to disable the depth test to, for example, prevent clipping against terrain. When set to zero, the depth test is always applied. When set to Number.POSITIVE_INFINITY, the depth test is never applied.

distanceDisplayCondition : Property|undefined

获取或设置 Gets or sets the DistanceDisplayCondition 属性指定该点将在距相机的距离处显示。 Property specifying at what distance from the camera that this point will be displayed.
获取或设置指定的属性 Gets or sets the Property specifying the HeightReference.
默认值: Default Value: HeightReference.NONE
获取或设置指定的属性 Gets or sets the Property specifying the Color 的轮廓。 of the outline.
默认值: Default Value: Color.BLACK
获取或设置指定轮廓宽度(以像素为单位)的数字属性。 Gets or sets the numeric Property specifying the the outline width in pixels.
默认值: Default Value: 0
获取或设置指定大小(以像素为单位)的数字属性。 Gets or sets the numeric Property specifying the size in pixels.
默认值: Default Value: 1
获取或设置 Gets or sets the NearFarScalar 用于根据距离缩放点的属性。如果未定义,则使用常量大小。 Property used to scale the point based on distance. If undefined, a constant size is used.
获取或设置指定点可见性的布尔属性。 Gets or sets the boolean Property specifying the visibility of the point.
默认值: Default Value: true
获取或设置指定的属性 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。在这些范围之外,点的半透明度仍然被限制在最近的范围内。 . Outside of these ranges the points's translucency remains clamped to the nearest bound.

方法 Methods

复制此实例。 Duplicates this instance.
名称 Name 类型 Type 说明 Description
result PointGraphics 可选 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 PointGraphics 要合并到此对象中的对象。 The object to be merged into this object.

类型定义 Type Definitions

Cesium.PointGraphics.ConstructorOptions

PointGraphics 构造函数的初始化选项 Initialization options for the PointGraphics constructor
属性: Properties:
名称 Name 类型 Type Attributes 默认值 Default 说明 Description
show Property | boolean <可选> &lt;optional>
true 指定点可见性的布尔属性。 A boolean Property specifying the visibility of the point.
pixelSize Property | number <可选> &lt;optional>
1 指定大小(以像素为单位)的数字属性。 A numeric Property specifying the size in pixels.
heightReference Property | HeightReference <可选> &lt;optional>
HeightReference.NONE 指定高度相对值的属性。 A Property specifying what the height is relative to.
color Property | Color <可选> &lt;optional>
Color.WHITE 指定的属性 A Property specifying the Color 的要点。 of the point.
outlineColor Property | Color <可选> &lt;optional>
Color.BLACK 指定的属性 A Property specifying the Color 的轮廓。 of the outline.
outlineWidth Property | number <可选> &lt;optional>
0 一个数字属性,指定轮廓宽度(以像素为单位)。 A numeric Property specifying the the outline width in pixels.
scaleByDistance Property | NearFarScalar <可选> &lt;optional>
A NearFarScalar 用于根据距离缩放点的属性。 Property used to scale the point based on distance.
translucencyByDistance Property | NearFarScalar <可选> &lt;optional>
A NearFarScalar 用于根据距相机的距离设置半透明度的属性。 Property used to set translucency based on distance from the camera.
distanceDisplayCondition Property | DistanceDisplayCondition <可选> &lt;optional>
一个属性,指定该点将在距相机的距离处显示。 A Property specifying at what distance from the camera that this point will be displayed.
disableDepthTestDistance Property | number <可选> &lt;optional>
指定禁用深度测试的距相机距离的属性。 A Property specifying the distance from the camera at which to disable the depth test to.
splitDirection Property | SplitDirection <可选> &lt;optional>
指定的属性 A Property specifying the SplitDirection 拆分应用到这一点。 split to apply to this point.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.