English中文

Cesium3DTileContent

new Cesium.Cesium3DTileContent()

a 中图块的内容 The content of a tile in a 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

readonly batchTableByteLength : number

获取批处理表纹理以及几何字节长度或纹理字节长度中未考虑的任何二进制元数据属性使用的内存量 Gets the amount of memory used by the batch table textures and any binary metadata properties not accounted for in geometryByteLength or texturesByteLength

readonly featuresLength : number

获取图块中的要素数量。 Gets the number of features in the tile.

readonly geometryByteLength : number

获取图块的几何内存(以字节为单位)。 Gets the tile's geometry memory in bytes.

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

获取图块中的点数。 Gets the number of points in the tile.

仅适用于具有点云内容的图块。这不同于 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:
当图块的内容准备好渲染时返回 true;否则为假 Returns true when the tile's content is ready to render; otherwise false

readonly texturesByteLength : number

获取图块的纹理内存(以字节为单位)。 Gets the tile's texture memory in bytes.
获取包含此内容的图块。 Gets the tile containing this content.
获取此图块的图块集。 Gets the tileset for this tile.

readonly trianglesLength : number

获取图块中三角形的数量。 Gets the number of triangles in the tile.
获取图块内容的 url。 Gets the url of the tile's content.

方法 Methods

返回 Returns the Cesium3DTileFeature 给定特征的对象 object for the feature with the given batchId。该对象用于获取和修改要素的属性。 . This object is used to get and modify the feature's properties.

图块中的特征按以下顺序排序 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。 The batchId for the feature.
返回: Returns:
相应的 The corresponding Cesium3DTileFeature object.
抛出: Throws:
另见: See:

hasProperty(batchId, name)boolean

返回该功能是否具有此属性。 Returns whether the feature has this property.
名称 Name 类型 Type 说明 Description
batchId number 该功能的batchId。 The batchId for the feature.
name string 属性的名称区分大小写。 The case-sensitive name of the property.
返回: Returns:
true 如果该特征具有此属性;否则, if the feature has this property; otherwise, false.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.