aboutsummaryrefslogtreecommitdiff
path: root/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64/WhirlyGlobeMaplyComponent.framework/Headers/MaplyBillboard.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/WhirlyGlobeMaplyComponent.framework/Headers/MaplyBillboard.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/WhirlyGlobeMaplyComponent.framework/Headers/MaplyBillboard.h')
-rw-r--r--iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64/WhirlyGlobeMaplyComponent.framework/Headers/MaplyBillboard.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64/WhirlyGlobeMaplyComponent.framework/Headers/MaplyBillboard.h b/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64/WhirlyGlobeMaplyComponent.framework/Headers/MaplyBillboard.h
new file mode 100644
index 0000000..3a24e43
--- /dev/null
+++ b/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64/WhirlyGlobeMaplyComponent.framework/Headers/MaplyBillboard.h
@@ -0,0 +1,74 @@
+/*
+ * MaplyBillboard.h
+ * WhirlyGlobeComponent
+ *
+ * Created by Steve Gifford on 10/28/13.
+ * Copyright 2011-2022 mousebird consulting
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#import <UIKit/UIKit.h>
+#import <WhirlyGlobeMaplyComponent/MaplyCoordinate.h>
+#import <WhirlyGlobeMaplyComponent/MaplyScreenObject.h>
+
+/**
+ A billboard is tied to a specific point, but rotates to face the user.
+
+ The billboard object represents a rectangle which is rooted at a specific point, but will rotate to face the user. These are typically used in 3D, when the globe or map has a tilt. They make little sense in 2D.
+ */
+@interface MaplyBillboard : NSObject
+
+/**
+ The point this billboard is rooted at.
+
+ The x and y coordinates are radians. The z coordinate is in meters.
+ */
+@property (nonatomic) MaplyCoordinate3d center;
+
+/// Set if you want to select these
+@property (nonatomic) bool selectable;
+
+/// The 2D polygonal description of what the billboard should be
+@property (nonatomic,strong) MaplyScreenObject * __nullable screenObj;
+
+/**
+ Vertex attributes to apply to this billboard.
+
+ MaplyVertexAttribute objects are passed all the way to the shader. Read that page for details on what they do.
+
+ The array of vertex attributes provided here will be copied onto all the vertices we create for the shader. This means you can use these to do things for a single billboard in your shader.
+ */
+@property (nonatomic,strong) NSArray * __nullable vertexAttributes;
+
+/**
+ User data object for selection
+
+ When the user selects a feature and the developer gets it in their delegate, this is an object they can use to figure out what the screen label means to them.
+ */
+@property (nonatomic,strong) id __nullable userObject;
+
+/**
+ Initialize with a single image, a given background and a size.
+
+ This will create a simple billboard with a single image pasted on it.
+
+ @param texture This can either be a UIImage or a MaplyTexture.
+
+ @param color Color for the polygon that makes up the billboard.
+
+ @param size Size of the billboard in display space.
+ */
+- (nullable instancetype)initWithImage:(id __nonnull)texture color:(UIColor * __nonnull)color size:(CGSize)size;
+
+@end