// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`. #include #include namespace mbgl { namespace style { LineLayer::LineLayer(const std::string& layerID, const std::string& sourceID) : Layer(Type::Line, std::make_unique()) , impl(static_cast(baseImpl.get())) { impl->id = layerID; impl->source = sourceID; } LineLayer::LineLayer(const Impl& other) : Layer(Type::Line, std::make_unique(other)) , impl(static_cast(baseImpl.get())) { } LineLayer::~LineLayer() = default; std::unique_ptr LineLayer::Impl::clone() const { return std::make_unique(*this); } std::unique_ptr LineLayer::Impl::cloneRef(const std::string& id_) const { auto result = std::make_unique(*this); result->impl->id = id_; result->impl->ref = this->id; result->impl->paint = LinePaintProperties(); return std::move(result); } // Source const std::string& LineLayer::getSourceID() const { return impl->source; } void LineLayer::setSourceLayer(const std::string& sourceLayer) { impl->sourceLayer = sourceLayer; } const std::string& LineLayer::getSourceLayer() const { return impl->sourceLayer; } // Filter void LineLayer::setFilter(const Filter& filter) { impl->filter = filter; impl->observer->onLayerFilterChanged(*this); } const Filter& LineLayer::getFilter() const { return impl->filter; } // Layout properties PropertyValue LineLayer::getDefaultLineCap() { return LineCap::defaultValue(); } PropertyValue LineLayer::getLineCap() const { return impl->layout.unevaluated.get(); } void LineLayer::setLineCap(PropertyValue value) { if (value == getLineCap()) return; impl->layout.unevaluated.get() = value; impl->observer->onLayerLayoutPropertyChanged(*this, "line-cap"); } PropertyValue LineLayer::getDefaultLineJoin() { return LineJoin::defaultValue(); } PropertyValue LineLayer::getLineJoin() const { return impl->layout.unevaluated.get(); } void LineLayer::setLineJoin(PropertyValue value) { if (value == getLineJoin()) return; impl->layout.unevaluated.get() = value; impl->observer->onLayerLayoutPropertyChanged(*this, "line-join"); } PropertyValue LineLayer::getDefaultLineMiterLimit() { return LineMiterLimit::defaultValue(); } PropertyValue LineLayer::getLineMiterLimit() const { return impl->layout.unevaluated.get(); } void LineLayer::setLineMiterLimit(PropertyValue value) { if (value == getLineMiterLimit()) return; impl->layout.unevaluated.get() = value; impl->observer->onLayerLayoutPropertyChanged(*this, "line-miter-limit"); } PropertyValue LineLayer::getDefaultLineRoundLimit() { return LineRoundLimit::defaultValue(); } PropertyValue LineLayer::getLineRoundLimit() const { return impl->layout.unevaluated.get(); } void LineLayer::setLineRoundLimit(PropertyValue value) { if (value == getLineRoundLimit()) return; impl->layout.unevaluated.get() = value; impl->observer->onLayerLayoutPropertyChanged(*this, "line-round-limit"); } // Paint properties PropertyValue LineLayer::getDefaultLineOpacity() { return { 1 }; } PropertyValue LineLayer::getLineOpacity(const optional& klass) const { return impl->paint.get(klass); } void LineLayer::setLineOpacity(PropertyValue value, const optional& klass) { if (value == getLineOpacity(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } PropertyValue LineLayer::getDefaultLineColor() { return { Color::black() }; } PropertyValue LineLayer::getLineColor(const optional& klass) const { return impl->paint.get(klass); } void LineLayer::setLineColor(PropertyValue value, const optional& klass) { if (value == getLineColor(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } PropertyValue> LineLayer::getDefaultLineTranslate() { return { {{ 0, 0 }} }; } PropertyValue> LineLayer::getLineTranslate(const optional& klass) const { return impl->paint.get(klass); } void LineLayer::setLineTranslate(PropertyValue> value, const optional& klass) { if (value == getLineTranslate(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } PropertyValue LineLayer::getDefaultLineTranslateAnchor() { return { TranslateAnchorType::Map }; } PropertyValue LineLayer::getLineTranslateAnchor(const optional& klass) const { return impl->paint.get(klass); } void LineLayer::setLineTranslateAnchor(PropertyValue value, const optional& klass) { if (value == getLineTranslateAnchor(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } PropertyValue LineLayer::getDefaultLineWidth() { return { 1 }; } PropertyValue LineLayer::getLineWidth(const optional& klass) const { return impl->paint.get(klass); } void LineLayer::setLineWidth(PropertyValue value, const optional& klass) { if (value == getLineWidth(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } PropertyValue LineLayer::getDefaultLineGapWidth() { return { 0 }; } PropertyValue LineLayer::getLineGapWidth(const optional& klass) const { return impl->paint.get(klass); } void LineLayer::setLineGapWidth(PropertyValue value, const optional& klass) { if (value == getLineGapWidth(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } PropertyValue LineLayer::getDefaultLineOffset() { return { 0 }; } PropertyValue LineLayer::getLineOffset(const optional& klass) const { return impl->paint.get(klass); } void LineLayer::setLineOffset(PropertyValue value, const optional& klass) { if (value == getLineOffset(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } PropertyValue LineLayer::getDefaultLineBlur() { return { 0 }; } PropertyValue LineLayer::getLineBlur(const optional& klass) const { return impl->paint.get(klass); } void LineLayer::setLineBlur(PropertyValue value, const optional& klass) { if (value == getLineBlur(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } PropertyValue> LineLayer::getDefaultLineDasharray() { return { { } }; } PropertyValue> LineLayer::getLineDasharray(const optional& klass) const { return impl->paint.get(klass); } void LineLayer::setLineDasharray(PropertyValue> value, const optional& klass) { if (value == getLineDasharray(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } PropertyValue LineLayer::getDefaultLinePattern() { return { "" }; } PropertyValue LineLayer::getLinePattern(const optional& klass) const { return impl->paint.get(klass); } void LineLayer::setLinePattern(PropertyValue value, const optional& klass) { if (value == getLinePattern(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } } // namespace style } // namespace mbgl