TencentMapSDK_iOS_3D_v6.7.0

QGLOverlay.h
1 //
2 // QGLOverlay.h
3 // QMapKit
4 //
5 // Created by fan on 2020/5/21.
6 // Copyright © 2020 tencent. All rights reserved.
7 //
8
9 #import "QShape.h"
10 #import "QOverlay.h"
11 #import "QOverlayObject.h"
12
13 NS_ASSUME_NONNULL_BEGIN
14
15 @class QGLOverlay;
19 typedef enum : NSInteger {
20 QGLOverlayLoadError_Internal = -20,
21 QGLOverlayLoadSuccess = 0,
22 QGLOverlayLoading = 1
23 } QGLOverlayLoadStatus;
24
28 @protocol QGLOverlayDelegate <NSObject>
29
30 @optional
37 - (void)glOverlay:(QGLOverlay *)glOverlay didTap:(QOverlayObject *)overlayObject;
38
45 - (void)glOverlay:(QGLOverlay *)overlay loadStatus:(QGLOverlayLoadStatus)status withProgress:(CGFloat)progress;
46
47 @end
48
52 @interface QGLOverlay : QShape <QOverlay>
53
57 @property (nonatomic, weak) id<QGLOverlayDelegate> delegate;
58
62 @property (nonatomic, assign) BOOL visible;
66 @property (nonatomic, assign) CGFloat opacity;
67
71 @property (nonatomic, readonly) int minZoomLevel;
75 @property (nonatomic, readonly) int maxZoomLevel;
76
80 - (void)setMinZoomLevel:(int)minZoomLevel maxZoomLevel:(int)maxZoomLevel;
81
85 - (NSString *)getType;
86
90 - (void)render;
91
95 - (void)setNeedsDisplay;
96
100 @property(nonatomic, readonly) QMapRect boundingMapRect;
101
105 @property (nonatomic, assign) BOOL interactive;
106
110 - (BOOL)isSupportClick;
111
116 - (float *)glViewMatrix;
117
122 - (float *)glProjectionMatrix;
123
129 - (CGPoint)glVertexForCoordinate:(CLLocationCoordinate2D)coordinate;
130
135 - (CGFloat)glPointRatio;
136
137 @end
138
139 NS_ASSUME_NONNULL_END
QGLOverlay::maxZoomLevel
int maxZoomLevel
最大显示级别. (默认22)
Definition: QGLOverlay.h:75
-[QGLOverlay isSupportClick]
BOOL isSupportClick()
获取覆盖物是否支持点击
-[QGLOverlay glViewMatrix]
float * glViewMatrix()
获取当前地图view矩阵
QShape
该类为一个抽象类，定义了QShape类的基本属性和行为，不能直接使用，必须子类化之后才能使用
Definition: QShape.h:16
QGLOverlay::interactive
BOOL interactive
覆盖物是否响应点击, 默认：NO
Definition: QGLOverlay.h:105
QGLOverlay::minZoomLevel
int minZoomLevel
最小显示级别. (默认3)
Definition: QGLOverlay.h:71
QOverlayObject
可被点击对象的抽象基类
Definition: QOverlayObject.h:18
QOverlay-p
QOverlay:地图覆盖物的基类，所有地图的覆盖物需要继承自此类
Definition: QOverlay.h:15
-[QGLOverlay setNeedsDisplay]
void setNeedsDisplay()
触发一次渲染
-[QGLOverlay render]
void render()
覆盖物渲染实现. 请不要直接调用
-[QGLOverlay glProjectionMatrix]
float * glProjectionMatrix()
获取当前地图projection矩阵
-[QGLOverlay glPointRatio]
CGFloat glPointRatio()
返回每屏幕Point单位对应的OpenGL坐标系下的长度
QMapRect
平面投影矩形结构定义
Definition: QGeometry.h:92
QGLOverlay::opacity
CGFloat opacity
整个图层的透明度. (默认1.0)
Definition: QGLOverlay.h:66
QGLOverlay
可自定义渲染内容的覆盖物
Definition: QGLOverlay.h:52
-[QGLOverlay getType]
NSString * getType()
获取覆盖物类型.
QGLOverlayDelegate-p
QGLOverlayDelegate:GLOverlay的Delegate,GLOverlay通过此类来通知用户对应的事件
Definition: QGLOverlay.h:28
QGLOverlay::delegate
id< QGLOverlayDelegate > delegate
实现QGLOverlayDelegate协议的对象
Definition: QGLOverlay.h:57
QGLOverlay::boundingMapRect
QMapRect boundingMapRect
覆盖物的外接矩形
Definition: QGLOverlay.h:100
QGLOverlay::visible
BOOL visible
是否可见. (默认YES)
Definition: QGLOverlay.h:62