TileTree Class


A hierarchical level-of-detail tree of 3d Tiles to be rendered in a Viewport. Tile trees originate from a variety of sources:


Name Description
constructor(params: TileTreeParams): TileTree Protected Constructor  
_selectTiles(args: TileDrawArgs): Tile[] ProtectedAbstract Implement this method to select tiles of appropriate resolution.  
countTiles(): number Returns the number of Tiles currently in memory belonging to this tree.  
dispose(): void Dispose of this tree and any resources owned by it.  
draw(args: TileDrawArgs): void Abstract Produce graphics of appropriate resolution to be drawn in a Viewport.  
prune(): void Abstract Discard tiles and/or tile contents, presumably based on a least-recently-used and/or least-likely-to-be-needed criterion.  
selectTiles(args: TileDrawArgs): Tile[] Selects tiles of appropriate resolution for some purpose like drawing to the screen, producing a shadow map, etc.  


Name Type Description
contentRange undefined | ElementAlignedBox3d Optional tight bounding box around the entire contents of all of this tree's tiles.  
expirationTime BeDuration The length of time after which tiles belonging to this tree are considered elegible for disposal if they are no longer in use.  
id string Uniquely identifies this tree among all other tile trees associated with the iModel.  
iModel IModelConnection    
iModelTransform Transform Transform from this tile tree's coordinate space to the iModel's coordinate space.  
is2d Accessor ReadOnly boolean True if this tile tree contains 2d graphics.  
is3d Accessor ReadOnly boolean True if this tile tree contains 3d graphics.  
isContentUnbounded Accessor ReadOnly boolean True if this tile tree has no bounds - e.g., a tile tree representing a globe is unbounded.  
isDisposed Accessor ReadOnly boolean True if TileTree.dispose has been called on this tile tree.  
maxDepth Accessor ReadOnly number | undefined Returns the maximum depth of this tree, if any.  
range Accessor ReadOnly ElementAlignedBox3d The volume of space occupied by this tile tree.  
rootTile Accessor ReadOnly Tile The lowest-resolution tile in this tree.  
viewFlagOverrides Accessor ReadOnly ViewFlagOverrides The overrides that should be applied to the view's ViewFlags when this tile tree is drawn.  

Defined in

Last Updated: 02 April, 2021