Class: TextureLoader

PSV.services.TextureLoader

new PSV.services.TextureLoader (psv)

Texture loader

Name Type Description
psv PSV.Viewer

Extends

Members

config PSV.Options readonly inherited overrides

Configuration holder

prop Object readonly inherited overrides

Properties holder

Reference to main controller

Methods

abortLoading () package

Cancels current HTTP requests

destroy () inherited overrides

Destroys the service

loadFile (url, onProgress)Promise.<Blob>

Loads a Blob with FileLoader

Name Type Description
url string
onProgress function optional
Returns:
Type Description
Promise.<Blob>

loadImage (url, onProgress)Promise.<HTMLImageElement>

Loads an Image using FileLoader to have progress events

Name Type Description
url string
onProgress function optional
Returns:
Type Description
Promise.<HTMLImageElement>

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

Loads the panorama texture(s)

Name Type Description
panorama *
newPanoData PSV.PanoData | PSV.PanoDataProvider optional
Throws:

when the image cannot be loaded

Type
PSV.PSVError
Returns:
Type Description
Promise.<PSV.TextureData>

preloadPanorama (panorama)Promise

Preload a panorama file without displaying it

Name Type Description
panorama *
Returns:
Type Description
Promise