BaiduMap_IOSSDK_v6.6.2_Docs 6.6.2
载入中...
搜索中...
未找到
属性 | 所有成员列表
BMKGradientCircleView类 参考

#include <BMKGradientCircleView.h>

类 BMKGradientCircleView 继承关系图:
BMKCircleView BMKGeometryView BMKOverlayGLBasicView BMKOverlayView

属性

UIColor * centerColor
 中心颜色
 
UIColor * sideColor
 边缘颜色
 
float radiusWeight
 
float colorWeight
 
- 属性 继承自 BMKCircleView
BMKCirclecircle
 该View对应的圆
 
BOOL isClickable
 是否可点击,默认NO
 
BOOL isHoleClickable
 镂空区域是否可点击,默认NO:点中镂空区域时不触发该overlay的点击回调
 
NSInteger holeClickedIndex
 isHoleClickable为YES时,触发回调的镂空索引值,默认-1:点中的是非镂空区域
 
- 属性 继承自 BMKGeometryView
UIColor * fillColor
 
UIColor * strokeColor
 
CGFloat lineWidth
 画笔宽度,默认为0
 
BMKLineDashType lineDashType
 虚线类型, since 5.0.0,默认kBMKLineDashTypeNone (仅支持颜色虚线)
 
- 属性 继承自 BMKOverlayGLBasicView
UIImage * textureImage
 
BOOL keepScale
 纹理图片是否缩放,默认NO
 
- 属性 继承自 BMKOverlayView
id< BMKOverlayoverlay
 关联的overlay对象
 
GLuint strokeTextureID
 关联的纹理对象ID
 

额外继承的成员函数

- 构造函数 继承自 BMKCircleView
(nullable instancetype) - initWithCircle:
 
- 构造函数 继承自 BMKOverlayGLBasicView
(CGPathRef path) - __deprecated_msg
 path对象
 
(BOOL lineDash) - __deprecated_msg
 是否为虚线样式,默认NO
 
(BOOL tileTexture) - __deprecated_msg
 是否纹理图片平铺绘制,默认NO
 
- 构造函数 继承自 BMKOverlayView
(nullable instancetype) - initWithOverlay:
 
(GLuint) - loadStrokeTextureImage:
 
(BOOL) - loadStrokeTextureImages:
 
(void) - setOverlayGeometryDelegate:
 设置该overlay的GeometryDelegate
 
(CGPoint) - pointForMapPoint:
 
(BMKMapPoint- mapPointForPoint:
 
(CGRect) - rectForMapRect:
 
(BMKMapRect- mapRectForRect:
 
(BOOL) - canDrawMapRect:zoomScale:
 
(void) - drawMapRect:zoomScale:inContext:
 
(void) - setNeedsDisplayInMapRect:
 
(void) - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:
 
(void) - renderTexturedLinesWithPoints:pointCount:lineWidth:textureID:looped:
 
(void) - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:lineDashType:
 
(void) - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:lineDash:
 
(void) - renderTexturedLinesWithPartPoints:lineWidth:textureIndexs:isFocus:
 
(void) - renderTexturedLinesWithPartPoints:lineWidth:textureIndexs:isFocus:tileTexture:keepScale:
 
(void) - renderTexturedLinesWithPoints:pointCount:lineWidth:textureID:strokeColor:looped:tileTexture:keepScale:
 
(void) - renderTexturedPolyLineWithPoints:lineWidth:textureID:strokeColor:isFoucs:keepScale:lineJoinType:lineCapType:
 
(void) - renderMultiTexturedPolyLineWithPartPoints:lineWidth:textureIndexs:isFoucs:keepScale:lineJoinType:lineCapType:
 
(void) - renderDashPolyLineWithPoints:lineWidth:strokeColor:lineDashType:
 
(void) - renderMultiDashPolyLineWithPartPoints:lineWidth:textureIndexs:lineDashType:
 
(void) - renderRegionWithPoints:pointCount:fillColor:usingTriangleFan:
 
(void) - renderATRegionWithPoint:pointCount:fillColor:usingTriangleFan:
 
(void) - rendeCircleWithPoints:pointCount:lineWidth:fillColor:strokeColor:
 
(void) - rendePolygonWithPoints:pointCount:lineWidth:fillColor:strokeColor:
 
(void) - glRender
 
- Protected 属性 继承自 BMKOverlayView
package id< BMKOverlay_overlay
 
BMKMapRect _boundingMapRect
 
CGAffineTransform _mapTransform
 
id _geometryDelegate
 
id _canDrawCache
 
BOOL keepScale
 
CFTimeInterval _lastTile
 
CFRunLoopTimerRef _scheduledScaleTimer
 
struct { 
 
   unsigned int   keepAlive:1 
 
   unsigned int   levelCrossFade:1 
 
   unsigned int   drawingDisabled:1 
 
   unsigned int   usesTiledLayer:1 
 
_flags 
 

详细描述

渐变规则如下: (0 ~ radiusWeight * radius) 该部分颜色从 centerColor 渐变至 centerColor + colorWeight * (sideColor - centerColor); (radiusWeight * radius ~ radius)该部分间颜色从 centerColor + colorWeight * (sideColor - centerColor) 渐变至 sideColor; 该类用于定义圆对应的渐变View since 6.5.4 注意:渐变圆不支持镂空及fillColor

属性说明

◆ centerColor

- (UIColor*) centerColor
readwritenonatomicstrong

中心颜色

◆ colorWeight

- (float) colorWeight
readwritenonatomicassign

颜色权重 取值范围(0.0, 1.0),默认 0.2

◆ radiusWeight

- (float) radiusWeight
readwritenonatomicassign

半径权重 取值范围(0.0, 1.0),默认 0.5

◆ sideColor

- (UIColor*) sideColor
readwritenonatomicstrong

边缘颜色


该类的文档由以下文件生成: