\hypertarget{interface_b_m_k_gradient_line}{}\doxysection{B\+M\+K\+Gradient\+Line类 参考}
\label{interface_b_m_k_gradient_line}\index{BMKGradientLine@{BMKGradientLine}}


此类用于定义一个颜色渐变线 since 6.\+4.\+0  




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

类 B\+M\+K\+Gradient\+Line 继承关系图\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=7.000000cm]{interface_b_m_k_gradient_line}
\end{center}
\end{figure}
\doxysubsection*{构造函数}
\begin{DoxyCompactItemize}
\item 
(B\+O\+OL) -\/ \mbox{\hyperlink{interface_b_m_k_gradient_line_a5e8f70c6e10894db7651c8e96dbb0144}{set\+Gradient\+Line\+With\+Points\+:count\+:draw\+Indexs\+:}}
\item 
(B\+O\+OL) -\/ \mbox{\hyperlink{interface_b_m_k_gradient_line_ab4c0b9b0ef691f7bb4281f8612b17a33}{set\+Gradient\+Line\+With\+Coordinates\+:count\+:draw\+Indexs\+:}}
\end{DoxyCompactItemize}
\doxysubsection*{类方法}
\begin{DoxyCompactItemize}
\item 
(nullable instancetype) + \mbox{\hyperlink{interface_b_m_k_gradient_line_a3ebf44fde17dd9fc6533ce25309ac257}{gradient\+Line\+With\+Points\+:count\+:draw\+Indexs\+:}}
\item 
(nullable instancetype) + \mbox{\hyperlink{interface_b_m_k_gradient_line_a9b09da7cbe2e1238c972e4b028f1b887}{gradient\+Line\+With\+Coordinates\+:count\+:draw\+Indexs\+:}}
\end{DoxyCompactItemize}
\doxysubsection*{额外继承的成员函数}


\doxysubsection{详细描述}
此类用于定义一个颜色渐变线 since 6.\+4.\+0 

\doxysubsection{函数文档}
\mbox{\Hypertarget{interface_b_m_k_gradient_line_a9b09da7cbe2e1238c972e4b028f1b887}\label{interface_b_m_k_gradient_line_a9b09da7cbe2e1238c972e4b028f1b887}} 
\index{BMKGradientLine@{BMKGradientLine}!gradientLineWithCoordinates:count:drawIndexs:@{gradientLineWithCoordinates:count:drawIndexs:}}
\index{gradientLineWithCoordinates:count:drawIndexs:@{gradientLineWithCoordinates:count:drawIndexs:}!BMKGradientLine@{BMKGradientLine}}
\doxysubsubsection{\texorpdfstring{gradientLineWithCoordinates:count:drawIndexs:}{gradientLineWithCoordinates:count:drawIndexs:}}
{\footnotesize\ttfamily + (nullable instancetype) gradient\+Line\+With\+Coordinates\+: \begin{DoxyParamCaption}\item[{(C\+L\+Location\+Coordinate2D $\ast$)}]{coords }\item[{count\+:(N\+S\+U\+Integer)}]{count }\item[{draw\+Indexs\+:(gradient(coordinates\+:count\+:draw\+Indexs\+:))}]{N\+S\+\_\+\+S\+W\+I\+F\+T\+\_\+\+N\+A\+ME }\end{DoxyParamCaption}}

根据指定坐标点生成一段颜色渐变线 分段颜色绘制：其对应的\+B\+M\+K\+Gradient\+Line\+View必须设置stroke\+Colors属性 
\begin{DoxyParams}{参数}
{\em coords} & 指定的经纬度坐标点数组 \\
\hline
{\em count} & coords数组中坐标点的个数 \\
\hline
{\em draw\+Indexs} & 颜色索引数组，成员为\+N\+S\+Number,且为非负数，负数按0处理 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
新生成的颜色渐变线对象 
\end{DoxyReturn}
\mbox{\Hypertarget{interface_b_m_k_gradient_line_a3ebf44fde17dd9fc6533ce25309ac257}\label{interface_b_m_k_gradient_line_a3ebf44fde17dd9fc6533ce25309ac257}} 
\index{BMKGradientLine@{BMKGradientLine}!gradientLineWithPoints:count:drawIndexs:@{gradientLineWithPoints:count:drawIndexs:}}
\index{gradientLineWithPoints:count:drawIndexs:@{gradientLineWithPoints:count:drawIndexs:}!BMKGradientLine@{BMKGradientLine}}
\doxysubsubsection{\texorpdfstring{gradientLineWithPoints:count:drawIndexs:}{gradientLineWithPoints:count:drawIndexs:}}
{\footnotesize\ttfamily + (nullable instancetype) gradient\+Line\+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 }\item[{draw\+Indexs\+:(gradient(potins\+:count\+:draw\+Indexs\+:))}]{N\+S\+\_\+\+S\+W\+I\+F\+T\+\_\+\+N\+A\+ME }\end{DoxyParamCaption}}

