// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`. #include #include #include namespace mbgl { namespace style { CircleLayer::CircleLayer(const std::string& layerID, const std::string& sourceID) : Layer(makeMutable(LayerType::Circle, layerID, sourceID)) { } CircleLayer::CircleLayer(Immutable impl_) : Layer(std::move(impl_)) { } CircleLayer::~CircleLayer() = default; const CircleLayer::Impl& CircleLayer::impl() const { return static_cast(*baseImpl); } Mutable CircleLayer::mutableImpl() const { return makeMutable(impl()); } std::unique_ptr CircleLayer::cloneRef(const std::string& id_) const { auto impl_ = mutableImpl(); impl_->id = id_; impl_->paint = CirclePaintProperties::Transitionable(); return std::make_unique(std::move(impl_)); } void CircleLayer::Impl::stringifyLayout(rapidjson::Writer&) const { } // Source const std::string& CircleLayer::getSourceID() const { return impl().source; } void CircleLayer::setSourceLayer(const std::string& sourceLayer) { auto impl_ = mutableImpl(); impl_->sourceLayer = sourceLayer; baseImpl = std::move(impl_); } const std::string& CircleLayer::getSourceLayer() const { return impl().sourceLayer; } // Filter void CircleLayer::setFilter(const Filter& filter) { auto impl_ = mutableImpl(); impl_->filter = filter; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } const Filter& CircleLayer::getFilter() const { return impl().filter; } // Visibility void CircleLayer::setVisibility(VisibilityType value) { if (value == getVisibility()) return; auto impl_ = mutableImpl(); impl_->visibility = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } // Zoom range void CircleLayer::setMinZoom(float minZoom) { auto impl_ = mutableImpl(); impl_->minZoom = minZoom; baseImpl = std::move(impl_); } void CircleLayer::setMaxZoom(float maxZoom) { auto impl_ = mutableImpl(); impl_->maxZoom = maxZoom; baseImpl = std::move(impl_); } // Layout properties // Paint properties DataDrivenPropertyValue CircleLayer::getDefaultCircleRadius() { return { 5 }; } DataDrivenPropertyValue CircleLayer::getCircleRadius() const { return impl().paint.template get().value; } void CircleLayer::setCircleRadius(DataDrivenPropertyValue value) { if (value == getCircleRadius()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void CircleLayer::setCircleRadiusTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions CircleLayer::getCircleRadiusTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue CircleLayer::getDefaultCircleColor() { return { Color::black() }; } DataDrivenPropertyValue CircleLayer::getCircleColor() const { return impl().paint.template get().value; } void CircleLayer::setCircleColor(DataDrivenPropertyValue value) { if (value == getCircleColor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void CircleLayer::setCircleColorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions CircleLayer::getCircleColorTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue CircleLayer::getDefaultCircleBlur() { return { 0 }; } DataDrivenPropertyValue CircleLayer::getCircleBlur() const { return impl().paint.template get().value; } void CircleLayer::setCircleBlur(DataDrivenPropertyValue value) { if (value == getCircleBlur()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void CircleLayer::setCircleBlurTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions CircleLayer::getCircleBlurTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue CircleLayer::getDefaultCircleOpacity() { return { 1 }; } DataDrivenPropertyValue CircleLayer::getCircleOpacity() const { return impl().paint.template get().value; } void CircleLayer::setCircleOpacity(DataDrivenPropertyValue value) { if (value == getCircleOpacity()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void CircleLayer::setCircleOpacityTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions CircleLayer::getCircleOpacityTransition() const { return impl().paint.template get().options; } PropertyValue> CircleLayer::getDefaultCircleTranslate() { return { {{ 0, 0 }} }; } PropertyValue> CircleLayer::getCircleTranslate() const { return impl().paint.template get().value; } void CircleLayer::setCircleTranslate(PropertyValue> value) { if (value == getCircleTranslate()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void CircleLayer::setCircleTranslateTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions CircleLayer::getCircleTranslateTransition() const { return impl().paint.template get().options; } PropertyValue CircleLayer::getDefaultCircleTranslateAnchor() { return { TranslateAnchorType::Map }; } PropertyValue CircleLayer::getCircleTranslateAnchor() const { return impl().paint.template get().value; } void CircleLayer::setCircleTranslateAnchor(PropertyValue value) { if (value == getCircleTranslateAnchor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void CircleLayer::setCircleTranslateAnchorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions CircleLayer::getCircleTranslateAnchorTransition() const { return impl().paint.template get().options; } PropertyValue CircleLayer::getDefaultCirclePitchScale() { return { CirclePitchScaleType::Map }; } PropertyValue CircleLayer::getCirclePitchScale() const { return impl().paint.template get().value; } void CircleLayer::setCirclePitchScale(PropertyValue value) { if (value == getCirclePitchScale()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void CircleLayer::setCirclePitchScaleTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions CircleLayer::getCirclePitchScaleTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue CircleLayer::getDefaultCircleStrokeWidth() { return { 0 }; } DataDrivenPropertyValue CircleLayer::getCircleStrokeWidth() const { return impl().paint.template get().value; } void CircleLayer::setCircleStrokeWidth(DataDrivenPropertyValue value) { if (value == getCircleStrokeWidth()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void CircleLayer::setCircleStrokeWidthTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions CircleLayer::getCircleStrokeWidthTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue CircleLayer::getDefaultCircleStrokeColor() { return { Color::black() }; } DataDrivenPropertyValue CircleLayer::getCircleStrokeColor() const { return impl().paint.template get().value; } void CircleLayer::setCircleStrokeColor(DataDrivenPropertyValue value) { if (value == getCircleStrokeColor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void CircleLayer::setCircleStrokeColorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions CircleLayer::getCircleStrokeColorTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue CircleLayer::getDefaultCircleStrokeOpacity() { return { 1 }; } DataDrivenPropertyValue CircleLayer::getCircleStrokeOpacity() const { return impl().paint.template get().value; } void CircleLayer::setCircleStrokeOpacity(DataDrivenPropertyValue value) { if (value == getCircleStrokeOpacity()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void CircleLayer::setCircleStrokeOpacityTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions CircleLayer::getCircleStrokeOpacityTransition() const { return impl().paint.template get().options; } } // namespace style } // namespace mbgl