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

此类用于定义一个颜色渐变线View since 6.4.0 更多...

#include <BMKGradientLineView.h>

类 BMKGradientLineView 继承关系图:
BMKGeometryView BMKOverlayGLBasicView BMKOverlayView

构造函数

(nullable instancetype) - initWithGradientLine:
 
- 构造函数 继承自 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
 

属性

BMKGradientLinegradientLine
 该View对应的颜色渐变线数据对象
 
NSArray< UIColor * > * strokeColors
 渐变颜色数组
 
BOOL isClickable
 是否可点击,默认YES
 
BMKLineBloomMode lineBloomMode
 
CGFloat lineBloomWidth
 发光处宽度,默认 0.0f;since 6.5.7
 
CGFloat lineBloomAlpha
 发光处透明度,取值范围 [0 ~ 255],默认 255.0f;since 6.5.7
 
CGFloat lineBloomGradientASPeed
 
int lineBloomBlurTimes
 
- 属性 继承自 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
 

额外继承的成员函数

- 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 
 

详细描述

此类用于定义一个颜色渐变线View since 6.4.0

函数文档

◆ initWithGradientLine:

- (nullable instancetype) initWithGradientLine: (BMKGradientLine *) gradientLine

根据指定的颜色渐变线生成一个颜色渐变线View

参数
gradientLine指定的颜色渐变线数据对象
返回
新生成的颜色渐变线View

属性说明

◆ gradientLine

- (BMKGradientLine*) gradientLine
readnonatomicassign

该View对应的颜色渐变线数据对象

◆ isClickable

- (BOOL) isClickable
readwritenonatomicassign

是否可点击,默认YES

◆ lineBloomAlpha

- (CGFloat) lineBloomAlpha
readwritenonatomicassign

发光处透明度,取值范围 [0 ~ 255],默认 255.0f;since 6.5.7

◆ lineBloomBlurTimes

- (int) lineBloomBlurTimes
readwritenonatomicassign

模糊次数 since 6.5.7 取值范围 [1~10],默认值为 1 注意:模糊发光模式下该属性生效,since 6.5.9可以替代渐变发光模式的lineBloomGradientASPeed效果

◆ lineBloomGradientASPeed

- (CGFloat) lineBloomGradientASPeed
readwritenonatomicassign

透明度渐变速度 since 6.5.7 取值范围 [1.0f ~ 10.0f],默认值为 5.0f 注意:渐变发光模式下该属性生效,since 6.5.9暂不支持

◆ lineBloomMode

- (BMKLineBloomMode) lineBloomMode
readwritenonatomicassign

发光模式 since 6.5.7 默认不发光,kBMKLineBloomModeNone

◆ lineBloomWidth

- (CGFloat) lineBloomWidth
readwritenonatomicassign

发光处宽度,默认 0.0f;since 6.5.7

◆ strokeColors

- (NSArray<UIColor *>*) strokeColors
readwritenonatomiccopy

渐变颜色数组


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