// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`. #include #include #include namespace mbgl { namespace style { FillLayer::FillLayer(const std::string& layerID, const std::string& sourceID) : Layer(Type::Fill, std::make_unique()) , impl(static_cast(baseImpl.get())) { impl->id = layerID; impl->source = sourceID; } FillLayer::FillLayer(const Impl& other) : Layer(Type::Fill, std::make_unique(other)) , impl(static_cast(baseImpl.get())) { } FillLayer::~FillLayer() = default; std::unique_ptr FillLayer::Impl::clone() const { return std::make_unique(*this); } std::unique_ptr FillLayer::Impl::cloneRef(const std::string& id_) const { auto result = std::make_unique(*this); result->impl->id = id_; result->impl->paint = FillPaintProperties(); return std::move(result); } void FillLayer::Impl::stringifyLayout(rapidjson::Writer&) const { } // Source const std::string& FillLayer::getSourceID() const { return impl->source; } void FillLayer::setSourceLayer(const std::string& sourceLayer) { impl->sourceLayer = sourceLayer; } const std::string& FillLayer::getSourceLayer() const { return impl->sourceLayer; } // Filter void FillLayer::setFilter(const Filter& filter) { impl->filter = filter; impl->observer->onLayerFilterChanged(*this); } const Filter& FillLayer::getFilter() const { return impl->filter; } // Layout properties // Paint properties PropertyValue FillLayer::getDefaultFillAntialias() { return { true }; } PropertyValue FillLayer::getFillAntialias(const optional& klass) const { return impl->paint.get(klass); } void FillLayer::setFillAntialias(PropertyValue value, const optional& klass) { if (value == getFillAntialias(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } DataDrivenPropertyValue FillLayer::getDefaultFillOpacity() { return { 1 }; } DataDrivenPropertyValue FillLayer::getFillOpacity(const optional& klass) const { return impl->paint.get(klass); } void FillLayer::setFillOpacity(DataDrivenPropertyValue value, const optional& klass) { if (value == getFillOpacity(klass)) return; impl->paint.set(value, klass); if (value.isDataDriven()) { impl->observer->onLayerDataDrivenPaintPropertyChanged(*this); } else { impl->observer->onLayerPaintPropertyChanged(*this); } } DataDrivenPropertyValue FillLayer::getDefaultFillColor() { return { Color::black() }; } DataDrivenPropertyValue FillLayer::getFillColor(const optional& klass) const { return impl->paint.get(klass); } void FillLayer::setFillColor(DataDrivenPropertyValue value, const optional& klass) { if (value == getFillColor(klass)) return; impl->paint.set(value, klass); if (value.isDataDriven()) { impl->observer->onLayerDataDrivenPaintPropertyChanged(*this); } else { impl->observer->onLayerPaintPropertyChanged(*this); } } DataDrivenPropertyValue FillLayer::getDefaultFillOutlineColor() { return { {} }; } DataDrivenPropertyValue FillLayer::getFillOutlineColor(const optional& klass) const { return impl->paint.get(klass); } void FillLayer::setFillOutlineColor(DataDrivenPropertyValue value, const optional& klass) { if (value == getFillOutlineColor(klass)) return; impl->paint.set(value, klass); if (value.isDataDriven()) { impl->observer->onLayerDataDrivenPaintPropertyChanged(*this); } else { impl->observer->onLayerPaintPropertyChanged(*this); } } PropertyValue> FillLayer::getDefaultFillTranslate() { return { {{ 0, 0 }} }; } PropertyValue> FillLayer::getFillTranslate(const optional& klass) const { return impl->paint.get(klass); } void FillLayer::setFillTranslate(PropertyValue> value, const optional& klass) { if (value == getFillTranslate(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } PropertyValue FillLayer::getDefaultFillTranslateAnchor() { return { TranslateAnchorType::Map }; } PropertyValue FillLayer::getFillTranslateAnchor(const optional& klass) const { return impl->paint.get(klass); } void FillLayer::setFillTranslateAnchor(PropertyValue value, const optional& klass) { if (value == getFillTranslateAnchor(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } PropertyValue FillLayer::getDefaultFillPattern() { return { "" }; } PropertyValue FillLayer::getFillPattern(const optional& klass) const { return impl->paint.get(klass); } void FillLayer::setFillPattern(PropertyValue value, const optional& klass) { if (value == getFillPattern(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } } // namespace style } // namespace mbgl