English中文

BufferPolyline

绑定到底层缓冲区数据的视图 View bound to the underlying buffer data of a BufferPolylineCollection.

BufferPolyline 实例是 BufferPolyline instances are flyweights:单个 BufferPolyline 实例可以临时绑定到 BufferPolylineCollection 中的任何概念“折线”,从而允许以最小的内存占用量迭代和更新非常大的集合。 : a single BufferPolyline instance can be temporarily bound to any conceptual "polyline" in a BufferPolylineCollection, allowing very large collections to be iterated and updated with a minimal memory footprint.

表示为两 (2) 个或更多位置。 Represented as two (2) or more positions.

new Cesium.BufferPolyline()

实验性 Experimental

此功能不是最终版本,可能会在没有 Cesium 标准弃用政策的情况下进行更改。 This feature is not final and is subject to change without Cesium's standard deprecation policy.

另见: See:

继承 Extends

成员 Members

与图元关联的特征 ID;不要求是唯一的。 Feature ID associated with the primitive; not required to be unique.
继承自: Inherited From:
是否显示原语。 Whether primitive is shown.
继承自: Inherited From:

readonly vertexCount : number

该折线中的位置(顶点)计数,VEC3 元素的数量。 Count of positions (vertices) in this polyline, number of VEC3 elements.

方法 Methods

static Cesium.BufferPolyline.clone(polyline, result)BufferPolyline

将数据从源折线复制到结果。如果结果折线不是新的(集合中的最后一条折线),则源折线和结果折线必须具有相同的顶点数。 Copies data from source polyline to result. If the result polyline is not new (the last polyline in the collection) then source and result polylines must have the same vertex counts.
名称 Name 类型 Type 说明 Description
polyline BufferPolyline
result BufferPolyline
返回: Returns:
名称 Name 类型 Type 说明 Description
result BufferPrimitiveMaterial
返回: Returns:
继承自: Inherited From:
返回此折线顶点位置的数组视图。如果给出“结果”参数,则顶点位置将写入该数组并返回。否则,在集合内存上返回一个 ArrayView - 对此数组的更改不会触发渲染更新,这需要“.setPositions()”。 Returns an array view of this polyline's vertex positions. If 'result' argument is given, vertex positions are written to that array and returned. Otherwise, returns an ArrayView on collection memory — changes to this array will not trigger render updates, which requires `.setPositions()`.
名称 Name 类型 Type 说明 Description
result TypedArray 可选 optional 返回 {TypedArray} return {TypedArray}
名称 Name 类型 Type 说明 Description
material BufferPrimitiveMaterial
继承自: Inherited From:
名称 Name 类型 Type 说明 Description
positions TypedArray
返回表示折线的 JSON 可序列化对象。这种编码不节省内存,通常应该用于调试和测试。 Returns a JSON-serializable object representing the polyline. This encoding is not memory-efficient, and should generally be used for debugging and testing.
返回: Returns:
JSON 可序列化对象。 JSON-serializable object.
继承自: Inherited From:
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.