BufferPrimitiveMaterial

BufferPrimitive 的材质描述。抽象类。

BufferPrimitiveMaterial 对象是可打包的,在调用 BufferPrimitive#setMaterial 时存储。对材质的后续更改不会影响图元, 除非再次调用 setMaterial()。

abstract new Cesium.BufferPrimitiveMaterial(options)

Name Type Description
options BufferPrimitiveMaterialOptions optional
Experimental

此功能尚未最终确定,可能会在不遵循 Cesium 标准弃用政策的情况下进行更改。

See:

Members

static Cesium.BufferPrimitiveMaterial.packedLength : number

填充颜色。
轮廓颜色。
轮廓宽度,0-255px。

Methods

static Cesium.BufferPrimitiveMaterial.pack(material, view, byteOffset)

将提供的材质存储到提供的数组中。
Name Type Description
material BufferPrimitiveMaterial
view DataView
byteOffset number

static Cesium.BufferPrimitiveMaterial.unpack(view, byteOffset, result)BufferPrimitiveMaterial

从打包数组中检索材质。
Name Type Description
view DataView 打包数组。
byteOffset number 要解包的元素的起始索引。
result BufferPrimitiveMaterial 解包结果存储到的材质。
Returns:
修改后的结果材质,包含解包的结果。
返回表示该材质的可 JSON 序列化的对象。此编码 不具有内存效率,通常应用于调试和测试。
Returns:
可 JSON 序列化的对象。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.