English中文

GeometryVisualizer

new Cesium.GeometryVisualizer(scene, entityCollection, primitives, groundPrimitives)

通用几何可视化工具,表示为 A general purpose visualizer for geometry represented by Primitive instances.
名称 Name 类型 Type 默认值 Default 说明 Description
scene Scene 将渲染图元的场景。 The scene the primitives will be rendered in.
entityCollection EntityCollection 要可视化的实体集合。 The entityCollection to visualize.
primitives PrimitiveCollection scene.primitives 可选 optional 用于添加与实体相关的原语的集合 A collection to add primitives related to the entities
groundPrimitives PrimitiveCollection scene.groundPrimitives 可选 optional 用于添加与实体相关的基本基元的集合 A collection to add ground primitives related to the entities

方法 Methods

删除并销毁该实例创建的所有基元。 Removes and destroys all primitives created by this instance.
如果该对象被销毁则返回 true;否则为假。 Returns true if this object was destroyed; otherwise, false.
返回: Returns:
如果该对象被销毁,则为 True;否则为假。 True if this object was destroyed; otherwise, false.
更新此可视化工具创建的所有基元,以匹配给定时间的对应实体。 Updates all of the primitives created by this visualizer to match their Entity counterpart at the given time.
名称 Name 类型 Type 说明 Description
time JulianDate 更新时间到。 The time to update to.
返回: Returns:
如果可视化工具成功更新到提供的时间,则为 true;如果可视化工具正在等待创建异步基元,则为 false。 True if the visualizer successfully updated to the provided time, false if the visualizer is waiting for asynchronous primitives to be created.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.