Skip to content

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.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIHttpDataSetLODsLoaderInitialValuesNo(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

ArgumentTypeRequiredDescription
initialValuesIHttpDataSetLODsLoaderInitialValuesNofor pre-setting some of its content

setBaseUrl ​

Url prefix prepended to every entry of files.

ArgumentTypeRequiredDescription
baseUrlStringYes

setFiles ​

ArgumentTypeRequiredDescription
filesArray[String]Yes

setMapper ​

Mapper the loaded sources are connected to.

ArgumentTypeRequiredDescription
mappervtkMapperYes

setSceneItem ​

ArgumentTypeRequiredDescription
sceneItemYes

setStepFinishedCallback ​

Called after each level of detail has been connected to the mapper.

ArgumentTypeRequiredDescription
stepFinishedCallbackYes

setWaitTimeBetweenDownloads ​

Delay in milliseconds between two level of detail downloads.

ArgumentTypeRequiredDescription
waitTimeBetweenDownloadsNumberYes

setWaitTimeToStart ​

Delay in milliseconds before the first level of detail is downloaded.

ArgumentTypeRequiredDescription
waitTimeToStartNumberYes

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.