Options
All
  • Public
  • Public/Protected
  • All
Menu

A Tile3DHeader represents a tile as Tileset3D. When a tile is first created, its content is not loaded; the content is loaded on-demand when needed based on the view. Do not construct this directly, instead access tiles through {@link Tileset3D#tileVisible}.

Hierarchy

  • Tile3D

Index

Constructors

  • constructs

    Create a TileHeader instance

    Parameters

    • tileset: Tileset3D

      Tileset3D instance

    • header: TilesetJSONNode

      tile header - JSON loaded from a dataset

    • Optional parent: Tile3D

      parent TileHeader instance

    Returns Tile3D

Properties

boundingVolume: TileOrientedBoundingBox
cacheNode?: TileCacheNode<Tile3D>
centerZDepth: number
children: Tile3D[]
computedTransform: Matrix4
content?: TileContent
contentState: "UNLOADED" | "LOADING" | "PROCESSING" | "READY" | "FAILED"
depth: number
distanceToCamera: number
frameNumber: number
parent?: Tile3D
requestedFrameNumber: number
screenSpaceError: number
selectedFrameNumber: number
selectionDepth: number
shouldRefine: boolean
tileset: Tileset3D
touchedFrameNumber: number
transform: Matrix4
visibilityPlaneMask: number
visible: boolean

Accessors

  • get contentAvailable(): boolean
  • Determines if the tile has available content to render. true if the tile's content is ready or if it has expired content this renders while new content loads; otherwise,

    Returns boolean

  • get contentFailed(): boolean
  • Returns boolean

  • get contentReady(): boolean
  • Determines if the tile's content is ready. This is automatically true for tiles with empty content.

    Returns boolean

  • get contentUnloaded(): boolean
  • Determines if the tile's content has not be requested. true if tile's content has not be requested; otherwise, false.

    Returns boolean

  • get contentUrl(): string
  • Returns string

  • get hasChildren(): boolean
  • Returns true if tile has children

    Returns boolean

  • get hasEmptyContent(): boolean
  • Returns boolean

  • get hasRenderContent(): boolean
  • Returns true if tile is not an empty tile and not an external tileset

    Returns boolean

  • get hasUnloadedContent(): boolean
  • Returns true if tile has renderable content but it's unloaded

    Returns boolean

  • get id(): string
  • Returns string

  • get lodMetricType(): "geometricError"
  • Returns "geometricError"

  • get lodMetricValue(): number
  • Returns number

  • get refine(): "REPLACE" | "ADD"
  • Returns "REPLACE" | "ADD"

  • get selected(): boolean
  • Returns boolean

  • get siblingIndex(): number
  • Returns number

  • get type(): "EMPTY" | "SCENEGRAPH" | "MESH"
  • Returns "EMPTY" | "SCENEGRAPH" | "MESH"

Methods

  • getScreenSpaceError(frameState: TileFrameState, useParentLodMetric: boolean): number
  • Get the tile's screen space error.

    Parameters

    Returns number

  • loadContent(): Promise<boolean>
  • Requests the tile's content. The request may not be made if the Request Scheduler can't prioritize it.

    Returns Promise<boolean>

  • unloadContent(): void
  • Returns void

  • Update the tile's visibility

    Parameters

    Returns void