From 2690a65f8dc9e920c16af3264864321295f7daa8 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 9 May 2017 14:34:21 -0700 Subject: =?UTF-8?q?[core]=20*LayerImpl::cascading=20=E2=87=A2=20paint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mbgl/style/layers/line_layer.cpp | 82 ++++++++++++++++++------------------ 1 file changed, 41 insertions(+), 41 deletions(-) (limited to 'src/mbgl/style/layers/line_layer.cpp') diff --git a/src/mbgl/style/layers/line_layer.cpp b/src/mbgl/style/layers/line_layer.cpp index 8b9085b48c..359078f913 100644 --- a/src/mbgl/style/layers/line_layer.cpp +++ b/src/mbgl/style/layers/line_layer.cpp @@ -29,7 +29,7 @@ Mutable LineLayer::mutableImpl() const { std::unique_ptr LineLayer::cloneRef(const std::string& id_) const { auto impl_ = mutableImpl(); impl_->id = id_; - impl_->cascading = LinePaintProperties::Cascading(); + impl_->paint = LinePaintProperties::Cascading(); return std::make_unique(std::move(impl_)); } @@ -165,14 +165,14 @@ DataDrivenPropertyValue LineLayer::getDefaultLineOpacity() { } DataDrivenPropertyValue LineLayer::getLineOpacity(const optional& klass) const { - return impl().cascading.template get().get(klass); + return impl().paint.template get().get(klass); } void LineLayer::setLineOpacity(DataDrivenPropertyValue value, const optional& klass) { if (value == getLineOpacity(klass)) return; auto impl_ = mutableImpl(); - impl_->cascading.template get().set(value, klass); + impl_->paint.template get().set(value, klass); baseImpl = std::move(impl_); if (value.isDataDriven()) { observer->onLayerDataDrivenPaintPropertyChanged(*this); @@ -183,12 +183,12 @@ void LineLayer::setLineOpacity(DataDrivenPropertyValue value, const optio void LineLayer::setLineOpacityTransition(const TransitionOptions& value, const optional& klass) { auto impl_ = mutableImpl(); - impl_->cascading.template get().setTransition(value, klass); + impl_->paint.template get().setTransition(value, klass); baseImpl = std::move(impl_); } TransitionOptions LineLayer::getLineOpacityTransition(const optional& klass) const { - return impl().cascading.template get().getTransition(klass); + return impl().paint.template get().getTransition(klass); } DataDrivenPropertyValue LineLayer::getDefaultLineColor() { @@ -196,14 +196,14 @@ DataDrivenPropertyValue LineLayer::getDefaultLineColor() { } DataDrivenPropertyValue LineLayer::getLineColor(const optional& klass) const { - return impl().cascading.template get().get(klass); + return impl().paint.template get().get(klass); } void LineLayer::setLineColor(DataDrivenPropertyValue value, const optional& klass) { if (value == getLineColor(klass)) return; auto impl_ = mutableImpl(); - impl_->cascading.template get().set(value, klass); + impl_->paint.template get().set(value, klass); baseImpl = std::move(impl_); if (value.isDataDriven()) { observer->onLayerDataDrivenPaintPropertyChanged(*this); @@ -214,12 +214,12 @@ void LineLayer::setLineColor(DataDrivenPropertyValue value, const optiona void LineLayer::setLineColorTransition(const TransitionOptions& value, const optional& klass) { auto impl_ = mutableImpl(); - impl_->cascading.template get().setTransition(value, klass); + impl_->paint.template get().setTransition(value, klass); baseImpl = std::move(impl_); } TransitionOptions LineLayer::getLineColorTransition(const optional& klass) const { - return impl().cascading.template get().getTransition(klass); + return impl().paint.template get().getTransition(klass); } PropertyValue> LineLayer::getDefaultLineTranslate() { @@ -227,26 +227,26 @@ PropertyValue> LineLayer::getDefaultLineTranslate() { } PropertyValue> LineLayer::getLineTranslate(const optional& klass) const { - return impl().cascading.template get().get(klass); + return impl().paint.template get().get(klass); } void LineLayer::setLineTranslate(PropertyValue> value, const optional& klass) { if (value == getLineTranslate(klass)) return; auto impl_ = mutableImpl(); - impl_->cascading.template get().set(value, klass); + impl_->paint.template get().set(value, klass); baseImpl = std::move(impl_); observer->onLayerPaintPropertyChanged(*this); } void LineLayer::setLineTranslateTransition(const TransitionOptions& value, const optional& klass) { auto impl_ = mutableImpl(); - impl_->cascading.template get().setTransition(value, klass); + impl_->paint.template get().setTransition(value, klass); baseImpl = std::move(impl_); } TransitionOptions LineLayer::getLineTranslateTransition(const optional& klass) const { - return impl().cascading.template get().getTransition(klass); + return impl().paint.template get().getTransition(klass); } PropertyValue LineLayer::getDefaultLineTranslateAnchor() { @@ -254,26 +254,26 @@ PropertyValue LineLayer::getDefaultLineTranslateAnchor() { } PropertyValue LineLayer::getLineTranslateAnchor(const optional& klass) const { - return impl().cascading.template get().get(klass); + return impl().paint.template get().get(klass); } void LineLayer::setLineTranslateAnchor(PropertyValue value, const optional& klass) { if (value == getLineTranslateAnchor(klass)) return; auto impl_ = mutableImpl(); - impl_->cascading.template get().set(value, klass); + impl_->paint.template get().set(value, klass); baseImpl = std::move(impl_); observer->onLayerPaintPropertyChanged(*this); } void LineLayer::setLineTranslateAnchorTransition(const TransitionOptions& value, const optional& klass) { auto impl_ = mutableImpl(); - impl_->cascading.template get().setTransition(value, klass); + impl_->paint.template get().setTransition(value, klass); baseImpl = std::move(impl_); } TransitionOptions LineLayer::getLineTranslateAnchorTransition(const optional& klass) const { - return impl().cascading.template get().getTransition(klass); + return impl().paint.template get().getTransition(klass); } PropertyValue LineLayer::getDefaultLineWidth() { @@ -281,26 +281,26 @@ PropertyValue LineLayer::getDefaultLineWidth() { } PropertyValue LineLayer::getLineWidth(const optional& klass) const { - return impl().cascading.template get().get(klass); + return impl().paint.template get().get(klass); } void LineLayer::setLineWidth(PropertyValue value, const optional& klass) { if (value == getLineWidth(klass)) return; auto impl_ = mutableImpl(); - impl_->cascading.template get().set(value, klass); + impl_->paint.template get().set(value, klass); baseImpl = std::move(impl_); observer->onLayerPaintPropertyChanged(*this); } void LineLayer::setLineWidthTransition(const TransitionOptions& value, const optional& klass) { auto impl_ = mutableImpl(); - impl_->cascading.template get().setTransition(value, klass); + impl_->paint.template get().setTransition(value, klass); baseImpl = std::move(impl_); } TransitionOptions LineLayer::getLineWidthTransition(const optional& klass) const { - return impl().cascading.template get().getTransition(klass); + return impl().paint.template get().getTransition(klass); } DataDrivenPropertyValue LineLayer::getDefaultLineGapWidth() { @@ -308,14 +308,14 @@ DataDrivenPropertyValue LineLayer::getDefaultLineGapWidth() { } DataDrivenPropertyValue LineLayer::getLineGapWidth(const optional& klass) const { - return impl().cascading.template get().get(klass); + return impl().paint.template get().get(klass); } void LineLayer::setLineGapWidth(DataDrivenPropertyValue value, const optional& klass) { if (value == getLineGapWidth(klass)) return; auto impl_ = mutableImpl(); - impl_->cascading.template get().set(value, klass); + impl_->paint.template get().set(value, klass); baseImpl = std::move(impl_); if (value.isDataDriven()) { observer->onLayerDataDrivenPaintPropertyChanged(*this); @@ -326,12 +326,12 @@ void LineLayer::setLineGapWidth(DataDrivenPropertyValue value, const opti void LineLayer::setLineGapWidthTransition(const TransitionOptions& value, const optional& klass) { auto impl_ = mutableImpl(); - impl_->cascading.template get().setTransition(value, klass); + impl_->paint.template get().setTransition(value, klass); baseImpl = std::move(impl_); } TransitionOptions LineLayer::getLineGapWidthTransition(const optional& klass) const { - return impl().cascading.template get().getTransition(klass); + return impl().paint.template get().getTransition(klass); } DataDrivenPropertyValue LineLayer::getDefaultLineOffset() { @@ -339,14 +339,14 @@ DataDrivenPropertyValue LineLayer::getDefaultLineOffset() { } DataDrivenPropertyValue LineLayer::getLineOffset(const optional& klass) const { - return impl().cascading.template get().get(klass); + return impl().paint.template get().get(klass); } void LineLayer::setLineOffset(DataDrivenPropertyValue value, const optional& klass) { if (value == getLineOffset(klass)) return; auto impl_ = mutableImpl(); - impl_->cascading.template get().set(value, klass); + impl_->paint.template get().set(value, klass); baseImpl = std::move(impl_); if (value.isDataDriven()) { observer->onLayerDataDrivenPaintPropertyChanged(*this); @@ -357,12 +357,12 @@ void LineLayer::setLineOffset(DataDrivenPropertyValue value, const option void LineLayer::setLineOffsetTransition(const TransitionOptions& value, const optional& klass) { auto impl_ = mutableImpl(); - impl_->cascading.template get().setTransition(value, klass); + impl_->paint.template get().setTransition(value, klass); baseImpl = std::move(impl_); } TransitionOptions LineLayer::getLineOffsetTransition(const optional& klass) const { - return impl().cascading.template get().getTransition(klass); + return impl().paint.template get().getTransition(klass); } DataDrivenPropertyValue LineLayer::getDefaultLineBlur() { @@ -370,14 +370,14 @@ DataDrivenPropertyValue LineLayer::getDefaultLineBlur() { } DataDrivenPropertyValue LineLayer::getLineBlur(const optional& klass) const { - return impl().cascading.template get().get(klass); + return impl().paint.template get().get(klass); } void LineLayer::setLineBlur(DataDrivenPropertyValue value, const optional& klass) { if (value == getLineBlur(klass)) return; auto impl_ = mutableImpl(); - impl_->cascading.template get().set(value, klass); + impl_->paint.template get().set(value, klass); baseImpl = std::move(impl_); if (value.isDataDriven()) { observer->onLayerDataDrivenPaintPropertyChanged(*this); @@ -388,12 +388,12 @@ void LineLayer::setLineBlur(DataDrivenPropertyValue value, const optional void LineLayer::setLineBlurTransition(const TransitionOptions& value, const optional& klass) { auto impl_ = mutableImpl(); - impl_->cascading.template get().setTransition(value, klass); + impl_->paint.template get().setTransition(value, klass); baseImpl = std::move(impl_); } TransitionOptions LineLayer::getLineBlurTransition(const optional& klass) const { - return impl().cascading.template get().getTransition(klass); + return impl().paint.template get().getTransition(klass); } PropertyValue> LineLayer::getDefaultLineDasharray() { @@ -401,26 +401,26 @@ PropertyValue> LineLayer::getDefaultLineDasharray() { } PropertyValue> LineLayer::getLineDasharray(const optional& klass) const { - return impl().cascading.template get().get(klass); + return impl().paint.template get().get(klass); } void LineLayer::setLineDasharray(PropertyValue> value, const optional& klass) { if (value == getLineDasharray(klass)) return; auto impl_ = mutableImpl(); - impl_->cascading.template get().set(value, klass); + impl_->paint.template get().set(value, klass); baseImpl = std::move(impl_); observer->onLayerPaintPropertyChanged(*this); } void LineLayer::setLineDasharrayTransition(const TransitionOptions& value, const optional& klass) { auto impl_ = mutableImpl(); - impl_->cascading.template get().setTransition(value, klass); + impl_->paint.template get().setTransition(value, klass); baseImpl = std::move(impl_); } TransitionOptions LineLayer::getLineDasharrayTransition(const optional& klass) const { - return impl().cascading.template get().getTransition(klass); + return impl().paint.template get().getTransition(klass); } PropertyValue LineLayer::getDefaultLinePattern() { @@ -428,26 +428,26 @@ PropertyValue LineLayer::getDefaultLinePattern() { } PropertyValue LineLayer::getLinePattern(const optional& klass) const { - return impl().cascading.template get().get(klass); + return impl().paint.template get().get(klass); } void LineLayer::setLinePattern(PropertyValue value, const optional& klass) { if (value == getLinePattern(klass)) return; auto impl_ = mutableImpl(); - impl_->cascading.template get().set(value, klass); + impl_->paint.template get().set(value, klass); baseImpl = std::move(impl_); observer->onLayerPaintPropertyChanged(*this); } void LineLayer::setLinePatternTransition(const TransitionOptions& value, const optional& klass) { auto impl_ = mutableImpl(); - impl_->cascading.template get().setTransition(value, klass); + impl_->paint.template get().setTransition(value, klass); baseImpl = std::move(impl_); } TransitionOptions LineLayer::getLinePatternTransition(const optional& klass) const { - return impl().cascading.template get().getTransition(klass); + return impl().paint.template get().getTransition(klass); } } // namespace style -- cgit v1.2.1