Skip to main content
Version: Next

TileService

Index

Properties

remainingTiles

remainingTiles: number

readonlytileStream

tileStream: Subject<TileStreamDetails>

workersReady

workersReady: boolean[]

Accessors

zfpReady

  • get zfpReady(): boolean
  • Returns boolean

staticInstance

Methods

clearCompressedCache

  • clearCompressedCache(fileId: number): void
  • Parameters

    • fileId: number

    Returns void

clearGPUCache

  • clearGPUCache(fileId: number): void
  • Parameters

    • fileId: number

    Returns void

clearRequestQueue

  • clearRequestQueue(fileId?: number): void
  • Parameters

    • optionalfileId: number

    Returns void

publicdecompressPreviewRasterData

  • decompressPreviewRasterData(previewData: PvPreviewData): void
  • Parameters

    • previewData: PvPreviewData

    Returns void

getTile

  • getTile(tileCoordinateEncoded: number, fileId: number, channel: number, stokes: number, peek?: boolean): any
  • Parameters

    • tileCoordinateEncoded: number
    • fileId: number
    • channel: number
    • stokes: number
    • peek: boolean = false

    Returns any

getTileTextureParameters

  • getTileTextureParameters(tile: RasterTile): { offset: { x: number; y: number }; texture: WebGLTexture }
  • Parameters

    Returns { offset: { x: number; y: number }; texture: WebGLTexture }

    • offset: { x: number; y: number }
      • x: number
      • y: number
    • texture: WebGLTexture

handleFileClosed

  • handleFileClosed(fileId: number): void
  • Parameters

    • fileId: number

    Returns void

requestTiles

  • requestTiles(tiles: TileCoordinate[], fileId: number, channel: number, stokes: number, focusPoint: Point2D, compressionQuality: number, channelsChanged?: boolean): void
  • Parameters

    • tiles: TileCoordinate[]
    • fileId: number
    • channel: number
    • stokes: number
    • focusPoint: Point2D
    • compressionQuality: number
    • channelsChanged: boolean = false

    Returns void

publicsetAnimationEnabled

  • setAnimationEnabled(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

publicsetCache

  • setCache(lruCapacityGPU: number, lruCapacitySystem: number): void
  • Parameters

    • lruCapacityGPU: number
    • lruCapacitySystem: number

    Returns void

setWorkerReady

  • setWorkerReady(index: number): void
  • Parameters

    • index: number

    Returns void

updateHiddenFileChannels

  • updateHiddenFileChannels(fileId: number, channel: number, stokes: number): void
  • Parameters

    • fileId: number
    • channel: number
    • stokes: number

    Returns void

updateRemainingTileCount

  • updateRemainingTileCount(): void
  • Returns void

uploadTileToGPU