TencentMapSDK_iOS_3D_v6.8.0

载入中...
搜索中...
未找到
QHeatOverlay.h
1//
2// QHeatOverlay.h
3// QMapKit
4//
5// Created by Keith Cao on 2020/9/10.
6// Copyright © 2020 tencent. All rights reserved.
7//
8
9#ifndef _QHEATOVERLAY_H_
10#define _QHEATOVERLAY_H_
11
12#import <Foundation/Foundation.h>
13#import <UIKit/UIKit.h>
14#import <QMapKit/QHeatNodeProtocol.h>
15#import <QMapKit/QGLOverlay.h>
16
20@interface QHeatGradient : NSObject
21
25@property (nonatomic, readonly) NSArray<UIColor *> *colors;
26
30@property (nonatomic, readonly) NSArray<NSNumber *> *startPoints;
31
40- (instancetype)initWithColor:(NSArray<UIColor *> *)colors andWithStartPoints:(NSArray<NSNumber *> *)startPoints;
41
42@end
43
48@interface QHeatOverlay : QGLOverlay
49{
50 @package
51 QMapRect _boundingRect;
52}
53
60- (instancetype)initWithHeatNodes:(NSArray<id<QHeatNodeProtocol> > *)heatNodes;
61
66@property (nonatomic, copy) NSArray<id<QHeatNodeProtocol> > *nodes;
67
73@property (nonatomic, assign) NSInteger decayRadius;
74
79@property (nonatomic, strong) QHeatGradient *gradient;
80
85@property (nonatomic, assign) CGFloat maxHeight;
86
92- (void)setMinIntensity:(CGFloat)minIntensity maxIntensity:(CGFloat)maxIntensity;
93
98@property (nonatomic, assign) BOOL enable3D;
99
104@property (nonatomic, strong) QAnimation *animation;
105
106
107@end
108
109#endif
QAnimation
动画配置
定义 QShape.h:31
QGLOverlay
可自定义渲染内容的覆盖物
定义 QGLOverlay.h:52
QHeatGradient
热力图渐变属性
定义 QHeatOverlay.h:21
QHeatGradient::colors
NSArray< UIColor * > * colors
颜色变化数组
定义 QHeatOverlay.h:25
QHeatGradient::startPoints
NSArray< NSNumber * > * startPoints
颜色变化节点，需为严格递增数组，区间为[0, 1.0]
定义 QHeatOverlay.h:30
QHeatOverlay
矢量热力图overlay，支持高度效果
定义 QHeatOverlay.h:49
QHeatOverlay::maxHeight
CGFloat maxHeight
热力图最大拔高高度. 单位 point. 默认20.
定义 QHeatOverlay.h:85
QHeatOverlay::gradient
QHeatGradient * gradient
热力图样式: 颜色梯度
定义 QHeatOverlay.h:79
QHeatOverlay::decayRadius
NSInteger decayRadius
热力图样式: 衰变半径. 单位 point
定义 QHeatOverlay.h:73
QHeatOverlay::enable3D
BOOL enable3D
是否支持拔高3D效果. 默认NO
定义 QHeatOverlay.h:98
QHeatOverlay::animation
QAnimation * animation
显示时的动画
定义 QHeatOverlay.h:104
QHeatOverlay::nodes
NSArray< id< QHeatNodeProtocol > > * nodes
热力图数据: 原始的节点数据. 数组每个元素符合 QHeatNodeProtocol 协议
定义 QHeatOverlay.h:66