跳到主要内容

flywave-3dtile-datasource.itile

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

ITile class

Abstract base class for 3D Tiles

This class defines the common interface and properties for all 3D Tile types. It includes properties for tile hierarchy management, visibility tracking, and bounding volume visualization.

Signature:

export declare abstract class ITile 

Properties

Property

Modifiers

Type

Description

__active

boolean

Whether this tile is currently active

A tile is active if its content is loaded and ready to be made visible if needed.

__basePath

string

__depth

number

Hierarchy depth from the TileGroup

__depthFromRenderedParent

number

The depth of the tiles that increments only when a child with geometry content is encountered

__distanceFromCamera

number

Distance from this tile's bounds to the nearest active camera

This value is expected to be filled in during calculateError implementations.

__error

number

The screen space error for this tile

__inFrustum

boolean

Whether the tile was within the frustum on the last update run

__lastFrameVisited

number

Frame number when the tile was last visited

__used

boolean

Whether the tile was visited during the last update run

__visible

boolean

Whether this tile is currently visible

A tile is visible if: 1. Its content is loaded 2. It is within a camera frustum 3. It meets the SSE requirements

boundingVolume

abstract

readonly

BoundingVolume

Bounding volume for this tile

cached

TileCache

Cached data for the tile

children

abstract

readonly

ITile[]

Child tile references

content

abstract

readonly

Tiles3DTileContentJSON

Content metadata for this tile

extensions?

Record<string, any>

(Optional) Extensions used by this tile

geometricError

abstract

readonly

number

Geometric error for this tile

implicitTiling

abstract

readonly

ImplicitTilingData

Implicit tiling data for this tile

parent?

ITile

(Optional) Parent tile reference

refine

abstract

TILE_REFINEMENT

Refinement type for this tile

transform

abstract

readonly

number[]

Transform matrix for this tile

Methods

Method

Modifiers

Description

debugBoundingVolume(type, rootObject)

Debug bounding volume visualization