Skip to content

KBE3D / KBCore / Cesium / PolylineGeometryUpdater

类: PolylineGeometryUpdater

A GeometryUpdater for polylines. Clients do not normally create this class directly, but instead rely on DataSourceDisplay.

参数

The entity containing the geometry to be visualized.

参数

The scene where visualization is taking place.

属性

id

readonly id: string

Gets the unique ID associated with this updater


entity

readonly entity: Entity

Gets the entity associated with this geometry.


fillEnabled

readonly fillEnabled: boolean

Gets a value indicating if the geometry has a fill component.


hasConstantFill

readonly hasConstantFill: boolean

Gets a value indicating if fill visibility varies with simulation time.


fillMaterialProperty

readonly fillMaterialProperty: MaterialProperty

Gets the material property used to fill the geometry.


depthFailMaterialProperty

readonly depthFailMaterialProperty: MaterialProperty

Gets the material property used to fill the geometry when it fails the depth test.


outlineEnabled

readonly outlineEnabled: boolean

Gets a value indicating if the geometry has an outline component.


hasConstantOutline

readonly hasConstantOutline: boolean

Gets a value indicating if outline visibility varies with simulation time.


outlineColorProperty

readonly outlineColorProperty: Property

Gets the Color property for the geometry outline.


shadowsProperty

readonly shadowsProperty: Property

Gets the property specifying whether the geometry casts or receives shadows from light sources.


distanceDisplayConditionProperty

readonly distanceDisplayConditionProperty: Property

Gets or sets the DistanceDisplayCondition Property specifying at what distance from the camera that this geometry will be displayed.


classificationTypeProperty

readonly classificationTypeProperty: Property

Gets or sets the ClassificationType Property specifying if this geometry will classify terrain, 3D Tiles, or both when on the ground.


isDynamic

readonly isDynamic: boolean

Gets a value indicating if the geometry is time-varying.


isClosed

readonly isClosed: boolean

Gets a value indicating if the geometry is closed. This property is only valid for static geometry.


geometryChanged

readonly geometryChanged: boolean

Gets an event that is raised whenever the public properties of this updater change.


arcType

readonly arcType: ArcType

Gets a value indicating if the path of the line.


clampToGround

readonly clampToGround: boolean

Gets a value indicating if the geometry is clamped to the ground. Returns false if polylines on terrain is not supported.


zIndex

readonly zIndex: number

Gets the zindex

方法

isOutlineVisible()

isOutlineVisible(time: JulianDate): boolean

Checks if the geometry is outlined at the provided time.

参数

time

JulianDate

The time for which to retrieve visibility.

返回

boolean

true if geometry is outlined at the provided time, false otherwise.


isFilled()

isFilled(time: JulianDate): boolean

Checks if the geometry is filled at the provided time.

参数

time

JulianDate

The time for which to retrieve visibility.

返回

boolean

true if geometry is filled at the provided time, false otherwise.


createFillGeometryInstance()

createFillGeometryInstance(time: JulianDate): GeometryInstance

Creates the geometry instance which represents the fill of the geometry.

参数

time

JulianDate

The time to use when retrieving initial attribute values.

返回

GeometryInstance

The geometry instance representing the filled portion of the geometry.


createOutlineGeometryInstance()

createOutlineGeometryInstance(time: JulianDate): GeometryInstance

Creates the geometry instance which represents the outline of the geometry.

参数

time

JulianDate

The time to use when retrieving initial attribute values.

返回

GeometryInstance

The geometry instance representing the outline portion of the geometry.


isDestroyed()

isDestroyed(): boolean

Returns true if this object was destroyed; otherwise, false.

返回

boolean

True if this object was destroyed; otherwise, false.


destroy()

destroy(): void

Destroys and resources used by the object. Once an object is destroyed, it should not be used.

返回

void

构造函数

构造函数

new PolylineGeometryUpdater(entity: Entity, scene: Scene): PolylineGeometryUpdater

参数

entity

Entity

scene

Scene

返回

PolylineGeometryUpdater

KBE3D @3.0.0 Copyright © 2024-present KBE3D