Cesium3DTileset
中一块瓦片的内容。
Derived classes of this interface provide access to individual features in the tile.
Access derived objects through Cesium3DTile#content
.
This type describes an interface and is not intended to be instantiated directly.
Members
获取批处理表纹理使用的内存量(以字节为单位)。
获取磁贴中的功能数。
获取平铺的几何内存(以字节为单位)。
获取表示
包含复合材料的内部瓷砖,也可以是复合材料。
获取平铺中的点数。
Only applicable for tiles with Point Cloud content. This is different than Cesium3DTileContent#featuresLength
which
equals the number of groups of points as distinguished by the BATCH_ID
feature table semantic.
See:
readonly readyPromise : Promise.<Cesium3DTileContent>
获取将在磁贴内容准备呈现时解决的承诺。
获取平铺的纹理内存(以字节为单位)。
readonly tile : Cesium3DTile
获取包含此内容的磁贴。
readonly tileset : Cesium3DTileset
获取此平铺的平铺集。
获取平铺中的三角形数。
获取磁贴内容的url。
Methods
getFeature(batchId) → Cesium3DTileFeature
返回功能的
Cesium3DTileFeature
对象
给出batchId
。此对象用于获取和修改
功能的属性。
Features in a tile are ordered by batchId
, an index used to retrieve their metadata from the batch table.
Name | Type | Description |
---|---|---|
batchId |
Number | 功能的batchId。 |
Returns:
对应的
Cesium3DTileFeature
对象。Throws:
-
DeveloperError :batchId必须介于0和
Cesium3DTileContent#featuresLength
-1之间。
确定平铺的批处理表是否具有属性。如果是,则
磁贴将具有属性。
Name | Type | Description |
---|---|---|
batchId |
Number | 功能的batchId。 |
name |
String | 属性的区分大小写的名称。 |
Returns:
如果该属性存在,则为
true
;否则为false
。