aboutsummaryrefslogtreecommitdiff
path: root/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyColorRampGenerator.h
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-31 00:52:09 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-31 00:52:09 -0600
commit1b6df3a665605faa4c8b02ec31e7433caad1b0b1 (patch)
tree876b3ab2ab45980480d6e6bf2b5696708b72f25e /iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyColorRampGenerator.h
parentdf95aae61affe160257cd276c5c342a9c18b0d94 (diff)
downloadetbsa-trackermap-mobile-1b6df3a665605faa4c8b02ec31e7433caad1b0b1.tar.gz
etbsa-trackermap-mobile-1b6df3a665605faa4c8b02ec31e7433caad1b0b1.tar.bz2
etbsa-trackermap-mobile-1b6df3a665605faa4c8b02ec31e7433caad1b0b1.zip
Added WhirlyGlobe-Maply .xcframework and implemented map layer switch
Diffstat (limited to 'iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyColorRampGenerator.h')
-rw-r--r--iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyColorRampGenerator.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyColorRampGenerator.h b/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyColorRampGenerator.h
new file mode 100644
index 0000000..95d2331
--- /dev/null
+++ b/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyColorRampGenerator.h
@@ -0,0 +1,42 @@
+//
+// MaplyColorRampGenerator.h
+// WhirlyGlobe-MaplyComponent
+//
+// Created by Steve Gifford on 4/20/16.
+//
+//
+
+#import <UIKit/UIKit.h>
+
+/** The color ramp generator will take a set of color values
+ and generate a linear ramp of those colors in an output
+ image. You typically feed the color ramp image into a shader.
+ */
+@interface MaplyColorRampGenerator : NSObject
+
+// If set we'll stretch the colors out to the whole image
+// On by default.
+@property (nonatomic,assign) bool stretch;
+
+/// Add a color as a hex value.
+- (void)addHexColor:(int)hexColor;
+
+/// This color has an alpha too
+- (void)addHexColorWithAlpha:(int)hexColor;
+
+/// A color that's present in only one entry
+- (void)addSingleEntryColor:(UIColor *)color;
+
+/// Add a color as a UIColor
+- (void)addColor:(UIColor *)color;
+
+/// Add color with values expressed as integers 0-255
+- (void)addByteRed:(int)red green:(int)green blue:(int)blue alpha:(int)alpha;
+
+/// Generate the image with the color ramp in it
+- (UIImage *)makeImage:(CGSize)size;
+
+/// Get a list of colors (rather than generating an image)
+- (NSArray *)getColors;
+
+@end