Class: AbstractAdapter

PSV.adapters.AbstractAdapter

new PSV.adapters.AbstractAdapter (psv) abstract

Base adapters class

Name Type Description
psv PSV.Viewer

Members

id string readonly

Unique identifier of the adapter

psv PSV.Viewer readonly

Reference to main controller

supportsTransition boolean readonly

Indicates if the adapter supports transitions between panoramas

Methods

createMesh (scale)external:THREE.Mesh abstract

Creates the cube mesh

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

destroy ()

Destroys the adapter

loadTexture (panorama, newPanoData)Promise.<PSV.TextureData> abstract

Loads the panorama texture(s)

Name Type Description
panorama *
newPanoData PSV.PanoData | PSV.PanoDataProvider optional
Returns:
Type Description
Promise.<PSV.TextureData>

setTexture (mesh, textureData) abstract

Applies the texture to the mesh

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

setTextureOpacity (mesh, opacity) abstract

Changes the opacity of the mesh

Name Type Description
mesh external:THREE.Mesh
opacity number