Appearance
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
readonlyid:string
Gets the unique ID associated with this updater
entity
readonlyentity:Entity
Gets the entity associated with this geometry.
fillEnabled
readonlyfillEnabled:boolean
Gets a value indicating if the geometry has a fill component.
hasConstantFill
readonlyhasConstantFill:boolean
Gets a value indicating if fill visibility varies with simulation time.
fillMaterialProperty
readonlyfillMaterialProperty:MaterialProperty
Gets the material property used to fill the geometry.
outlineEnabled
readonlyoutlineEnabled:boolean
Gets a value indicating if the geometry has an outline component.
hasConstantOutline
readonlyhasConstantOutline:boolean
Gets a value indicating if the geometry has an outline component.
outlineColorProperty
readonlyoutlineColorProperty:Property
Gets the Color property for the geometry outline.
outlineWidth
readonlyoutlineWidth:number
Gets the constant with of the geometry outline, in pixels. This value is only valid if isDynamic is false.
shadowsProperty
readonlyshadowsProperty:Property
Gets the property specifying whether the geometry casts or receives shadows from light sources.
distanceDisplayConditionProperty
readonlydistanceDisplayConditionProperty:Property
Gets or sets the DistanceDisplayCondition Property specifying at what distance from the camera that this geometry will be displayed.
classificationTypeProperty
readonlyclassificationTypeProperty:Property
Gets or sets the ClassificationType Property specifying if this geometry will classify terrain, 3D Tiles, or both when on the ground.
isDynamic
readonlyisDynamic:boolean
Gets a value indicating if the geometry is time-varying.
isClosed
readonlyisClosed:boolean
Gets a value indicating if the geometry is closed. This property is only valid for static geometry.
geometryChanged
readonlygeometryChanged: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
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
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
The time to use when retrieving initial attribute values.
返回
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
The time to use when retrieving initial attribute values.
返回
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
scene
geometryOptions
any
geometryPropertyName
string
observedPropertyNames
string[]
返回
GeometryUpdater
