// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`. #include #include #include namespace mbgl { namespace style { HillshadeLayer::HillshadeLayer(const std::string& layerID, const std::string& sourceID) : Layer(makeMutable(LayerType::Hillshade, layerID, sourceID)) { } HillshadeLayer::HillshadeLayer(Immutable impl_) : Layer(std::move(impl_)) { } HillshadeLayer::~HillshadeLayer() = default; const HillshadeLayer::Impl& HillshadeLayer::impl() const { return static_cast(*baseImpl); } Mutable HillshadeLayer::mutableImpl() const { return makeMutable(impl()); } std::unique_ptr HillshadeLayer::cloneRef(const std::string& id_) const { auto impl_ = mutableImpl(); impl_->id = id_; impl_->paint = HillshadePaintProperties::Transitionable(); return std::make_unique(std::move(impl_)); } void HillshadeLayer::Impl::stringifyLayout(rapidjson::Writer&) const { } // Source const std::string& HillshadeLayer::getSourceID() const { return impl().source; } // Visibility void HillshadeLayer::setVisibility(VisibilityType value) { if (value == getVisibility()) return; auto impl_ = mutableImpl(); impl_->visibility = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } // Zoom range void HillshadeLayer::setMinZoom(float minZoom) { auto impl_ = mutableImpl(); impl_->minZoom = minZoom; baseImpl = std::move(impl_); } void HillshadeLayer::setMaxZoom(float maxZoom) { auto impl_ = mutableImpl(); impl_->maxZoom = maxZoom; baseImpl = std::move(impl_); } // Layout properties // Paint properties PropertyValue HillshadeLayer::getDefaultHillshadeIlluminationDirection() { return { 335 }; } PropertyValue HillshadeLayer::getHillshadeIlluminationDirection() const { return impl().paint.template get().value; } void HillshadeLayer::setHillshadeIlluminationDirection(PropertyValue value) { if (value == getHillshadeIlluminationDirection()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void HillshadeLayer::setHillshadeIlluminationDirectionTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions HillshadeLayer::getHillshadeIlluminationDirectionTransition() const { return impl().paint.template get().options; } PropertyValue HillshadeLayer::getDefaultHillshadeIlluminationAnchor() { return { HillshadeIlluminationAnchorType::Viewport }; } PropertyValue HillshadeLayer::getHillshadeIlluminationAnchor() const { return impl().paint.template get().value; } void HillshadeLayer::setHillshadeIlluminationAnchor(PropertyValue value) { if (value == getHillshadeIlluminationAnchor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void HillshadeLayer::setHillshadeIlluminationAnchorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions HillshadeLayer::getHillshadeIlluminationAnchorTransition() const { return impl().paint.template get().options; } PropertyValue HillshadeLayer::getDefaultHillshadeExaggeration() { return { 0.5 }; } PropertyValue HillshadeLayer::getHillshadeExaggeration() const { return impl().paint.template get().value; } void HillshadeLayer::setHillshadeExaggeration(PropertyValue value) { if (value == getHillshadeExaggeration()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void HillshadeLayer::setHillshadeExaggerationTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions HillshadeLayer::getHillshadeExaggerationTransition() const { return impl().paint.template get().options; } PropertyValue HillshadeLayer::getDefaultHillshadeShadowColor() { return { Color::black() }; } PropertyValue HillshadeLayer::getHillshadeShadowColor() const { return impl().paint.template get().value; } void HillshadeLayer::setHillshadeShadowColor(PropertyValue value) { if (value == getHillshadeShadowColor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void HillshadeLayer::setHillshadeShadowColorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions HillshadeLayer::getHillshadeShadowColorTransition() const { return impl().paint.template get().options; } PropertyValue HillshadeLayer::getDefaultHillshadeHighlightColor() { return { Color::white() }; } PropertyValue HillshadeLayer::getHillshadeHighlightColor() const { return impl().paint.template get().value; } void HillshadeLayer::setHillshadeHighlightColor(PropertyValue value) { if (value == getHillshadeHighlightColor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void HillshadeLayer::setHillshadeHighlightColorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions HillshadeLayer::getHillshadeHighlightColorTransition() const { return impl().paint.template get().options; } PropertyValue HillshadeLayer::getDefaultHillshadeAccentColor() { return { Color::black() }; } PropertyValue HillshadeLayer::getHillshadeAccentColor() const { return impl().paint.template get().value; } void HillshadeLayer::setHillshadeAccentColor(PropertyValue value) { if (value == getHillshadeAccentColor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void HillshadeLayer::setHillshadeAccentColorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions HillshadeLayer::getHillshadeAccentColorTransition() const { return impl().paint.template get().options; } } // namespace style } // namespace mbgl