new Cesium.Cesium3DTileContent()

The content of a tile in a Cesium3DTileset.

此接口的衍生类提供了对瓷砖中单个特性的存取. 通过 Cesium3DTile#content 访问衍生对象.

该类型描述了一个接口,并不打算直接被即时化.

Members

readonly batchTableByteLength : number

获得批量表格纹理和任何二进制所用的内存量 元数据属性在几何ByteLength或 texturesByteLength

readonly featuresLength : number

获得瓷砖中特性的数量.

readonly geometryByteLength : number

在字节中获取瓷砖的几何记忆.

readonly innerContents : Array

Gets the array of Cesium3DTileContent objects for contents that contain other contents, such as composite tiles. The inner contents may in turn have inner contents, such as a composite tile that contains a composite tile.
See:

readonly pointsLength : number

获得瓷砖中的点数.

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 ready : boolean

当瓷砖的内容准备渲染时返回真实; 否则是虚假的

readonly texturesByteLength : number

获得字节中的瓷砖纹理记忆.

readonly tile : Cesium3DTile

获得包含此内容的瓷砖 .

readonly tileset : Cesium3DTileset

得到这瓷砖的瓦片.

readonly trianglesLength : number

获得砖块中三角形的数量.

readonly url : string

获得瓷砖内容的url.

Methods

getFeature(batchId)Cesium3DTileFeature

返回特性的 {NT}\\ 0\\\ 对象 给 NT 0 batchId NT 1 。 此对象用于获取和修改 feature's properties.

砖块中的特性由 NT 0 batchId NT 1 所订购,这是用来从批量表格中检索他们的元数据的索引.

Name Type Description
batchId number 特辑的批号.
Returns:
对应的 Cesium3DTileFeature 对象.
Throws:
See:

hasProperty(batchId, name)boolean

返回该特性是否拥有此属性 .
Name Type Description
batchId number 特辑的批号.
name string 财产的大小写名称.
Returns:
如果该特性有此属性, 则使用 NT 0 true NT 1 ; 否则, NT 2 false NT 3 .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.