![]() |
LuciadCPillar 2024.1.02
|
Builder for creating a luciad::RasterLayer for a luciad::IRasterModel. More...
#include <luciad/layers/rasters/RasterLayer.h>
Public Member Functions | |
Builder (Builder &&other) noexcept | |
Builder (const Builder &other) | |
~Builder () | |
std::shared_ptr< RasterLayer > | build () const |
Returns a new layer, based on the properties set on this builder. More... | |
Builder & | detailFactor (double factor) |
Sets the detail factor to use. More... | |
Builder & | fillStyle (FillStyle fillStyle) |
Sets the fill style used when the raster data extent is shown when zoomed out far. More... | |
Builder & | layerType (RasterLayerType layerType) |
Sets this raster layer type. More... | |
Builder & | lineStyle (ComplexStrokeLineStyle lineStyle) |
Sets the line style used when the raster data extent is shown when zoomed out far. More... | |
Builder & | lineStyle (LineStyle lineStyle) |
Sets the line style used when the raster data extent is shown when zoomed out far. More... | |
Builder & | model (std::shared_ptr< IRasterModel > model) |
Sets the raster model of the layer. More... | |
Builder & | operator= (Builder other) noexcept |
Builder & | rasterStyle (RasterStyle rasterStyle) |
Sets the style for this raster. More... | |
Builder & | title (std::string title) |
Sets the title to use for the layer. More... | |
Builder & | visible (bool visible) |
Sets whether the layer should be visible initially. More... | |
Builder for creating a luciad::RasterLayer for a luciad::IRasterModel.
By default, color data is visualized using the image's own color model.
The raster values are only painted if the pixel density of the raster is not too high. Otherwise the bounds of the raster is painted instead. The style for painting the bounds of the raster data can be customized. You can find an example within this related article on basic raster styling.
luciad::RasterLayer::Builder::Builder | ( | const Builder & | other | ) |
|
noexcept |
luciad::RasterLayer::Builder::~Builder | ( | ) |
std::shared_ptr< RasterLayer > luciad::RasterLayer::Builder::build | ( | ) | const |
Returns a new layer, based on the properties set on this builder.
luciad::InvalidArgumentException | when the raster tile set structure is not supported. |
luciad::LogicException | If not all mandatory parameters are set. |
Builder & luciad::RasterLayer::Builder::detailFactor | ( | double | factor | ) |
Sets the detail factor to use.
The detail factor modifies the quality/detail of the loaded data.
factor | The factor to apply. A factor 1 means no change (default value). A factor > 1 means more detail. A factor < 1 means less detail. |
InvalidArgumentException | if the factor is not strictly positive. |
Sets the fill style used when the raster data extent is shown when zoomed out far.
fillStyle | a fill style created with luciad::FillStyle::newBuilder . |
Builder & luciad::RasterLayer::Builder::layerType | ( | RasterLayerType | layerType | ) |
Sets this raster layer type.
This parameter is optional. If not set, the default is RasterLayerType::Background. Note that setting the layer type
has no effect on elevation raster layers.
layerType | the type of this raster layer. |
Builder & luciad::RasterLayer::Builder::lineStyle | ( | ComplexStrokeLineStyle | lineStyle | ) |
Sets the line style used when the raster data extent is shown when zoomed out far.
Only one line style can be set, if this function is called when a LineStyle
has already been set, it will be overwritten.
lineStyle | a complex stroke line style created with luciad::ComplexStrokeLineStyle::newBuilder . |
Sets the line style used when the raster data extent is shown when zoomed out far.
Only one line style can be set, if this function is called when a ComplexStrokeLineStyle
has already been set, it will be overwritten.
lineStyle | a line style created with luciad::LineStyle::newBuilder . |
Builder & luciad::RasterLayer::Builder::model | ( | std::shared_ptr< IRasterModel > | model | ) |
Sets the raster model of the layer.
Calling this function is mandatory.
model | the raster model of the layer. |
NullArgumentException | if model is nullptr . |
Builder & luciad::RasterLayer::Builder::rasterStyle | ( | RasterStyle | rasterStyle | ) |
Sets the style for this raster.
rasterStyle | the raster style to apply. |
Builder & luciad::RasterLayer::Builder::title | ( | std::string | title | ) |
Sets the title to use for the layer.
If not set, the title from the ModelMetadata is used.
title | the title for the layer. |
Builder & luciad::RasterLayer::Builder::visible | ( | bool | visible | ) |
Sets whether the layer should be visible initially.
Default is true
.
visible | the visibility. |