\hypertarget{interface_b_m_k_polygon}{}\doxysection{B\+M\+K\+Polygon类 参考}
\label{interface_b_m_k_polygon}\index{BMKPolygon@{BMKPolygon}}


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




{\ttfamily \#import $<$B\+M\+K\+Polygon.\+h$>$}

类 B\+M\+K\+Polygon 继承关系图\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=5.000000cm]{interface_b_m_k_polygon}
\end{center}
\end{figure}
\doxysubsection*{构造函数}
\begin{DoxyCompactItemize}
\item 
(B\+O\+OL) -\/ \mbox{\hyperlink{interface_b_m_k_polygon_ad5688061d744b2d91cf99643baf25930}{set\+Polygon\+With\+Points\+:count\+:}}
\item 
(B\+O\+OL) -\/ \mbox{\hyperlink{interface_b_m_k_polygon_a1310be5dd01e5838222520fa63cdfe95}{set\+Polygon\+With\+Coordinates\+:count\+:}}
\end{DoxyCompactItemize}
\doxysubsection*{类方法}
\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}
\doxysubsection*{属性}
\begin{DoxyCompactItemize}
\item 
N\+S\+Array$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{B\+M\+K\+Overlay}} $>$ $>$ $\ast$ \mbox{\hyperlink{interface_b_m_k_polygon_a9a5dca088de8815f8729a1367cc9be3f}{hollow\+Shapes}}
\item 
\mbox{\hyperlink{_b_m_k_line_draw_type_8h_a0b59a2adc27823c38296bd0102876784}{B\+M\+K\+Coord\+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 
N\+S\+String $\ast$ \mbox{\hyperlink{interface_b_m_k_polygon_a616933717a0ce7b627ae3bf4d733060f}{encoded\+Geo\+Points}}
\begin{DoxyCompactList}\small\item\em 加密后的点信息 \end{DoxyCompactList}\item 
B\+M\+K\+Encode\+Point\+Type \mbox{\hyperlink{interface_b_m_k_polygon_aab745abb3288b1c1e71996cb059c663f}{encode\+Point\+Type}}
\end{DoxyCompactItemize}
\doxysubsection*{额外继承的成员函数}


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

\doxysubsection{函数文档}
\mbox{\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[{(C\+L\+Location\+Coordinate2D $\ast$)}]{coords }\item[{count\+:(N\+S\+U\+Integer)}]{count }\end{DoxyParamCaption}}

根据多个点生成多边形 
\begin{DoxyParams}{参数}
{\em coords} & 经纬度坐标点数组，这些点将被拷贝到生成的多边形对象中 \\
\hline
{\em count} & coords数组中点的个数 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
新生成的多边形对象 
\end{DoxyReturn}
\mbox{\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}{B\+M\+K\+Map\+Point}} $\ast$)}]{points }\item[{count\+:(N\+S\+U\+Integer)}]{count }\end{DoxyParamCaption}}

根据多个点生成多边形 
\begin{DoxyParams}{参数}
{\em points} & 直角坐标点数组，这些点将被拷贝到生成的多边形对象中 \\
\hline
{\em count} & points数组中点的个数 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
新生成的多边形对象 
\end{DoxyReturn}
\mbox{\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 -\/ (B\+O\+OL) set\+Polygon\+With\+Coordinates\+: \begin{DoxyParamCaption}\item[{(C\+L\+Location\+Coordinate2D $\ast$)}]{coords }\item[{count\+:(N\+S\+U\+Integer)}]{count }\end{DoxyParamCaption}}

重新设置多边形顶点 
\begin{DoxyParams}{参数}
{\em coords} & 指定的经纬度坐标点数组 \\
\hline
{\em count} & coords数组中坐标点的个数 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
是否设置成功 
\end{DoxyReturn}
\mbox{\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 -\/ (B\+O\+OL) set\+Polygon\+With\+Points\+: \begin{DoxyParamCaption}\item[{(\mbox{\hyperlink{struct_b_m_k_map_point}{B\+M\+K\+Map\+Point}} $\ast$)}]{points }\item[{count\+:(N\+S\+U\+Integer)}]{count }\end{DoxyParamCaption}}

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


\doxysubsection{属性说明}
\mbox{\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 -\/ (N\+S\+String$\ast$) encoded\+Geo\+Points\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [copy]}}



加密后的点信息 



由 category \mbox{\hyperlink{category_b_m_k_polygon_07_encoded_a_p_i_08_a616933717a0ce7b627ae3bf4d733060f}{B\+M\+K\+Polygon(\+Encoded\+A\+P\+I)}} 提供.

\mbox{\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 -\/ (B\+M\+K\+Encode\+Point\+Type) encode\+Point\+Type\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}

数据类型 since 6.\+6.\+0 默认：\+B\+M\+K\+Encode\+Point\+Type\+None 

由 category \mbox{\hyperlink{category_b_m_k_polygon_07_encoded_a_p_i_08_aab745abb3288b1c1e71996cb059c663f}{B\+M\+K\+Polygon(\+Encoded\+A\+P\+I)}} 提供.

\mbox{\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 -\/ (N\+S\+Array$<$id $<$\mbox{\hyperlink{protocol_b_m_k_overlay-p}{B\+M\+K\+Overlay}}$>$ $>$$\ast$) hollow\+Shapes\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [copy]}}

注意：polygon中的\+B\+M\+K\+Polgon类型镂空形状点应为逆时针 设置中空区域，用来创建中间带空洞的复杂图形。注意：传入的overlay只支持\+B\+M\+K\+Polgon类型和\+B\+M\+K\+Circle类型. since 5.\+0.\+0 \mbox{\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}{B\+M\+K\+Coord\+Algorithm}}) thin\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}

是否需要对\+B\+M\+K\+Polgon坐标数据进行抽稀算法处理，默认为k\+B\+M\+K\+Douglas\+Peucker since 6.\+6.\+4 \mbox{\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\+A\+P\+I\+\_\+\+Map.\+framework/\+Headers/\mbox{\hyperlink{_b_m_k_polygon_8h}{B\+M\+K\+Polygon.\+h}}\end{DoxyCompactItemize}
