Map Doc  1.0
iOS-引擎SDK-开放平台
MBUtils.h
浏览该文件的文档.
1 //
2 // MBUtils.h
3 // iNaviCore
4 //
5 // Created by delon on 13-4-24.
6 // Copyright (c) 2013年 Mapbar. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "MBNaviCoreBase.h"
11 
12 @interface MBUtils : NSObject
13 
23 + (NSDictionary *)App_getNaviDataMetadata:(NSString *)fileName;
24 
35 + (NSInteger)distanceWithStartPoint:(MBPoint *)startPoint endPoint:(MBPoint *)endPoint;
36 
45 + (NSString *)distanceTextWithStartPoint:(MBPoint *)startPoint endPoint:(MBPoint *)endPoint;
46 
56 + (NSString *)distanceTextWithLength:(NSInteger)length;
57 
66 + (NSString *)orientationTextWithStartPoint:(MBPoint *)startPoint endPoint:(MBPoint *)endPoint;
67 
76 + (NSInteger)angleFromDx:(NSInteger)dx andDy:(NSInteger)dy;
77 
86 + (NSInteger)angleFromPoint:(MBPoint)posFrom toPoint:(MBPoint)posTo;
87 
93 + (int)isNightMode;
94 
102 + (NSString *)getAbsolutePath:(NSString *)relativePath;
103 
113 + (MBDateTime)NSDate2DateTime:(NSDate *)date;
114 
120 + (NSString *)Device_uniqueDeviceIdentifier;
121 
131 + (unsigned char *) convertUIImageToBitmapRGBA8:(UIImage *) image;
132 
144 + (UIImage *) convertBitmapRGBA8ToUIImage:(unsigned char *) buffer
145  withWidth:(int) width
146  withHeight:(int) height;
147 @end
Definition: MBUtils.h:12
NSString * Device_uniqueDeviceIdentifier()
int isNightMode()
Definition: MBNaviCoreBase.h:87
Definition: MBNaviCoreBase.h:31