Loading...
Searching...
No Matches
NCRouteLayer.h
Go to the documentation of this file.
1#import "NCExport.h"
2#import "NCPlacement.h"
3#import "NCRouteEndpoint.h"
5#import <Foundation/Foundation.h>
6#import <UIKit/UIKit.h>
7@class NCRouteView;
8@protocol NCRouteLayerListener;
9@protocol NCRouteViewListener;
10
11
31DEFAULT_EXPORT_ATTRIBUTE
32@interface NCRouteLayer : NSObject
33
47- (void)setVisible:(BOOL)visible;
48
62- (BOOL)isVisible;
63
78- (void)setTarget:(nonnull NCRouteEndpoint *)target;
79
95- (void)setRoute:(nonnull NCRouteEndpoint *)from
96 to:(nonnull NCRouteEndpoint *)to;
97
111- (void)clear;
112
126- (nonnull NSArray<NCRouteView *> *)routes;
127
142
157- (void)selectRoute:(nullable NCRouteView *)route;
158
172- (void)addRouteLayerListener:(nullable id<NCRouteLayerListener>)listener;
173
178- (void)removeRouteLayerListener:(nullable id<NCRouteLayerListener>)listener;
179
193- (void)addRouteViewListener:(nullable id<NCRouteViewListener>)listener;
194
199- (void)removeRouteViewListener:(nullable id<NCRouteViewListener>)listener;
200
214- (void)setTraveledColor:(nonnull UIColor *)color;
215
229- (void)setRemainingColor:(nonnull UIColor *)color;
230
244- (void)setWidth:(float)width;
245
259- (void)setRemainingStyle:(NCRouteRemainingStyle)style;
260
275
289- (void)setRemainingDashLength:(float)dashLength;
290
304- (void)setRemainingGapLength:(float)gapLength;
305
319- (void)setRemainingPointSize:(float)width
320 height:(float)height;
321
335- (void)setRemainingPlacement:(NCPlacement)placement;
336
350- (void)setRemainingPlacementSpacing:(float)spacing;
351
365- (void)setRemainingPlacementMinRatio:(float)ratio;
366
380- (void)setRemainingCollisionEnabled:(BOOL)enabled;
381
388@property (nonatomic, readonly, getter=isValid) BOOL valid;
389
390@end