立得地图iOS SDK 地图&搜索服务参考手册 V1.7.0
构造函数 | 属性 | 所有成员列表
LMKPolygonView类 参考

此类是LMKPolygon的显示多边形view,可以通过LMKOverlayPathView修改其fill和stroke attributes 更多...

#import <LMKPolygonView.h>

类 LMKPolygonView 继承关系图:
LMKOverlayPathView LMKOverlayView

构造函数

(id)  - initWithPolygon:
  根据指定的多边形生成一个多边形View 更多...
 
- 构造函数 继承自 LMKOverlayView
(id)  - initWithOverlay:
  初始化并返回一个overlay view 更多...
 
(CGPoint)  - pointForMapPoint:
  将LMKMapPoint转化为相对于receiver的本地坐标 更多...
 
(LMKMapPoint - mapPointForPoint:
  将相对于receiver的本地坐标转化为LMKMapPoint 更多...
 
(CGRect)  - rectForMapRect:
  将LMKMapRect转化为相对于receiver的本地rect 更多...
 
(LMKMapRect - mapRectForRect:
  将相对于receiver的本地rect转化为LMKMapRect 更多...
 
(void)  - drawMapRect:zoomScale:inContext:
  绘制overlay view的内容 更多...
 
(int *)  - g20PointsForMapPoints:count:
  批量将LMKMapPoint转换为opengles可以直接使用的坐标 更多...
 
(CGFloat)  - glWidthForWindowWidth:
  将屏幕尺寸转换为OpenGLES尺寸 更多...
 
(void)  - referenceDidChange
  OpenGLES坐标系发生改变, 重新计算缓存的OpenGLES坐标 更多...
 
(void)  - renderRegionWithPoints:pointCount:fillColor:usingTriangleFan:
  使用OpenGLES 绘制区域 更多...
 
(void)  - renderIconWithTextureID:points:
  使用OpenGLES 绘制图片 更多...
 
(void)  - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:
  使用OpenGLES 绘制线 更多...
 
(void)  - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:LineJoinType:LineCapType:lineDash:
 
(void)  - renderLinesWithPoints:pointCount:strokeColor:lineWidth:lineTextureID:texLen:looped:complex:
 
(void)  - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:lineDash:complex:
 
(void)  - glRender
  绘制函数(子类需要重载来实现) 更多...
 
(GLuint)  - loadStrokeTextureImage:
 

属性

LMKPolygon polygon
  关联的LMKPolygon model 更多...
 
- 属性 继承自 LMKOverlayPathView
UIColor *  fillColor
  填充颜色,默认是kLMKOverlayViewDefaultFillColor 更多...
 
UIColor *  strokeColor
  笔触颜色,默认是kLMKOverlayViewDefaultStrokeColor 更多...
 
CGFloat  lineWidth
  笔触宽度,默认是0 更多...
 
LMKLineJoinType  lineJoinType
  LineJoin,默认是kLMKLineJoinBevel. 更多...
 
LMKLineCapType  lineCapType
  LineCap,默认是kLMKLineCapButt. 更多...
 
CGFloat  miterLimit
  MiterLimit,默认是10.f. 更多...
 
BOOL  lineDash
  是否绘制成虚线, 默认是NO 更多...
 
- 属性 继承自 LMKOverlayView
id< LMKOverlay overlay
  关联的overlay对象 更多...
 
int *  g20MapPoints
  缓存的G20坐标 更多...
 
NSUInteger  g20MapPointCount
  缓存的G20坐标 个数 更多...
 
GLuint  strokeTextureID
  笔触纹理id 修改纹理id参考 - (GLuint)loadStrokeTextureImage:textureImage; 更多...
 

详细描述

此类是LMKPolygon的显示多边形view,可以通过LMKOverlayPathView修改其fill和stroke attributes

函数文档

- (id) initWithPolygon: (LMKPolygon *)  polygon

根据指定的多边形生成一个多边形View

参数
polygon 指定的多边形数据对象
返回
新生成的多边形View

属性说明

- (LMKPolygon*) polygon
readnonatomicassign

关联的LMKPolygon model


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