描述一条折线,定义为由 Describes a polyline defined as the path made by an
Entity 随着时间的推移而移动。 as it moves over time.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
options |
PathGraphics.ConstructorOptions | 可选 optional 描述初始化选项的对象 Object describing initialization options |
成员 Members
readonly definitionChanged : Event
获取每当更改或修改属性或子属性时引发的事件。 Gets the event that is raised whenever a property or sub-property is changed or modified.
distanceDisplayCondition : Property|undefined
获取或设置 Gets or sets the
DistanceDisplayCondition 属性指定该路径将在距相机的距离处显示。 Property specifying at what distance from the camera that this path will be displayed.
leadTime : Property|undefined
获取或设置指定要显示的对象前面的秒数的属性。 Gets or sets the Property specifying the number of seconds in front of the object to show.
获取或设置指定用于绘制路径的材质的属性。 Gets or sets the Property specifying the material used to draw the path.
-
默认值: Default Value:
Color.WHITE
relativeTo : Property|undefined
获取或设置在其中可视化路径的框架。使用另一个实体的 id 来可视化相对于该实体的路径,或使用字符串值“FIXED”或“INERTIAL”来可视化这些参考系中的路径。 Gets or sets the frame in which to visualize the path. Use another entity's id to visualize the path relative to that entity, or use the string values "FIXED" or "INERTIAL" to visualize the path in those reference frames.
实验性 Experimental
此功能不是最终版本,可能会在没有 Cesium 标准弃用政策的情况下进行更改。 This feature is not final and is subject to change without Cesium's standard deprecation policy.
resolution : Property|undefined
获取或设置指定对位置进行采样时步进的最大秒数的属性。 Gets or sets the Property specifying the maximum number of seconds to step when sampling the position.
-
默认值: Default Value:
60
show : Property|undefined
获取或设置指定路径可见性的布尔属性。 Gets or sets the boolean Property specifying the visibility of the path.
-
默认值: Default Value:
true
trailTime : Property|undefined
获取或设置指定要显示的对象后面的秒数的属性。 Gets or sets the Property specifying the number of seconds behind the object to show.
width : Property|undefined
获取或设置指定宽度(以像素为单位)的数字属性。 Gets or sets the numeric Property specifying the width in pixels.
-
默认值: Default Value:
1.0
方法 Methods
clone(result) → PathGraphics
复制此实例。 Duplicates this instance.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
result |
PathGraphics | 可选 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 |
PathGraphics | 要合并到此对象中的对象。 The object to be merged into this object. |
类型定义 Type Definitions
PathGraphics 构造函数的初始化选项 Initialization options for the PathGraphics constructor
属性: Properties:
| 名称 Name | 类型 Type | Attributes | 默认值 Default | 说明 Description |
|---|---|---|---|---|
show |
Property | boolean |
<可选> <optional> |
true | 指定路径可见性的布尔属性。 A boolean Property specifying the visibility of the path. |
leadTime |
Property | number |
<可选> <optional> |
一个属性,指定要显示的对象前面的秒数。 A Property specifying the number of seconds in front the object to show. | |
trailTime |
Property | number |
<可选> <optional> |
一个属性,指定要显示的对象落后的秒数。 A Property specifying the number of seconds behind of the object to show. | |
width |
Property | number |
<可选> <optional> |
1.0 | 指定宽度(以像素为单位)的数字属性。 A numeric Property specifying the width in pixels. |
resolution |
Property | number |
<可选> <optional> |
60 | 一个数字属性,指定对位置进行采样时步进的最大秒数。 A numeric Property specifying the maximum number of seconds to step when sampling the position. |
material |
MaterialProperty | Color |
<可选> <optional> |
Color.WHITE | 指定用于绘制路径的材质的属性。 A Property specifying the material used to draw the path. |
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<可选> <optional> |
一个属性,指定该路径将在距相机的距离处显示。 A Property specifying at what distance from the camera that this path will be displayed. | |
relativeTo |
Property | string |
<可选> <optional> |
指定在其中可视化路径的框架的属性。使用另一个实体的 id 来可视化相对于该实体的路径,或使用字符串值“FIXED”或“INERTIAL”来可视化这些参考系中的路径。 A Property specifying the frame in which to visualize the path. Use another entity's id to visualize the path relative to that entity, or use the string values "FIXED" or "INERTIAL" to visualize the path in those reference frames. |
