Skip to content

TextureLODsDownloader ​

Introduction ​

vtkTextureLODsDownloader provides a way to download textures by bulk.

Methods ​

extend ​

Method used to decorate a given object (publicAPI+model) with vtkTextureLODsDownloader characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesITextureLODsDownloaderInitialValuesNo(default: {})

getBaseUrl ​

Get the base of the url

getCrossOrigin ​

Get the crossorigin attribute

getFiles ​

Get the list of files to download

getMaxTextureLODSize ​

Get the max texture LOD size

getStepFinishedCallback ​

getTexture ​

Get the vtkTexture object

getWaitTimeBetweenDownloads ​

Get the delay between downloads

getWaitTimeToStart ​

Get the delay before the start of download.

newInstance ​

Method used to create a new instance of vtkTextureLODsDownloader

ArgumentTypeRequiredDescription
initialValuesITextureLODsDownloaderInitialValuesNofor pre-setting some of its content

setBaseUrl ​

Set the base of the url

ArgumentTypeRequiredDescription
baseUrlStringYesThe base of the url.

setCrossOrigin ​

Set the crossorigin attribute

ArgumentTypeRequiredDescription
crossOriginCrossOriginYesThe crossorigin value.

setFiles ​

Set the list of files to download

ArgumentTypeRequiredDescription
filesArray[String]YesThe array of files urls.

setMaxTextureLODSize ​

Set the max texture LOD size

ArgumentTypeRequiredDescription
maxTextureLODSizeNumberYesThe max texture LOD size.

setStepFinishedCallback ​

ArgumentTypeRequiredDescription
stepFinishedCallbackYes

setTexture ​

Set the vtkTexture object

ArgumentTypeRequiredDescription
texturevtkTextureYesThe vtkTexture object.

setWaitTimeBetweenDownloads ​

Set the delay between downloads

ArgumentTypeRequiredDescription
waitTimeBetweenDownloadsNumberYesThe delay between downloads.

setWaitTimeToStart ​

Set the delay before the start of download

ArgumentTypeRequiredDescription
waitTimeToStartNumberYesThe delay before the start of download.

startDownloads ​

Start the download