Skip to main content

flywave-3dtile-datasource.tilesrenderer

Home > @flywave/flywave-3dtile-datasource > TilesRenderer

TilesRenderer class

3D Tiles renderer that integrates with flywave.gl's MapView system

This class extends the base Three.js TilesRenderer to provide integration with flywave.gl's MapView, including: - MapView camera integration - Scene management - Raycasting for picking - Tile lifecycle management - Geographic extent calculation - Debug visualization support

Signature:

export declare class TilesRenderer extends ThreeTilesRenderer implements ITilesRenderer 

Extends: ThreeTilesRenderer

Implements: ITilesRenderer

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Creates a new TilesRenderer instance

Properties

Property

Modifiers

Type

Description

addObserveTileChange

(observeTileChange: Observe3DTileChange) => void

Adds an observer for tile change events

dracoPath

protected

readonly

string

object

Object3D

raycast

(raycaster: Raycaster, intersects: TileIntersection[]) => void

Performs raycasting for picking operations

removeObserveTileChange

(observeTileChange: Observe3DTileChange) => void

Removes an observer for tile change events

Methods

Method

Modifiers

Description

connectMapView(mapView)

Connects the renderer to a MapView

disconnectMapView()

Disconnects the renderer from the MapView

dispose()

Disposes of the renderer and cleans up resources

doUpdate()

protected

Performs the actual update of the 3D tiles This method is called internally by the update() method

getMaxGeometryHeight()

Gets the maximum geometry height of the tileset

getMinGeometryHeight()

Gets the minimum geometry height of the tileset

getProjection()

protected

Gets the projection used by the connected MapView

getRootTile()

Gets the root tile of the tileset

getRootTileBoundingVolumeRegion()

Gets the bounding volume region of the root tile

parseTile(metadata, tile, extension, uri, abortSignal)

Parses a tile during loading

preprocessNode(tile, tileSetDir, parentTile)

Pre-processes a tile node during loading

setTileActive(tile, active)

Sets the active state of a tile

setVisible(visible)

Sets the visibility of the 3D tiles

update()

Updates the 3D tiles renderer This method should be called every frame to update the tiles