Builder for the HSPC options.
More...
#include <luciad/formats/hspc/HspcModelDecoder.h>
Builder for the HSPC options.
- Since
- 2022.1
◆ Builder() [1/2]
luciad::HspcModelDecoder::Options::Builder::Builder |
( |
const Builder & |
other | ) |
|
◆ Builder() [2/2]
luciad::HspcModelDecoder::Options::Builder::Builder |
( |
Builder && |
other | ) |
|
|
noexcept |
◆ ~Builder()
luciad::HspcModelDecoder::Options::Builder::~Builder |
( |
| ) |
|
◆ build()
Builds the options for the HSPC decoder.
- Returns
- the options for the HSPC decoder.
- Exceptions
-
luciad::LogicException | If not all mandatory parameters are set or if both a custom http client and a custom loader are set. |
◆ dataLoader()
Builder & luciad::HspcModelDecoder::Options::Builder::dataLoader |
( |
std::shared_ptr< IDataLoader > |
dataLoader | ) |
|
Sets the data loader to be used for fetching the data.
Calling this function is optional.
See related article for an example on how to customize 3D tiles data loading.
- Parameters
-
dataLoader | custom loader implementation to fetch the HSPC resources. When nullptr the decoder uses its own data loader. |
- Returns
- this builder.
◆ httpClient()
Builder & luciad::HspcModelDecoder::Options::Builder::httpClient |
( |
std::shared_ptr< IHttpClient > |
httpClient | ) |
|
Sets the http client to be used for fetching the data.
Calling this function is optional.
See related article for an example on how to customize HTTP requests when loading data.
- Parameters
-
httpClient | HTTP client implementation to fetch the HSPC resources. When nullptr the decoder uses its own HTTP client. |
- Returns
- this builder.
- Since
- 2023.0
◆ operator=()
Builder & luciad::HspcModelDecoder::Options::Builder::operator= |
( |
Builder |
other | ) |
|
|
noexcept |