BufferPolyline
Cesium v1.147 · 中文

视图绑定到 BufferPolylineCollection 的底层缓冲区数据上。

BufferPolyline 实例是 flyweights: 单个 BufferPolyline 实例可以临时绑定到任何概念上, 使 BufferPolylineCollection 中的“折线”能够被迭代并更新,且内存占用最小。

由两个或更多位置表示。 该特性尚未定稿,可能会根据 Cesium 的标准弃用政策进行变更。

new Cesium.BufferPolyline()

Experimental

This 位置数组中的偏移量指向折线的第一个顶点,即 VEC3 元素的数量。

See:

Extends

Members

与原始类型相关的功能ID;不要求唯一。
Inherited From:

pickObject : object|undefined

用户定义的拾取对象,如有。当原始对象被渲染后, 拾取对象便无法再被更改。
Inherited From:
表示原始类型是否显示的布尔(0或1)标志。
Inherited From:

readonly vertexCount : number

否则,返回集合内存上的 ArrayView —— 对该数组的更改不会触发渲染更新,这需要调用 `.setPositions()` 方法。

Methods

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

必须具有相同的顶点数量。 集合位置数组中的偏移量指向折线的第一个顶点,即 VEC3 元素的数量。 此折线中位置(顶点)的数量,即 VEC3 元素的数量。
Name Type Description
polyline BufferPolyline
result BufferPolyline
Returns:
Name Type Description
result BufferPrimitiveMaterial
Returns:
Inherited From:
返回 {TypedArray}。 返回表示折线的 JSON 可序列化对象。这种编码方式 不节省内存,通常适用于调试和测试。 对象。
Name Type Description
result TypedArray optional return {TypedArray}
Name Type Description
material BufferPrimitiveMaterial
Inherited From:
Name Type Description
positions TypedArray
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-serializable object.
Inherited From:
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.