LuciadCPillar 2023.1.04
luciad::Ogc3DTilesModelDecoder::Options::Builder Class Referencefinal

Builder for the OGC 3D Tiles options. More...

#include <luciad/formats/ogc3dtiles/Ogc3DTilesModelDecoder.h>

Public Member Functions

 Builder (Builder &&other) noexcept
 
 Builder (const Builder &other)
 
 ~Builder ()
 
Ogc3DTilesModelDecoder::Options build ()
 Builds the options for the OGC 3D Tiles decoder. More...
 
BuilderdataLoader (std::shared_ptr< IDataLoader > dataLoader)
 Sets the data loader to be used for fetching the data. More...
 
BuilderhttpClient (std::shared_ptr< IHttpClient > httpClient)
 Sets the http client to be used for fetching the data. More...
 
Builderoperator= (Builder other) noexcept
 

Detailed Description

Builder for the OGC 3D Tiles options.

Since
2022.1

Constructor & Destructor Documentation

◆ Builder() [1/2]

luciad::Ogc3DTilesModelDecoder::Options::Builder::Builder ( const Builder other)

◆ Builder() [2/2]

luciad::Ogc3DTilesModelDecoder::Options::Builder::Builder ( Builder &&  other)
noexcept

◆ ~Builder()

luciad::Ogc3DTilesModelDecoder::Options::Builder::~Builder ( )

Member Function Documentation

◆ build()

Ogc3DTilesModelDecoder::Options luciad::Ogc3DTilesModelDecoder::Options::Builder::build ( )

Builds the options for the OGC 3D Tiles decoder.

Returns
the options for the OGC 3D Tiles decoder.
Exceptions
luciad::LogicExceptionIf not all mandatory parameters are set or if both a custom http client and a custom loader are set.

◆ dataLoader()

Builder & luciad::Ogc3DTilesModelDecoder::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
dataLoadercustom loader implementation to fetch the OGC 3D Tiles resources. When nullptr the decoder uses its own data loader.
Returns
this builder.

◆ httpClient()

Builder & luciad::Ogc3DTilesModelDecoder::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
httpClientHTTP client implementation to fetch the OGC 3D Tiles resources. When nullptr the decoder uses its own HTTP client.
Returns
this builder.
Since
2023.0

◆ operator=()

Builder & luciad::Ogc3DTilesModelDecoder::Options::Builder::operator= ( Builder  other)
noexcept