From 20712b7c84bd91bcf658d74bf25f3460354b5fd6 Mon Sep 17 00:00:00 2001 From: Fabian Guerra Soto Date: Fri, 10 Mar 2017 11:33:31 -0800 Subject: Per-attribute transition properties on MGLStyleLayer (#8225) * [ios, macos] new struct MGLTransition * [ios] MGLTransition struct moved to MGLTypes.h * [ios] MGLTransition implemented for style layer properties * [ios, macos] added support for getting property transitions * [ios, macos] updated to MGLDurationFromTimeInterval and MGLTimeIntervalFromDuration * [ios, macos] added transition properties test * [ios, macos] modified key strings imp * [ios, macos] The impl for transition properties were changed to public methods * [ios, macos] Changelog update * [ios] Fixed layer space formatting * [core] The name space was fixed for getters that returned TransitionOptions * [ios, macos] Added rawLayer transition property tests * [ios] Added a factory method for MGLTransition and transition-related methods to NSValue(MGLAdditions) * [ios, macos] Copyedited changelog blurbs about transition properties --- include/mbgl/style/layers/raster_layer.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/mbgl/style/layers/raster_layer.hpp') diff --git a/include/mbgl/style/layers/raster_layer.hpp b/include/mbgl/style/layers/raster_layer.hpp index 72665baa72..3596a71f58 100644 --- a/include/mbgl/style/layers/raster_layer.hpp +++ b/include/mbgl/style/layers/raster_layer.hpp @@ -28,36 +28,43 @@ public: PropertyValue getRasterOpacity(const optional& klass = {}) const; void setRasterOpacity(PropertyValue, const optional& klass = {}); void setRasterOpacityTransition(const TransitionOptions&, const optional& klass = {}); + TransitionOptions getRasterOpacityTransition(const optional& klass = {}) const; static PropertyValue getDefaultRasterHueRotate(); PropertyValue getRasterHueRotate(const optional& klass = {}) const; void setRasterHueRotate(PropertyValue, const optional& klass = {}); void setRasterHueRotateTransition(const TransitionOptions&, const optional& klass = {}); + TransitionOptions getRasterHueRotateTransition(const optional& klass = {}) const; static PropertyValue getDefaultRasterBrightnessMin(); PropertyValue getRasterBrightnessMin(const optional& klass = {}) const; void setRasterBrightnessMin(PropertyValue, const optional& klass = {}); void setRasterBrightnessMinTransition(const TransitionOptions&, const optional& klass = {}); + TransitionOptions getRasterBrightnessMinTransition(const optional& klass = {}) const; static PropertyValue getDefaultRasterBrightnessMax(); PropertyValue getRasterBrightnessMax(const optional& klass = {}) const; void setRasterBrightnessMax(PropertyValue, const optional& klass = {}); void setRasterBrightnessMaxTransition(const TransitionOptions&, const optional& klass = {}); + TransitionOptions getRasterBrightnessMaxTransition(const optional& klass = {}) const; static PropertyValue getDefaultRasterSaturation(); PropertyValue getRasterSaturation(const optional& klass = {}) const; void setRasterSaturation(PropertyValue, const optional& klass = {}); void setRasterSaturationTransition(const TransitionOptions&, const optional& klass = {}); + TransitionOptions getRasterSaturationTransition(const optional& klass = {}) const; static PropertyValue getDefaultRasterContrast(); PropertyValue getRasterContrast(const optional& klass = {}) const; void setRasterContrast(PropertyValue, const optional& klass = {}); void setRasterContrastTransition(const TransitionOptions&, const optional& klass = {}); + TransitionOptions getRasterContrastTransition(const optional& klass = {}) const; static PropertyValue getDefaultRasterFadeDuration(); PropertyValue getRasterFadeDuration(const optional& klass = {}) const; void setRasterFadeDuration(PropertyValue, const optional& klass = {}); void setRasterFadeDurationTransition(const TransitionOptions&, const optional& klass = {}); + TransitionOptions getRasterFadeDurationTransition(const optional& klass = {}) const; // Private implementation -- cgit v1.2.1