Skip to content

KBE3D / KBCore / Cesium / GeometryUpdater

类: GeometryUpdater

An abstract class for updating geometry entities.

参数

An object with the following properties:

参数

The entity containing the geometry to be visualized.

参数

The scene where visualization is taking place.

参数

Options for the geometry

参数

The geometry property name

参数

The entity properties this geometry cares about

属性

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.


outlineEnabled

readonly outlineEnabled: boolean

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


hasConstantOutline

readonly hasConstantOutline: boolean

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


outlineColorProperty

readonly outlineColorProperty: Property

Gets the Color property for the geometry outline.


outlineWidth

readonly outlineWidth: number

Gets the constant with of the geometry outline, in pixels. This value is only valid if isDynamic is false.


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.

方法

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 GeometryUpdater(options: { entity: Entity; scene: Scene; geometryOptions: any; geometryPropertyName: string; observedPropertyNames: string[]; }): GeometryUpdater

参数

options
entity

Entity

scene

Scene

geometryOptions

any

geometryPropertyName

string

observedPropertyNames

string[]

返回

GeometryUpdater

KBE3D @3.0.0 Copyright © 2024-present KBE3D