Skip to content

KBE3D / KBCore / Cesium / Cesium3DTileContent

类: Cesium3DTileContent

The content of a tile in a Cesium3DTileset. <p> Derived classes of this interface provide access to individual features in the tile. Access derived objects through Cesium3DTile#content. </p> <p> This type describes an interface and is not intended to be instantiated directly. </p>

属性

featuresLength

readonly featuresLength: number

Gets the number of features in the tile.


pointsLength

readonly pointsLength: number

Gets the number of points in the tile. <p> 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 <code>BATCH_ID</code> feature table semantic. </p>


trianglesLength

readonly trianglesLength: number

Gets the number of triangles in the tile.


geometryByteLength

readonly geometryByteLength: number

Gets the tile's geometry memory in bytes.


texturesByteLength

readonly texturesByteLength: number

Gets the tile's texture memory in bytes.


batchTableByteLength

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


innerContents

readonly innerContents: any[]

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.


ready

readonly ready: boolean

Returns true when the tile's content is ready to render; otherwise false


tileset

readonly tileset: Cesium3DTileset

Gets the tileset for this tile.


tile

readonly tile: Cesium3DTile

Gets the tile containing this content.


url

readonly url: string

Gets the url of the tile's content.

方法

hasProperty()

hasProperty(batchId: number, name: string): boolean

Returns whether the feature has this property.

参数

batchId

number

The batchId for the feature.

name

string

The case-sensitive name of the property.

返回

boolean

true if the feature has this property; otherwise, false.


getFeature()

getFeature(batchId: number): Cesium3DTileFeature

Returns the Cesium3DTileFeature object for the feature with the given <code>batchId</code>. This object is used to get and modify the feature's properties. <p> Features in a tile are ordered by <code>batchId</code>, an index used to retrieve their metadata from the batch table. </p>

参数

batchId

number

The batchId for the feature.

返回

Cesium3DTileFeature

The corresponding Cesium3DTileFeature object.

构造函数

构造函数

new Cesium3DTileContent(): Cesium3DTileContent

返回

Cesium3DTileContent

KBE3D @3.0.0 Copyright © 2024-present KBE3D