\doxysection{BMKPolygon类 参考}
\hypertarget{interface_b_m_k_polygon}{}\label{interface_b_m_k_polygon}\index{BMKPolygon@{BMKPolygon}}


此类用于定义一个多边形区域  




{\ttfamily \#include $<$BMKPolygon.\+h$>$}

类 BMKPolygon 继承关系图\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=5.000000cm]{interface_b_m_k_polygon}
\end{center}
\end{figure}
\doxysubsubsection*{构造函数}
\begin{DoxyCompactItemize}
\item 
(BOOL) -\/ \mbox{\hyperlink{interface_b_m_k_polygon_ad5688061d744b2d91cf99643baf25930}{set\+Polygon\+With\+Points\+:count\+:}}
\item 
(BOOL) -\/ \mbox{\hyperlink{interface_b_m_k_polygon_a1310be5dd01e5838222520fa63cdfe95}{set\+Polygon\+With\+Coordinates\+:count\+:}}
\end{DoxyCompactItemize}
\doxysubsection*{构造函数 继承自 \mbox{\hyperlink{interface_b_m_k_multi_point}{BMKMulti\+Point}}}
\begin{DoxyCompactItemize}
\item 
(void) -\/ \mbox{\hyperlink{interface_b_m_k_multi_point_a5d7b000029db5c7efb2230ccb980bc29}{get\+Coordinates\+:range\+:}}
\end{DoxyCompactItemize}
\doxysubsection*{构造函数 继承自 \mbox{\hyperlink{protocol_b_m_k_annotation-p}{$<$\+BMKAnnotation$>$}}}
\begin{DoxyCompactItemize}
\item 
(NSString \texorpdfstring{$\ast$}{*}) -\/ \mbox{\hyperlink{protocol_b_m_k_annotation-p_a249e1b880f8ded8541a0fe59ef4abb12}{title}}
\begin{DoxyCompactList}\small\item\em 获取annotation标题 \end{DoxyCompactList}\item 
(NSString \texorpdfstring{$\ast$}{*}) -\/ \mbox{\hyperlink{protocol_b_m_k_annotation-p_a62aea71f4631251330e8a6fc3d3bdf11}{subtitle}}
\begin{DoxyCompactList}\small\item\em 获取annotation副标题 \end{DoxyCompactList}\item 
(void) -\/ \mbox{\hyperlink{protocol_b_m_k_annotation-p_a86db1788af78d273e1e155d3aa3d978f}{set\+Coordinate\+:}}
\end{DoxyCompactItemize}
\doxysubsection*{构造函数 继承自 \mbox{\hyperlink{protocol_b_m_k_overlay-p}{$<$\+BMKOverlay$>$}}}
\begin{DoxyCompactItemize}
\item 
(BOOL) -\/ \mbox{\hyperlink{protocol_b_m_k_overlay-p_ad89c522da656c2a977b87bdc1cc4bf21}{intersects\+Map\+Rect\+:}}
\end{DoxyCompactItemize}
\doxysubsubsection*{类方法}
\begin{DoxyCompactItemize}
\item 
(nullable instancetype) + \mbox{\hyperlink{interface_b_m_k_polygon_a6fa86c7080c9ef1d763e135fe5b4b855}{polygon\+With\+Points\+:count\+:}}
\item 
(nullable instancetype) + \mbox{\hyperlink{interface_b_m_k_polygon_aab1a6bac73e790f3d44a52504b8727c4}{polygon\+With\+Coordinates\+:count\+:}}
\end{DoxyCompactItemize}
\doxysubsubsection*{属性}
\begin{DoxyCompactItemize}
\item 
NSArray$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{BMKOverlay}} $>$ $>$ \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{interface_b_m_k_polygon_a9a5dca088de8815f8729a1367cc9be3f}{hollow\+Shapes}}
\item 
\mbox{\hyperlink{_b_m_k_line_draw_type_8h_a0b59a2adc27823c38296bd0102876784}{BMKCoord\+Algorithm}} \mbox{\hyperlink{interface_b_m_k_polygon_a9c612bdeaef4bee8a15ae595e1e248e5}{thin}}
\item 
float \mbox{\hyperlink{interface_b_m_k_polygon_ae63c3010a27b252e555d257e1d82a4d3}{thin\+Factor}}
\begin{DoxyCompactList}\small\item\em 抽稀算法系数，默认4，since 6.\+6.\+4 \end{DoxyCompactList}\item 
NSString \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{interface_b_m_k_polygon_a616933717a0ce7b627ae3bf4d733060f}{encoded\+Geo\+Points}}
\begin{DoxyCompactList}\small\item\em 加密后的点信息 \end{DoxyCompactList}\item 
BMKEncode\+Point\+Type \mbox{\hyperlink{interface_b_m_k_polygon_aab745abb3288b1c1e71996cb059c663f}{encode\+Point\+Type}}
\end{DoxyCompactItemize}
\doxysubsection*{属性 继承自 \mbox{\hyperlink{interface_b_m_k_multi_point}{BMKMulti\+Point}}}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{struct_b_m_k_map_point}{BMKMap\+Point}} \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{interface_b_m_k_multi_point_aa810056a59644284eb13fca968124e0c}{points}}
\begin{DoxyCompactList}\small\item\em 坐标点数组 \end{DoxyCompactList}\item 
NSUInteger \mbox{\hyperlink{interface_b_m_k_multi_point_a717b76bf8c1c25ce7ae11c959fb4af9f}{point\+Count}}
\begin{DoxyCompactList}\small\item\em 坐标点的个数 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{属性 继承自 \mbox{\hyperlink{interface_b_m_k_shape}{BMKShape}}}
\begin{DoxyCompactItemize}
\item 
NSString \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{interface_b_m_k_shape_a64da6d2885114c0c2da35aa1ffec925d}{title}}
\begin{DoxyCompactList}\small\item\em 要显示的标题；注意：如果不设置title,无法点击annotation,也无法使用回调函数； \end{DoxyCompactList}\item 
NSString \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{interface_b_m_k_shape_ae588ba39a27b52bcaed14d40e6494398}{subtitle}}
\begin{DoxyCompactList}\small\item\em 要显示的副标题 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{属性 继承自 \mbox{\hyperlink{protocol_b_m_k_annotation-p}{$<$\+BMKAnnotation$>$}}}
\begin{DoxyCompactItemize}
\item 
CLLocation\+Coordinate2D \mbox{\hyperlink{protocol_b_m_k_annotation-p_ab7ed7fd80fc518acf82cf0048490f9be}{coordinate}}
\begin{DoxyCompactList}\small\item\em 标注view中心坐标. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{属性 继承自 \mbox{\hyperlink{protocol_b_m_k_overlay-p}{$<$\+BMKOverlay$>$}}}
\begin{DoxyCompactItemize}
\item 
CLLocation\+Coordinate2D \mbox{\hyperlink{protocol_b_m_k_overlay-p_a7a10d9dde65c9611e3b5279179a9d480}{coordinate}}
\begin{DoxyCompactList}\small\item\em 返回区域中心坐标. \end{DoxyCompactList}\item 
\mbox{\hyperlink{struct_b_m_k_map_rect}{BMKMap\+Rect}} \mbox{\hyperlink{protocol_b_m_k_overlay-p_a77465daa9e52be51cc5aa15591ab74f0}{bounding\+Map\+Rect}}
\begin{DoxyCompactList}\small\item\em 返回区域外接矩形 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{额外继承的成员函数}
\doxysubsection*{Protected 属性 继承自 \mbox{\hyperlink{interface_b_m_k_multi_point}{BMKMulti\+Point}}}
\begin{DoxyCompactItemize}
\item 
package \mbox{\hyperlink{struct_b_m_k_map_point}{BMKMap\+Point}} \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{interface_b_m_k_multi_point_a736d72334fd2ca7ae2108d9692d1107c}{\+\_\+points}}
\item 
NSUInteger \mbox{\hyperlink{interface_b_m_k_multi_point_a8cc584110411ad5f72fc5068ae123a32}{\+\_\+point\+Count}}
\item 
\mbox{\hyperlink{struct_b_m_k_map_rect}{BMKMap\+Rect}} \mbox{\hyperlink{interface_b_m_k_multi_point_a25b2435a2c10b3a22f6e7dc5bd064a52}{\+\_\+bounding\+Rect}}
\end{DoxyCompactItemize}


