A layer for raster models.
More...
#include <luciad/layers/rasters/RasterLayer.h>
A layer for raster models.
Use luciad::RasterLayer::newBuilder to create a raster layer instance.
◆ ~RasterLayer()
luciad::RasterLayer::~RasterLayer |
( |
| ) |
|
|
override |
◆ addObserver()
void luciad::RasterLayer::addObserver |
( |
std::shared_ptr< ILayerObserver > |
layerObserver | ) |
|
|
overridevirtual |
Adds an observer that allows to receive change events from this layer.
Adding the same observer twice is forbidden, and will cause an exception to be thrown.
- Parameters
-
layerObserver | an observer. |
- Exceptions
-
Implements luciad::Layer.
◆ getLayerType()
Returns the type
of this raster layer.
- Returns
- this layer type.
- Since
- 2024.0
◆ getModel()
const std::shared_ptr< IRasterModel > & luciad::RasterLayer::getModel |
( |
| ) |
const |
Returns the layer's model, which provides the raster to be presented.
- Returns
- the layer's model, which provides the raster to be presented.
◆ getRasterStyle()
const RasterStyle & luciad::RasterLayer::getRasterStyle |
( |
| ) |
const |
Returns the raster style used for painting this layer.
- Returns
- the style of this layer.
- Since
- 2023.1
◆ getTitle()
const std::string & luciad::RasterLayer::getTitle |
( |
| ) |
const |
|
overridevirtual |
Returns the layer's title.
Should be suitable for presenting to the user.
- Returns
- the layer's title, should be suitable for presenting to the user.
Implements luciad::Layer.
◆ isVisible()
bool luciad::RasterLayer::isVisible |
( |
| ) |
const |
|
overridevirtual |
Returns whether this layer is visible.
- Returns
- whether this layer is visible.
Implements luciad::Layer.
◆ newBuilder()
static Builder luciad::RasterLayer::newBuilder |
( |
| ) |
|
|
static |
◆ propertyRasterStyle()
static const std::string & luciad::RasterLayer::propertyRasterStyle |
( |
| ) |
|
|
static |
Property name for the LayerEvent that is fired as a result of changing the layer's style.
- See also
- setRasterStyle
- Since
- 2023.1
◆ removeObserver()
void luciad::RasterLayer::removeObserver |
( |
const std::shared_ptr< ILayerObserver > & |
layerObserver | ) |
|
|
overridevirtual |
Removes the given observer.
If the given observer was never added, an exception is thrown.
- Parameters
-
layerObserver | an observer. |
- Exceptions
-
Implements luciad::Layer.
◆ setRasterStyle()
void luciad::RasterLayer::setRasterStyle |
( |
RasterStyle |
rasterStyle | ) |
|
Sets the raster style used for painting this layer.
If the new raster style is different from the old one, a LayerEvent
is delivered to the observers with the property name PropertyRasterStyle.
- Parameters
-
rasterStyle | the new raster style. |
- Since
- 2023.1
◆ setTitle()
void luciad::RasterLayer::setTitle |
( |
std::string |
title | ) |
|
|
overridevirtual |
Sets the layer's title.
Should be suitable for presenting to the user.
If the new title is indeed different from the old one, a LayerEvent is delivered to the observers with the property name PropertyTitle.
- Parameters
-
Implements luciad::Layer.
◆ setVisible()
void luciad::RasterLayer::setVisible |
( |
bool |
visible | ) |
|
|
overridevirtual |
Sets whether this layer is visible.
Changes this layer's visibility. If the new visibility is different from the old one, a LayerEvent is delivered to the observers with the property name PropertyVisible.
- Parameters
-
visible | the new visibility. |
Implements luciad::Layer.