// 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(makeMutable(LayerType::Fill, layerID, sourceID)) { } FillLayer::FillLayer(Immutable impl_) : Layer(std::move(impl_)) { } FillLayer::~FillLayer() = default; const FillLayer::Impl& FillLayer::impl() const { return static_cast(*baseImpl); } Mutable FillLayer::mutableImpl() const { return makeMutable(impl()); } std::unique_ptr FillLayer::cloneRef(const std::string& id_) const { auto impl_ = mutableImpl(); impl_->id = id_; impl_->paint = FillPaintProperties::Transitionable(); return std::make_unique(std::move(impl_)); } void FillLayer::Impl::stringifyLayout(rapidjson::Writer&) const { } // Source const std::string& FillLayer::getSourceID() const { return impl().source; } void FillLayer::setSourceLayer(const std::string& sourceLayer) { auto impl_ = mutableImpl(); impl_->sourceLayer = sourceLayer; baseImpl = std::move(impl_); } const std::string& FillLayer::getSourceLayer() const { return impl().sourceLayer; } // Filter void FillLayer::setFilter(const Filter& filter) { auto impl_ = mutableImpl(); impl_->filter = filter; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } const Filter& FillLayer::getFilter() const { return impl().filter; } // Visibility void FillLayer::setVisibility(VisibilityType value) { if (value == getVisibility()) return; auto impl_ = mutableImpl(); impl_->visibility = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } // Zoom range void FillLayer::setMinZoom(float minZoom) { auto impl_ = mutableImpl(); impl_->minZoom = minZoom; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void FillLayer::setMaxZoom(float maxZoom) { auto impl_ = mutableImpl(); impl_->maxZoom = maxZoom; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } // Layout properties // Paint properties PropertyValue FillLayer::getDefaultFillAntialias() { return { true }; } PropertyValue FillLayer::getFillAntialias() const { return impl().paint.template get().value; } void FillLayer::setFillAntialias(PropertyValue value) { if (value == getFillAntialias()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void FillLayer::setFillAntialiasTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions FillLayer::getFillAntialiasTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue FillLayer::getDefaultFillOpacity() { return { 1 }; } DataDrivenPropertyValue FillLayer::getFillOpacity() const { return impl().paint.template get().value; } void FillLayer::setFillOpacity(DataDrivenPropertyValue value) { if (value == getFillOpacity()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void FillLayer::setFillOpacityTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions FillLayer::getFillOpacityTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue FillLayer::getDefaultFillColor() { return { Color::black() }; } DataDrivenPropertyValue FillLayer::getFillColor() const { return impl().paint.template get().value; } void FillLayer::setFillColor(DataDrivenPropertyValue value) { if (value == getFillColor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void FillLayer::setFillColorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions FillLayer::getFillColorTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue FillLayer::getDefaultFillOutlineColor() { return { {} }; } DataDrivenPropertyValue FillLayer::getFillOutlineColor() const { return impl().paint.template get().value; } void FillLayer::setFillOutlineColor(DataDrivenPropertyValue value) { if (value == getFillOutlineColor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void FillLayer::setFillOutlineColorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions FillLayer::getFillOutlineColorTransition() const { return impl().paint.template get().options; } PropertyValue> FillLayer::getDefaultFillTranslate() { return { {{ 0, 0 }} }; } PropertyValue> FillLayer::getFillTranslate() const { return impl().paint.template get().value; } void FillLayer::setFillTranslate(PropertyValue> value) { if (value == getFillTranslate()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void FillLayer::setFillTranslateTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions FillLayer::getFillTranslateTransition() const { return impl().paint.template get().options; } PropertyValue FillLayer::getDefaultFillTranslateAnchor() { return { TranslateAnchorType::Map }; } PropertyValue FillLayer::getFillTranslateAnchor() const { return impl().paint.template get().value; } void FillLayer::setFillTranslateAnchor(PropertyValue value) { if (value == getFillTranslateAnchor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void FillLayer::setFillTranslateAnchorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions FillLayer::getFillTranslateAnchorTransition() const { return impl().paint.template get().options; } PropertyValue FillLayer::getDefaultFillPattern() { return { "" }; } PropertyValue FillLayer::getFillPattern() const { return impl().paint.template get().value; } void FillLayer::setFillPattern(PropertyValue value) { if (value == getFillPattern()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void FillLayer::setFillPatternTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions FillLayer::getFillPatternTransition() const { return impl().paint.template get().options; } } // namespace style } // namespace mbgl