new Cesium3DTileContent()
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 batchTableByteLengthnumber
-
Gets the amount of memory used by the batch table textures and any binary metadata properties not accounted for in geometryByteLength or texturesByteLength
-
readonly featuresLengthnumber
-
Gets the number of features in the tile.
-
readonly geometryByteLengthnumber
-
Gets the tile's geometry memory in bytes.
-
readonly innerContentsArray
-
Gets the array of
Cesium3DTileContentobjects 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. -
readonly pointsLengthnumber
-
Gets the number of points in the tile.
Only applicable for tiles with Point Cloud content. This is different than
Cesium3DTileContent#featuresLengthwhich equals the number of groups of points as distinguished by theBATCH_IDfeature table semantic. -
readonly readyboolean
-
Returns true when the tile's content is ready to render; otherwise false
-
readonly texturesByteLengthnumber
-
Gets the tile's texture memory in bytes.
-
readonly tileCesium3DTile
-
Gets the tile containing this content.
-
readonly tilesetCesium3DTileset
-
Gets the tileset for this tile.
-
readonly trianglesLengthnumber
-
Gets the number of triangles in the tile.
-
readonly urlstring
-
Gets the url of the tile's content.
Methods
-
getFeature(batchId){Cesium3DTileFeature}
-
Returns the
Cesium3DTileFeatureobject for the feature with the givenbatchId. 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 batchIdnumber The batchId for the feature.
Throws:
-
batchId must be between zero and
Cesium3DTileContent#featuresLength- 1. - Type
- DeveloperError
Returns:
Type Description Cesium3DTileFeature The corresponding Cesium3DTileFeatureobject. -
-
hasProperty(batchId, name){boolean}
-
Returns whether the feature has this property.
Name Type Description batchIdnumber The batchId for the feature.
namestring The case-sensitive name of the property.
Returns:
Type Description boolean trueif the feature has this property; otherwise,false.