Builder for a RasterModelHeightProvider
.
More...
#include <luciad/models/rasters/RasterModelHeightProvider.h>
◆ Builder() [1/2]
luciad::RasterModelHeightProvider::Builder::Builder |
( |
const Builder & |
other | ) |
|
◆ Builder() [2/2]
luciad::RasterModelHeightProvider::Builder::Builder |
( |
Builder && |
other | ) |
|
|
noexcept |
◆ ~Builder()
luciad::RasterModelHeightProvider::Builder::~Builder |
( |
| ) |
|
◆ build()
◆ interpolate()
Builder & luciad::RasterModelHeightProvider::Builder::interpolate |
( |
bool |
interpolate | ) |
|
Set whether (bilinear) interpolation should be when converting the source elevation data to a height value.
Using interpolation makes sure that neighbouring height values form a smoother curve. this is useful for visualization purposes, where a smooth result is often desired.
Disabling interpolation is useful when you want to get access to the original source elevation data.
This method is optional. Interpolation is disabled by default.
- Parameters
-
interpolate | linear interpolation is used if true, nearest neighbor if false. |
- Returns
- this builder
◆ operator=()
Builder & luciad::RasterModelHeightProvider::Builder::operator= |
( |
Builder |
other | ) |
|
|
noexcept |
◆ rasterModel()
Builder & luciad::RasterModelHeightProvider::Builder::rasterModel |
( |
std::shared_ptr< IRasterModel > |
model | ) |
|
Set the model from which the height provider needs to get elevation data.
This property is mandatory.
- Parameters
-
model | a raster model with elevation data |
- Returns
- this builder
- Exceptions
-
◆ reference()
Set the coordinate reference for the height provider.
This method is optional. If not called, the raster model's
reference is used.
- Parameters
-
reference | the coordinate reference to use |
- Returns
- this builder
- Exceptions
-