\doxysubsection{详细描述}
此类用于定义一个多边形区域 

\doxysubsection{函数文档}
\Hypertarget{interface_b_m_k_polygon_aab1a6bac73e790f3d44a52504b8727c4}\label{interface_b_m_k_polygon_aab1a6bac73e790f3d44a52504b8727c4} 
\index{BMKPolygon@{BMKPolygon}!polygonWithCoordinates:count:@{polygonWithCoordinates:count:}}
\index{polygonWithCoordinates:count:@{polygonWithCoordinates:count:}!BMKPolygon@{BMKPolygon}}
\doxysubsubsection{\texorpdfstring{polygonWithCoordinates:count:}{polygonWithCoordinates:count:}}
{\footnotesize\ttfamily + (nullable instancetype) polygon\+With\+Coordinates\+: \begin{DoxyParamCaption}\item[{(CLLocation\+Coordinate2D \texorpdfstring{$\ast$}{*})}]{coords }\item[{count\+:(NSUInteger)}]{count }\end{DoxyParamCaption}}

根据多个点生成多边形 
\begin{DoxyParams}{参数}
{\em coords} & 经纬度坐标点数组，这些点将被拷贝到生成的多边形对象中 \\
\hline
{\em count} & coords数组中点的个数 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
新生成的多边形对象 
\end{DoxyReturn}
\Hypertarget{interface_b_m_k_polygon_a6fa86c7080c9ef1d763e135fe5b4b855}\label{interface_b_m_k_polygon_a6fa86c7080c9ef1d763e135fe5b4b855} 
\index{BMKPolygon@{BMKPolygon}!polygonWithPoints:count:@{polygonWithPoints:count:}}
\index{polygonWithPoints:count:@{polygonWithPoints:count:}!BMKPolygon@{BMKPolygon}}
\doxysubsubsection{\texorpdfstring{polygonWithPoints:count:}{polygonWithPoints:count:}}
{\footnotesize\ttfamily + (nullable instancetype) polygon\+With\+Points\+: \begin{DoxyParamCaption}\item[{(\mbox{\hyperlink{struct_b_m_k_map_point}{BMKMap\+Point}} \texorpdfstring{$\ast$}{*})}]{points }\item[{count\+:(NSUInteger)}]{count }\end{DoxyParamCaption}}

