Class: EquirectangularTilesAdapter

PSV.adapters.EquirectangularTilesAdapter

new PSV.adapters.EquirectangularTilesAdapter (psv, options)

Adapter for tiled panoramas

Name Type Description
psv PSV.Viewer
options PSV.adapters.EquirectangularTilesAdapter.Options

Extends

Members

id string readonly inherited overrides

Unique identifier of the adapter

OVERLAY_UNIFORMS inherited overrides

Reference to main controller

supportsDownload boolean readonly inherited overrides

Indicates if the adapter supports panorama download natively

supportsOverlay boolean inherited overrides

Indicated if the adapter can display an additional transparent image above the panorama

Methods

Creates the cube mesh

Name Type Default Description
scale number 1 optional
Returns:
Type Description
external:THREE.Mesh

destroy () inherited overrides

Destroys the adapter

disposeTexture (textureData) abstract inherited overrides

Clear a loaded texture from memory

Name Type Description
textureData PSV.TextureData

loadTexture (panorama)Promise.<PSV.TextureData> inherited overrides

Loads the panorama texture(s)

Name Type Description
panorama PSV.adapters.EquirectangularTilesAdapter.Panorama
Returns:
Type Description
Promise.<PSV.TextureData>

setOverlay (mesh, textureData, opacity) abstract inherited overrides

Applies the overlay to the mesh

Name Type Description
mesh external:THREE.Mesh
textureData PSV.TextureData
opacity number

setTexture (mesh, textureData, transition) inherited overrides

Applies the base texture and starts the loading of tiles

Name Type Default Description
mesh external:THREE.Mesh
textureData PSV.TextureData
transition boolean false optional

setTextureOpacity (mesh, opacity) inherited overrides

Changes the opacity of the mesh

Name Type Description
mesh external:THREE.Mesh
opacity number

supportsPreload (panorama)boolean inherited overrides

Indicates if the adapter supports preload of a panorama

Name Type Description
panorama *
Returns:
Type Description
boolean

supportsTransition (panorama)boolean inherited overrides

Indicates if the adapter supports transitions between panoramas

Name Type Description
panorama *
Returns:
Type Description
boolean

Type Definitions

PSV.adapters.EquirectangularTilesAdapter.Options Object

Properties:
Name Type Argument Default Description
resolution number <optional>
64

number of faces of the sphere geometry, higher values may decrease performances

showErrorTile boolean <optional>
true

shows a warning sign on tiles that cannot be loaded

baseBlur boolean <optional>
true

applies a blur to the low resolution panorama

PSV.adapters.EquirectangularTilesAdapter.Panorama Object

Configuration of a tiled panorama

Properties:
Name Type Argument Description
baseUrl string <optional>

low resolution panorama loaded before tiles

basePanoData PSV.PanoData | PSV.PanoDataProvider <optional>

panoData configuration associated to low resolution panorama loaded before tiles

width int

complete panorama width (height is always width/2)

cols int

number of vertical tiles

rows int

number of horizontal tiles

tileUrl PSV.adapters.EquirectangularTilesAdapter.TileUrl

function to build a tile url

PSV.adapters.EquirectangularTilesAdapter.TileUrl (col, row)string

Function called to build a tile url

Name Type Description
col int
row int
Returns:
Type Description
string