分段颜色绘制，根据指定坐标点生成一段颜色渐变线 分段颜色绘制：其对应的\+B\+M\+K\+Gradient\+Line\+View必须设置stroke\+Colors属性 
\begin{DoxyParams}{参数}
{\em points} & 指定的直角坐标点数组 \\
\hline
{\em count} & points数组中坐标点的个数 \\
\hline
{\em draw\+Indexs} & 颜色索引数组，成员为\+N\+S\+Number,且为非负数，负数按0处理 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
新生成的颜色渐变线对象 
\end{DoxyReturn}
\mbox{\Hypertarget{interface_b_m_k_gradient_line_ab4c0b9b0ef691f7bb4281f8612b17a33}\label{interface_b_m_k_gradient_line_ab4c0b9b0ef691f7bb4281f8612b17a33}} 
\index{BMKGradientLine@{BMKGradientLine}!setGradientLineWithCoordinates:count:drawIndexs:@{setGradientLineWithCoordinates:count:drawIndexs:}}
\index{setGradientLineWithCoordinates:count:drawIndexs:@{setGradientLineWithCoordinates:count:drawIndexs:}!BMKGradientLine@{BMKGradientLine}}
\doxysubsubsection{\texorpdfstring{setGradientLineWithCoordinates:count:drawIndexs:}{setGradientLineWithCoordinates:count:drawIndexs:}}
{\footnotesize\ttfamily -\/ (B\+O\+OL) set\+Gradient\+Line\+With\+Coordinates\+: \begin{DoxyParamCaption}\item[{(C\+L\+Location\+Coordinate2D $\ast$)}]{coords }\item[{count\+:(N\+S\+U\+Integer)}]{count }\item[{draw\+Indexs\+:(N\+S\+Array$<$ N\+S\+Number $\ast$ $>$ $\ast$)}]{draw\+Indexs }\end{DoxyParamCaption}}

重新设置颜色渐变线坐标点 
\begin{DoxyParams}{参数}
{\em coords} & 指定的经纬度坐标点数组 \\
\hline
{\em count} & coords数组中坐标点的个数 \\
\hline
{\em draw\+Indexs} & 颜色索引数组，成员为\+N\+S\+Number,且为非负数，负数按0处理 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
是否设置成功 
\end{DoxyReturn}
\mbox{\Hypertarget{interface_b_m_k_gradient_line_a5e8f70c6e10894db7651c8e96dbb0144}\label{interface_b_m_k_gradient_line_a5e8f70c6e10894db7651c8e96dbb0144}} 
\index{BMKGradientLine@{BMKGradientLine}!setGradientLineWithPoints:count:drawIndexs:@{setGradientLineWithPoints:count:drawIndexs:}}
\index{setGradientLineWithPoints:count:drawIndexs:@{setGradientLineWithPoints:count:drawIndexs:}!BMKGradientLine@{BMKGradientLine}}
\doxysubsubsection{\texorpdfstring{setGradientLineWithPoints:count:drawIndexs:}{setGradientLineWithPoints:count:drawIndexs:}}
{\footnotesize\ttfamily -\/ (B\+O\+OL) set\+Gradient\+Line\+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 }\item[{draw\+Indexs\+:(N\+S\+Array$<$ N\+S\+Number $\ast$ $>$ $\ast$)}]{draw\+Indexs }\end{DoxyParamCaption}}

重新设置颜色渐变线坐标点 
\begin{DoxyParams}{参数}
{\em points} & 指定的直角坐标点数组 \\
\hline
{\em count} & points数组中坐标点的个数 \\
\hline
{\em draw\+Indexs} & 颜色索引数组，成员为\+N\+S\+Number,且为非负数，负数按0处理 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
是否设置成功 
\end{DoxyReturn}


该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
Baidu\+Map\+A\+P\+I\+\_\+\+Map.\+framework/\+Headers/\mbox{\hyperlink{_b_m_k_gradient_line_8h}{B\+M\+K\+Gradient\+Line.\+h}}\end{DoxyCompactItemize}