根据多个点生成多边形 
\begin{DoxyParams}{参数}
{\em points} & 直角坐标点数组，这些点将被拷贝到生成的多边形对象中 \\
\hline
{\em count} & points数组中点的个数 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
新生成的多边形对象 
\end{DoxyReturn}
\Hypertarget{interface_b_m_k_polygon_a1310be5dd01e5838222520fa63cdfe95}\label{interface_b_m_k_polygon_a1310be5dd01e5838222520fa63cdfe95} 
\index{BMKPolygon@{BMKPolygon}!setPolygonWithCoordinates:count:@{setPolygonWithCoordinates:count:}}
\index{setPolygonWithCoordinates:count:@{setPolygonWithCoordinates:count:}!BMKPolygon@{BMKPolygon}}
\doxysubsubsection{\texorpdfstring{setPolygonWithCoordinates:count:}{setPolygonWithCoordinates:count:}}
{\footnotesize\ttfamily -\/ (BOOL) set\+Polygon\+With\+Coordinates\+: \begin{DoxyParamCaption}\item[{(CLLocation\+Coordinate2D \texorpdfstring{$\ast$}{*})}]{coords }\item[{count\+:(NSUInteger)}]{count }\end{DoxyParamCaption}}

重新设置多边形顶点 
\begin{DoxyParams}{参数}
{\em coords} & 指定的经纬度坐标点数组 \\
\hline
{\em count} & coords数组中坐标点的个数 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
是否设置成功 
\end{DoxyReturn}
\Hypertarget{interface_b_m_k_polygon_ad5688061d744b2d91cf99643baf25930}\label{interface_b_m_k_polygon_ad5688061d744b2d91cf99643baf25930} 
\index{BMKPolygon@{BMKPolygon}!setPolygonWithPoints:count:@{setPolygonWithPoints:count:}}
\index{setPolygonWithPoints:count:@{setPolygonWithPoints:count:}!BMKPolygon@{BMKPolygon}}
\doxysubsubsection{\texorpdfstring{setPolygonWithPoints:count:}{setPolygonWithPoints:count:}}
{\footnotesize\ttfamily -\/ (BOOL) set\+Polygon\+With\+Points\+: \begin{DoxyParamCaption}\item[{(\mbox{\hyperlink{struct_b_m_k_map_point}{BMKMap\+Point}} \texorpdfstring{$\ast$}{*})}]{points }\item[{count\+:(NSUInteger)}]{count }\end{DoxyParamCaption}}

重新设置多边形顶点 
\begin{DoxyParams}{参数}
{\em points} & 指定的直角坐标点数组 \\
\hline
{\em count} & points数组中坐标点的个数 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
是否设置成功 
\end{DoxyReturn}


