Describes a polyline defined as the path made by an
Entity as it moves over time.
| Name | Type | Description |
|---|---|---|
options |
PathGraphics.ConstructorOptions | optional 描述初始化选项的对象 |
Members
readonly definitionChanged : Event
当财产或次级财产被改变或修改时,获取该事件.
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
获取或设置指定要显示对象前面秒数的属性.
material : MaterialProperty
获取或设置属性,指定用于绘制路径的材料.
-
Default Value:
Color.WHITE
resolution : Property|undefined
获取或设置属性,指定在取样位置时要步骤的最大秒数.
-
Default Value:
60
show : Property|undefined
获取或设置指定路径可见度的布尔属性 .
-
Default Value:
true
trailTime : Property|undefined
获取或设置指定要显示对象后面秒数的属性.
width : Property|undefined
获取或设置以像素表示宽度的数值属性.
-
Default Value:
1.0
Methods
clone(result) → PathGraphics
重复这个例子.
| Name | Type | Description |
|---|---|---|
result |
PathGraphics | optional 存储结果的对象 . |
Returns:
未提供修改的结果参数或新实例 .
指定该对象上每个未指定属性的值
- 提供源对象上的同一财产.
| Name | Type | Description |
|---|---|---|
source |
PathGraphics | 要合并成此天体的对象. |
Type Definitions
路径图形构建器的初始化选项
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | 指定路径可见度的布尔属性. |
leadTime |
Property | number |
<optional> |
指定要显示的对象前面秒数的属性 . | |
trailTime |
Property | number |
<optional> |
指定对象后面秒数的属性 . | |
width |
Property | number |
<optional> |
1.0 | 一个数字属性,以像素表示宽度. |
resolution |
Property | number |
<optional> |
60 | 一个数字属性,指定在取样位置时可踩到的最大秒数. |
material |
MaterialProperty | Color |
<optional> |
Color.WHITE | A Property specifying the material used to draw the path. |
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<optional> |
指定此路径与相机的距离的属性 . |