new Cesium.GeometryUpdater(options)

用于更新几何实体的抽象类 .
Name Type Description
options object 具有下列属性的天体:
Name Type Description
entity Entity 包含可视化几何的实体.
scene Scene 出现视觉的场景.
geometryOptions object 几何学选项
geometryPropertyName string 几何属性名称
observedPropertyNames Array.<string> 这种几何学所关心的实体属性

Members

readonly classificationTypeProperty : Property

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

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

获取与此几何相关的实体 .

readonly fillEnabled : boolean

获得一个数值,表示几何具有填充组件.

readonly fillMaterialProperty : MaterialProperty

获得用于填充几何的物质属性.

readonly geometryChanged : boolean

获得一个在公共属性时被提起的事件 此更新更改.

readonly hasConstantFill : boolean

获得一个数值,表示是否填充能见度随模拟时间而变化.

readonly hasConstantOutline : boolean

获得一个数值,表示几何具有大纲组件.

readonly id : string

获取与此更新器相关的唯一 ID

readonly isClosed : boolean

获得一个表示几何关闭值. 此属性只对静态几何有效.

readonly isDynamic : boolean

获得一个数值,表示几何是时间变化的.

readonly outlineColorProperty : Property

Gets the Color property for the geometry outline.

readonly outlineEnabled : boolean

获得一个数值,表示几何具有大纲组件.

readonly outlineWidth : number

获得与几何轮廓的常数,以像素计. 此值只有在isDynamic为假时才有效 .

readonly shadowsProperty : Property

获取属性指定是否几何 投影或接收来自光源的阴影.

Methods

createFillGeometryInstance(time)GeometryInstance

创建代表几何填充的几何实例.
Name Type Description
time JulianDate 检索初始属性值时使用的时间 .
Returns:
代表几何中填充部分的几何实例.
Throws:
  • DeveloperError : This instance does not represent a filled geometry.

createOutlineGeometryInstance(time)GeometryInstance

创建几何实例,代表几何的轮廓.
Name Type Description
time JulianDate 检索初始属性值时使用的时间 .
Returns:
代表几何的大纲部分的几何实例.
Throws:
  • DeveloperError : This instance does not represent an outlined geometry.

destroy()

破坏对象所使用的资源. 一旦物体被销毁,就不应使用.
Throws:
  • DeveloperError : This object was destroyed, i.e., destroy() was called.

isDestroyed()boolean

如果此对象被销毁, 返回真实; 否则, 错误 .
Returns:
如果此天体被销毁, 则属真; 否则, 属假 .

isFilled(time)boolean

检查几何是否在指定时间填充 .
Name Type Description
time JulianDate 找回能见度的时间.
Returns:
如果在提供的时间填充几何,则不正确.

isOutlineVisible(time)boolean

检查是否在指定时间对几何进行了描述 .
Name Type Description
time JulianDate 找回能见度的时间.
Returns:
如果在提供的时间勾勒出几何,则真实性为真.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.