HttpDataSetLODsLoader
Introduction
vtkHttpDataSetLODsLoader progressively downloads a list of increasingly detailed versions of the same dataset and swaps each one into a mapper as it becomes available, so a coarse representation is displayed while the finer ones are still being fetched.
Methods
extend
Method used to decorate a given object (publicAPI+model) with vtkHttpDataSetLODsLoader 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 | IHttpDataSetLODsLoaderInitialValues | No | (default: {}) |
getBaseUrl
getCurrentSource
Reader of the most recently created source.
getFiles
File names of the levels of detail, from coarsest to finest.
getMapper
getSceneItem
Optional scene item whose default settings are applied to every newly loaded source, and whose source is updated as levels of detail arrive.
getStepFinishedCallback
getWaitTimeBetweenDownloads
getWaitTimeToStart
newInstance
Method used to create a new instance of vtkHttpDataSetLODsLoader
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IHttpDataSetLODsLoaderInitialValues | No | for pre-setting some of its content |
setBaseUrl
Url prefix prepended to every entry of files.
| Argument | Type | Required | Description |
|---|---|---|---|
baseUrl | String | Yes |
setFiles
| Argument | Type | Required | Description |
|---|---|---|---|
files | Array[String] | Yes |
setMapper
Mapper the loaded sources are connected to.
| Argument | Type | Required | Description |
|---|---|---|---|
mapper | vtkMapper | Yes |
setSceneItem
| Argument | Type | Required | Description |
|---|---|---|---|
sceneItem | Yes |
setStepFinishedCallback
Called after each level of detail has been connected to the mapper.
| Argument | Type | Required | Description |
|---|---|---|---|
stepFinishedCallback | Yes |
setWaitTimeBetweenDownloads
Delay in milliseconds between two level of detail downloads.
| Argument | Type | Required | Description |
|---|---|---|---|
waitTimeBetweenDownloads | Number | Yes |
setWaitTimeToStart
Delay in milliseconds before the first level of detail is downloaded.
| Argument | Type | Required | Description |
|---|---|---|---|
waitTimeToStart | Number | Yes |
startDownloads
Download every file of files in order, connecting each newly loaded source to mapper as it arrives, so the rendered level of detail improves over time.