A
GeometryUpdater 对于折线。客户端通常不会直接创建此类,而是依赖 for polylines. Clients do not normally create this class directly, but instead rely on DataSourceDisplay.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
entity |
Entity | 包含要可视化的几何图形的实体。 The entity containing the geometry to be visualized. |
scene |
Scene | 可视化发生的场景。 The scene where visualization is taking place. |
成员 Members
readonly arcType : ArcType
获取一个值,该值指示线路的路径。 Gets a value indicating if the path of the line.
获取一个值,该值指示几何体是否夹紧到地面。如果不支持地形上的折线,则返回 false。 Gets a value indicating if the geometry is clamped to the ground. Returns false if polylines on terrain is not supported.
readonly classificationTypeProperty : Property
获取或设置 Gets or sets the
ClassificationType 属性指定该几何体在地面上是否会对地形、3D 切片或两者进行分类。 Property specifying if this geometry will classify terrain, 3D Tiles, or both when on the ground.
readonly depthFailMaterialProperty : MaterialProperty
获取在深度测试失败时用于填充几何体的材质属性。 Gets the material property used to fill the geometry when it fails the depth test.
readonly distanceDisplayConditionProperty : Property
获取或设置 Gets or sets the
DistanceDisplayCondition 属性指定该几何图形将在距相机的距离处显示。 Property specifying at what distance from the camera that this geometry will be displayed.
readonly entity : Entity
获取与该几何图形关联的实体。 Gets the entity associated with this geometry.
获取一个值,该值指示几何图形是否具有填充组件。 Gets a value indicating if the geometry has a fill component.
readonly fillMaterialProperty : MaterialProperty
获取用于填充几何体的材质属性。 Gets the material property used to fill the geometry.
获取每当此更新程序的公共属性发生更改时引发的事件。 Gets an event that is raised whenever the public properties of this updater change.
获取一个值,该值指示填充可见性是否随模拟时间变化。 Gets a value indicating if fill visibility varies with simulation time.
获取一个值,该值指示轮廓可见性是否随模拟时间变化。 Gets a value indicating if outline visibility varies with simulation time.
获取与此更新程序关联的唯一 ID Gets the unique ID associated with this updater
获取一个指示几何图形是否闭合的值。该属性仅对静态几何体有效。 Gets a value indicating if the geometry is closed. This property is only valid for static geometry.
获取一个值,该值指示几何图形是否随时间变化。 Gets a value indicating if the geometry is time-varying.
readonly outlineColorProperty : Property
获取一个值,该值指示几何图形是否具有轮廓组件。 Gets a value indicating if the geometry has an outline component.
readonly shadowsProperty : Property
获取指定几何体是否投射或接收来自光源的阴影的属性。 Gets the property specifying whether the geometry casts or receives shadows from light sources.
获取 zindex Gets the zindex
方法 Methods
createFillGeometryInstance(time) → GeometryInstance
创建表示几何体填充的几何体实例。 Creates the geometry instance which represents the fill of the geometry.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
time |
JulianDate | 检索初始属性值时使用的时间。 The time to use when retrieving initial attribute values. |
返回: Returns:
表示几何体填充部分的几何体实例。 The geometry instance representing the filled portion of the geometry.
抛出: Throws:
-
DeveloperError : This instance does not represent a filled geometry.
createOutlineGeometryInstance(time) → GeometryInstance
创建表示几何轮廓的几何实例。 Creates the geometry instance which represents the outline of the geometry.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
time |
JulianDate | 检索初始属性值时使用的时间。 The time to use when retrieving initial attribute values. |
返回: Returns:
表示几何体轮廓部分的几何体实例。 The geometry instance representing the outline portion of the geometry.
抛出: Throws:
-
DeveloperError : This instance does not represent an outlined geometry.
销毁对象并使用其资源。一旦对象被销毁,就不应再使用。 Destroys and resources used by the object. Once an object is destroyed, it should not be used.
抛出: Throws:
-
DeveloperError : This object was destroyed, i.e., destroy() was called.
如果该对象被销毁则返回 true;否则为假。 Returns true if this object was destroyed; otherwise, false.
返回: Returns:
如果该对象被销毁,则为 True;否则为假。 True if this object was destroyed; otherwise, false.
检查几何图形是否在指定时间被填充。 Checks if the geometry is filled at the provided time.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
time |
JulianDate | 检索可见性的时间。 The time for which to retrieve visibility. |
返回: Returns:
如果在指定时间填充几何图形,则为 true,否则为 false。 true if geometry is filled at the provided time, false otherwise.
检查几何图形是否在指定时间勾勒出轮廓。 Checks if the geometry is outlined at the provided time.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
time |
JulianDate | 检索可见性的时间。 The time for which to retrieve visibility. |
返回: Returns:
如果在指定时间勾勒出几何图形,则为 true,否则为 false。 true if geometry is outlined at the provided time, false otherwise.
