English中文

BufferPrimitiveMaterial

材料描述 Material description for a BufferPrimitive。抽象的。 . Abstract.

BufferPrimitiveMaterial 对象是 BufferPrimitiveMaterial objects are packable,调用时存储 , stored when calling BufferPrimitive#setMaterial。在再次调用 setMaterial() 之前,对材质的后续更改不会影响图元。 . Subsequent changes to the material will not affect the primitive until setMaterial() is called again.

abstract new Cesium.BufferPrimitiveMaterial(options)

名称 Name 类型 Type 说明 Description
options BufferPrimitiveMaterialOptions 可选 optional
实验性 Experimental

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

另见: See:

成员 Members

static Cesium.BufferPrimitiveMaterial.packedLength : number

填充颜色。 Color of fill.
轮廓颜色。 Color of outline.
轮廓宽度,0-255px。 Width of outline, 0-255px.

方法 Methods

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

将提供的材料存储到提供的数组中。 Stores the provided material into the provided array.
名称 Name 类型 Type 说明 Description
material BufferPrimitiveMaterial
view DataView
byteOffset number

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

从打包数组中检索材料。 Retrieves a material from a packed array.
名称 Name 类型 Type 说明 Description
view DataView 打包的数组。 The packed array.
byteOffset number 要解包的元素的起始索引。 Starting index of the element to be unpacked.
result BufferPrimitiveMaterial 结果被解包到的材料。 Material into which results are unpacked.
返回: Returns:
修改后的结果材料,结果已解压。 Modified result material, with results unpacked.
返回表示材质的 JSON 可序列化对象。这种编码不节省内存,通常应该用于调试和测试。 Returns a JSON-serializable object representing the material. This encoding is not memory-efficient, and should generally be used for debugging and testing.
返回: Returns:
JSON 可序列化对象。 JSON-serializable object.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.