iOS高德地图SDK(3D) V11.2.0001

MAOverlayRenderer.h
Go to the documentation of this file.
1 //
2 // MAOverlayRenderer.h
3 // MAMapKit
4 //
5 //
6 // Copyright (c) 2011年 Amap. All rights reserved.
7 //
8
9 #import "MAConfig.h"
10 #import <UIKit/UIKit.h>
11 #import "MAOverlay.h"
12 #import "MALineDrawType.h"
13
14 #define kMAOverlayRendererDefaultStrokeColor [UIColor colorWithRed:0.3 green:0.63 blue:0.89 alpha:0.8]
15 #define kMAOverlayRendererDefaultFillColor [UIColor colorWithRed:0.77 green:0.88 blue:0.94 alpha:0.8]
16
17 @protocol MAOverlayRenderDelegate,MTLRenderCommandEncoder;
18
21 @interface MAOverlayRenderer : NSObject {
22 @protected
23 GLuint _strokeTextureID;
24 CGSize _strokeTextureSize;
25 BOOL _needsUpdate;
26 BOOL _needsLoadStrokeTexture;
27 }
28
31 @property (nonatomic, weak) id<MAOverlayRenderDelegate> rendererDelegate;
32
35 @property (nonatomic, readonly, retain) id <MAOverlay> overlay;
36
39 @property (nonatomic, strong) UIImage *strokeImage;
40
43 @property (nonatomic, readonly) GLuint strokeTextureID __attribute((deprecated("Deprecated, since 7.9.0")));
44
47 @property (nonatomic, assign) CGFloat alpha;
48
51 @property (nonatomic, readonly) CGFloat contentScale;
52
61 - (instancetype)initWithOverlay:(id<MAOverlay>)overlay;
62
69 - (float *)getViewMatrix;
70
77 - (float *)getProjectionMatrix;
78
85 - (MAMapPoint)getOffsetPoint;
86
93 - (id<MTLRenderCommandEncoder>)getCommandEncoder;
94
101 - (CGFloat)getMapZoomLevel;
102
111 - (CGPoint)glPointForMapPoint:(MAMapPoint)mapPoint;
112
123 - (CGPoint *)glPointsForMapPoints:(MAMapPoint *)mapPoints count:(NSUInteger)count;
124
133 - (CGFloat)glWidthForWindowWidth:(CGFloat)windowWidth;
134
139 - (void)glRender;
140
149 - (GLuint)loadTexture:(UIImage *)textureImage __attribute((deprecated("Deprecated, since 7.9.0")));
150
157 - (void)deleteTexture:(GLuint)textureId __attribute((deprecated("Deprecated, since 7.9.0")));
158
163 - (void)setNeedsUpdate;
164
165 @end
MAConfig.h
MALineDrawType.h
MAOverlay.h
MAOverlayRenderer
Definition: MAOverlayRenderer.h:21
MAOverlayRenderer::_strokeTextureSize
CGSize _strokeTextureSize
Definition: MAOverlayRenderer.h:24
MAOverlayRenderer::_strokeTextureID
GLuint _strokeTextureID
Definition: MAOverlayRenderer.h:23
-[MAOverlayRenderer __attribute]
GLuint strokeTextureID __attribute((deprecated("Deprecated, since 7.9.0")))
MAOverlayRenderer::_needsUpdate
BOOL _needsUpdate
Definition: MAOverlayRenderer.h:25
MAOverlayRenderer::_needsLoadStrokeTexture
BOOL _needsLoadStrokeTexture
Definition: MAOverlayRenderer.h:26
MAOverlay-p
Definition: MAOverlay.h:15
MAMapPoint
Definition: MAGeometry.h:42
© 2017 高德信息技术有限公司 版权所有，保留所有权利。