Introduction
vtkTextureLODsDownloader provides a way to download textures by bulk.
Methods
extend
Method used to decorate a given object (publicAPI+model) with vtkTextureLODsDownloader characteristics.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI |
Yes | object on which methods will be bounds (public) | |
model |
Yes | object on which data structure will be bounds (protected) | |
initialValues |
ITextureLODsDownloaderInitialValues | No | (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
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues |
ITextureLODsDownloaderInitialValues | No | for pre-setting some of its content |
setBaseUrl
Set the base of the url
| Argument | Type | Required | Description |
|---|---|---|---|
baseUrl |
String | Yes | The base of the url. |
setCrossOrigin
Set the crossorigin attribute
| Argument | Type | Required | Description |
|---|---|---|---|
crossOrigin |
CrossOrigin | Yes | The crossorigin value. |
setFiles
Set the list of files to download
| Argument | Type | Required | Description |
|---|---|---|---|
files |
Array[String] | Yes | The array of files urls. |
setMaxTextureLODSize
Set the max texture LOD size
| Argument | Type | Required | Description |
|---|---|---|---|
maxTextureLODSize |
Number | Yes | The max texture LOD size. |
setStepFinishedCallback
| Argument | Type | Required | Description |
|---|---|---|---|
stepFinishedCallback |
Yes |
setTexture
Set the vtkTexture object
| Argument | Type | Required | Description |
|---|---|---|---|
texture |
vtkTexture | Yes | The vtkTexture object. |
setWaitTimeBetweenDownloads
Set the delay between downloads
| Argument | Type | Required | Description |
|---|---|---|---|
waitTimeBetweenDownloads |
Number | Yes | The delay between downloads. |
setWaitTimeToStart
Set the delay before the start of download
| Argument | Type | Required | Description |
|---|---|---|---|
waitTimeToStart |
Number | Yes | The delay before the start of download. |
startDownloads
Start the download
Source
import { vtkObject } from '../../../interfaces'; |
import macro from 'vtk.js/Sources/macros'; |