\doxysubsection{属性说明}
\Hypertarget{interface_b_m_k_polygon_a616933717a0ce7b627ae3bf4d733060f}\label{interface_b_m_k_polygon_a616933717a0ce7b627ae3bf4d733060f} 
\index{BMKPolygon@{BMKPolygon}!encodedGeoPoints@{encodedGeoPoints}}
\index{encodedGeoPoints@{encodedGeoPoints}!BMKPolygon@{BMKPolygon}}
\doxysubsubsection{\texorpdfstring{encodedGeoPoints}{encodedGeoPoints}}
{\footnotesize\ttfamily -\/ (NSString\texorpdfstring{$\ast$}{*}) encoded\+Geo\+Points\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [copy]}}



加密后的点信息 



由 category \mbox{\hyperlink{interface_b_m_k_polygon_a616933717a0ce7b627ae3bf4d733060f}{BMKPolygon(\+Encoded\+API)}} 提供.

\Hypertarget{interface_b_m_k_polygon_aab745abb3288b1c1e71996cb059c663f}\label{interface_b_m_k_polygon_aab745abb3288b1c1e71996cb059c663f} 
\index{BMKPolygon@{BMKPolygon}!encodePointType@{encodePointType}}
\index{encodePointType@{encodePointType}!BMKPolygon@{BMKPolygon}}
\doxysubsubsection{\texorpdfstring{encodePointType}{encodePointType}}
{\footnotesize\ttfamily -\/ (BMKEncode\+Point\+Type) encode\+Point\+Type\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}

数据类型 since 6.\+6.\+0 默认：\+BMKEncode\+Point\+Type\+None 

由 category \mbox{\hyperlink{interface_b_m_k_polygon_aab745abb3288b1c1e71996cb059c663f}{BMKPolygon(\+Encoded\+API)}} 提供.

\Hypertarget{interface_b_m_k_polygon_a9a5dca088de8815f8729a1367cc9be3f}\label{interface_b_m_k_polygon_a9a5dca088de8815f8729a1367cc9be3f} 
\index{BMKPolygon@{BMKPolygon}!hollowShapes@{hollowShapes}}
\index{hollowShapes@{hollowShapes}!BMKPolygon@{BMKPolygon}}
\doxysubsubsection{\texorpdfstring{hollowShapes}{hollowShapes}}
{\footnotesize\ttfamily -\/ (NSArray$<$id $<$\mbox{\hyperlink{protocol_b_m_k_overlay-p}{BMKOverlay}}$>$ $>$\texorpdfstring{$\ast$}{*}) hollow\+Shapes\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [copy]}}

注意：polygon中的\+BMKPolgon类型镂空形状点应为逆时针 设置中空区域，用来创建中间带空洞的复杂图形。注意：传入的overlay只支持\+BMKPolgon类型和\+BMKCircle类型. since 5.\+0.\+0 \Hypertarget{interface_b_m_k_polygon_a9c612bdeaef4bee8a15ae595e1e248e5}\label{interface_b_m_k_polygon_a9c612bdeaef4bee8a15ae595e1e248e5} 
\index{BMKPolygon@{BMKPolygon}!thin@{thin}}
\index{thin@{thin}!BMKPolygon@{BMKPolygon}}
\doxysubsubsection{\texorpdfstring{thin}{thin}}
{\footnotesize\ttfamily -\/ (\mbox{\hyperlink{_b_m_k_line_draw_type_8h_a0b59a2adc27823c38296bd0102876784}{BMKCoord\+Algorithm}}) thin\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}

是否需要对\+BMKPolgon坐标数据进行抽稀算法处理，默认为k\+BMKDouglas\+Peucker since 6.\+6.\+4 \Hypertarget{interface_b_m_k_polygon_ae63c3010a27b252e555d257e1d82a4d3}\label{interface_b_m_k_polygon_ae63c3010a27b252e555d257e1d82a4d3} 
\index{BMKPolygon@{BMKPolygon}!thinFactor@{thinFactor}}
\index{thinFactor@{thinFactor}!BMKPolygon@{BMKPolygon}}
\doxysubsubsection{\texorpdfstring{thinFactor}{thinFactor}}
{\footnotesize\ttfamily -\/ (float) thin\+Factor\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



抽稀算法系数，默认4，since 6.\+6.\+4 



该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
Baidu\+Map\+API\+\_\+\+Map.\+framework/\+Headers/\mbox{\hyperlink{_b_m_k_polygon_8h}{BMKPolygon.\+h}}\end{DoxyCompactItemize}
