diff options
Diffstat (limited to 'src/mbgl/style/layers/fill_layer.cpp')
-rw-r--r-- | src/mbgl/style/layers/fill_layer.cpp | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/src/mbgl/style/layers/fill_layer.cpp b/src/mbgl/style/layers/fill_layer.cpp new file mode 100644 index 0000000000..1deaabb5ef --- /dev/null +++ b/src/mbgl/style/layers/fill_layer.cpp @@ -0,0 +1,113 @@ +// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`. + +#include <mbgl/style/layers/fill_layer.hpp> +#include <mbgl/style/layers/fill_layer_impl.hpp> + +namespace mbgl { +namespace style { + +FillLayer::FillLayer(const std::string& layerID) + : Layer(Type::Fill, std::make_unique<Impl>()) + , impl(static_cast<Impl*>(baseImpl.get())) { + impl->id = layerID; +} + +FillLayer::FillLayer(const Impl& other) + : Layer(Type::Fill, std::make_unique<Impl>(other)) + , impl(static_cast<Impl*>(baseImpl.get())) { +} + +FillLayer::~FillLayer() = default; + +std::unique_ptr<Layer> FillLayer::Impl::clone() const { + return std::make_unique<FillLayer>(*this); +} + +// Source + +void FillLayer::setSource(const std::string& sourceID, const std::string& sourceLayer) { + impl->source = sourceID; + impl->sourceLayer = sourceLayer; +} + +const std::string& FillLayer::getSourceID() const { + return impl->source; +} + +const std::string& FillLayer::getSourceLayer() const { + return impl->sourceLayer; +} + +// Filter + +void FillLayer::setFilter(const Filter& filter) { + impl->filter = filter; +} + +const Filter& FillLayer::getFilter() const { + return impl->filter; +} + +// Layout properties + + +// Paint properties + +PropertyValue<bool> FillLayer::getFillAntialias() const { + return impl->paint.fillAntialias.get(); +} + +void FillLayer::setFillAntialias(PropertyValue<bool> value) { + impl->paint.fillAntialias.set(value); +} + +PropertyValue<float> FillLayer::getFillOpacity() const { + return impl->paint.fillOpacity.get(); +} + +void FillLayer::setFillOpacity(PropertyValue<float> value) { + impl->paint.fillOpacity.set(value); +} + +PropertyValue<Color> FillLayer::getFillColor() const { + return impl->paint.fillColor.get(); +} + +void FillLayer::setFillColor(PropertyValue<Color> value) { + impl->paint.fillColor.set(value); +} + +PropertyValue<Color> FillLayer::getFillOutlineColor() const { + return impl->paint.fillOutlineColor.get(); +} + +void FillLayer::setFillOutlineColor(PropertyValue<Color> value) { + impl->paint.fillOutlineColor.set(value); +} + +PropertyValue<std::array<float, 2>> FillLayer::getFillTranslate() const { + return impl->paint.fillTranslate.get(); +} + +void FillLayer::setFillTranslate(PropertyValue<std::array<float, 2>> value) { + impl->paint.fillTranslate.set(value); +} + +PropertyValue<TranslateAnchorType> FillLayer::getFillTranslateAnchor() const { + return impl->paint.fillTranslateAnchor.get(); +} + +void FillLayer::setFillTranslateAnchor(PropertyValue<TranslateAnchorType> value) { + impl->paint.fillTranslateAnchor.set(value); +} + +PropertyValue<std::string> FillLayer::getFillPattern() const { + return impl->paint.fillPattern.get(); +} + +void FillLayer::setFillPattern(PropertyValue<std::string> value) { + impl->paint.fillPattern.set(value); +} + +} // namespace style +} // namespace mbgl |