MapLibre Native Core
|
The LayerFactory abstract class. More...
#include <layer_factory.hpp>
Public Member Functions | |
virtual | ~LayerFactory ()=default |
virtual const style::LayerTypeInfo * | getTypeInfo () const noexcept=0 |
Returns the layer type data. More... | |
virtual std::unique_ptr< style::Layer > | createLayer (const std::string &id, const style::conversion::Convertible &value) noexcept=0 |
Returns a new Layer instance on success call; returns nullptr otherwise. More... | |
virtual std::unique_ptr< RenderLayer > | createRenderLayer (Immutable< style::Layer::Impl >) noexcept=0 |
Returns a new RenderLayer instance. More... | |
virtual std::unique_ptr< Bucket > | createBucket (const BucketParameters &, const std::vector< Immutable< style::LayerProperties >> &) noexcept |
Returns a new Bucket instance on success call; returns nullptr otherwise. More... | |
virtual std::unique_ptr< Layout > | createLayout (const LayoutParameters &, std::unique_ptr< GeometryTileLayer >, const std::vector< Immutable< style::LayerProperties >> &) noexcept |
Returns a new Layout instance on success call; returns nullptr otherwise. More... | |
Protected Member Functions | |
std::optional< std::string > | getSource (const style::conversion::Convertible &value) const noexcept |
The LayerFactory abstract class.
This class is responsible for creation of the layer objects that belong to a concrete layer type.
Definition at line 24 of file layer_factory.hpp.
|
virtualdefault |
|
virtualnoexcept |
Returns a new Bucket instance on success call; returns nullptr
otherwise.
Reimplemented in mbgl::HeatmapLayerFactory.
|
pure virtualnoexcept |
Returns a new Layer instance on success call; returns nullptr
otherwise.
Implemented in mbgl::SymbolLayerFactory, mbgl::RasterLayerFactory, mbgl::LocationIndicatorLayerFactory, mbgl::LineLayerFactory, mbgl::HillshadeLayerFactory, mbgl::HeatmapLayerFactory, mbgl::FillLayerFactory, mbgl::FillExtrusionLayerFactory, mbgl::CircleLayerFactory, mbgl::BackgroundLayerFactory, and mbgl::CustomLayerFactory.
|
virtualnoexcept |
Returns a new Layout instance on success call; returns nullptr
otherwise.
Reimplemented in mbgl::SymbolLayerFactory, mbgl::LineLayerFactory, mbgl::CircleLayerFactory, mbgl::FillLayerFactory, and mbgl::FillExtrusionLayerFactory.
|
pure virtualnoexcept |
Returns a new RenderLayer instance.
Implemented in mbgl::SymbolLayerFactory, mbgl::RasterLayerFactory, mbgl::LocationIndicatorLayerFactory, mbgl::LineLayerFactory, mbgl::HillshadeLayerFactory, mbgl::HeatmapLayerFactory, mbgl::FillLayerFactory, mbgl::FillExtrusionLayerFactory, mbgl::CircleLayerFactory, mbgl::BackgroundLayerFactory, and mbgl::CustomLayerFactory.
|
protectednoexcept |
|
pure virtualnoexcept |
Returns the layer type data.
Implemented in mbgl::SymbolLayerFactory, mbgl::RasterLayerFactory, mbgl::LocationIndicatorLayerFactory, mbgl::LineLayerFactory, mbgl::HillshadeLayerFactory, mbgl::HeatmapLayerFactory, mbgl::FillLayerFactory, mbgl::FillExtrusionLayerFactory, mbgl::CircleLayerFactory, mbgl::BackgroundLayerFactory, and mbgl::CustomLayerFactory.