diff options
Diffstat (limited to 'iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyUpdateLayer.h')
-rw-r--r-- | iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyUpdateLayer.h | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyUpdateLayer.h b/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyUpdateLayer.h deleted file mode 100644 index 4ff9ede..0000000 --- a/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyUpdateLayer.h +++ /dev/null @@ -1,100 +0,0 @@ -/* - * MaplyUpdateLayer.h - * WhirlyGlobe-MaplyComponent - * - * Created by Steve Gifford on 4/13/15. - * 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 <WhirlyGlobeMaplyComponent/MaplyComponentObject.h> -#import <WhirlyGlobeMaplyComponent/MaplyControllerLayer.h> -#import <WhirlyGlobeMaplyComponent/MaplyCoordinate.h> -#import <WhirlyGlobeMaplyComponent/MaplyCoordinateSystem.h> -#import <WhirlyGlobeMaplyComponent/MaplyTileSourceNew.h> -#import <WhirlyGlobeMaplyComponent/MaplyRenderController.h> - -@class MaplyUpdateLayer; - -/** - An encapsulation of where the viewer is and what they're looking at. - - This wraps information about where the viewer is currently looking from and at. - */ -@interface MaplyViewerState : NSObject - -/// Position of the viewer -- (MaplyCoordinate3d) eyePos; - -@end - - -/** - The update delegate is called if the viewer moves, but not too often. - - Use this delegate to generate features around the viewer when they move. You can control how far they have to move (in display coordinates) and how often you'll receive updates. - */ -@protocol MaplyUpdateDelegate - -/** - Called when the MaplyUpdateLayer is initialized. - - This is called after things are set up. You'll be on the layer thread here. - */ -- (void)start:(MaplyUpdateLayer *__nonnull)layer; - -/** - Called when the viewer moves. - - You'll be called on the layer thread when the viewer moves more than your moveDist, subject to calls no more frequent than the minTime. - */ -- (void)viewerMovedTo:(MaplyViewerState *__nonnull)viewState layer:(MaplyUpdateLayer *__nonnull)layer; - -/** - Called when the update layer is shutting down. - - Clean up your own data here. - */ -- (void)teardown:(MaplyUpdateLayer *__nonnull)layer; - -@end - -/** - This layer will call a delegate as the user moves around, but constrained to distance and time. - - This layer is responsible for calling a delegate you provide as the user moves their viewpoint around. You'll be called if they move from than a certain amount, but not more often than the minimum time. - */ -@interface MaplyUpdateLayer : MaplyControllerLayer - -/// The minimum distance that will trigger a delegate call. Distance is in display units (radius of the earth = 1.0). -@property (nonatomic,readonly) double moveDist; - -/// The delegate will be called no more often than this amount (in seconds). -@property (nonatomic,readonly) double minTime; - -/// Maximum time to go without getting an update (if things are moving) -@property (nonatomic) double maxLag; - -/** - Initalize the update layer with a delegate and parameters. - - @param delegate The delegate that will be called every time the user moves, subject to the values. - - @param moveDist The minimum distance that will trigger a delegate call. Distance is in display units (radius of the earth = 1.0). - - @param minTime The delegate will be called no more often than this amount (in seconds). - */ -- (nonnull instancetype)initWithDelegate:(NSObject<MaplyUpdateDelegate> *__nullable)delegate moveDist:(double)moveDist minTime:(double)minTime; - -@end |