\doxysection{BMKMap\+Animation.\+h}
\hypertarget{_b_m_k_map_animation_8h_source}{}\label{_b_m_k_map_animation_8h_source}\index{BaiduMapAPI\_Map.framework/Headers/BMKMapAnimation.h@{BaiduMapAPI\_Map.framework/Headers/BMKMapAnimation.h}}
\mbox{\hyperlink{_b_m_k_map_animation_8h}{浏览该文件的文档.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{//}}
\DoxyCodeLine{00002\ \textcolor{comment}{//\ \ BMKMapAnimation.h}}
\DoxyCodeLine{00003\ \textcolor{comment}{//\ \ MapComponent}}
\DoxyCodeLine{00004\ \textcolor{comment}{//}}
\DoxyCodeLine{00005\ \textcolor{comment}{//\ \ Created\ by\ zhaoxiangru\ on\ 2024/3/12.}}
\DoxyCodeLine{00006\ \textcolor{comment}{//\ \ Copyright\ ©\ 2024\ Baidu.\ All\ rights\ reserved.}}
\DoxyCodeLine{00007\ \textcolor{comment}{//}}
\DoxyCodeLine{00008\ }
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#import\ <Foundation/Foundation.h>}}
\DoxyCodeLine{00010\ \textcolor{preprocessor}{\#import\ <CoreLocation/CLLocation.h>}}
\DoxyCodeLine{00011\ \textcolor{preprocessor}{\#import\ "{}\mbox{\hyperlink{_b_m_k_interpolator_8h}{BMKInterpolator.h}}"{}}}
\DoxyCodeLine{00012\ \textcolor{preprocessor}{\#import\ "{}\mbox{\hyperlink{_b_m_k_polyline_8h}{BMKPolyline.h}}"{}}}
\DoxyCodeLine{00013\ }
\DoxyCodeLine{00014\ NS\_ASSUME\_NONNULL\_BEGIN}
\DoxyCodeLine{00015\ \textcolor{keyword}{@class}\ \mbox{\hyperlink{interface_b_m_k_map_animation}{BMKMapAnimation}};}
\DoxyCodeLine{00016\ \textcolor{keyword}{typedef}\ enum\ :\ NSUInteger\ \{}
\DoxyCodeLine{00020\ \ \ \ \ \mbox{\hyperlink{_b_m_k_map_animation_8h_aa63b017e4395b9f45e433f407125891ba5b7fcf80e3c30dbc910083f563740d5e}{BMKAnimationFillBefore}}\ =\ 0,}
\DoxyCodeLine{00024\ \ \ \ \ \mbox{\hyperlink{_b_m_k_map_animation_8h_aa63b017e4395b9f45e433f407125891baff85f7a69257565fe8028589bf9c288c}{BMKAnimationFillFirst}}\ \ =\ 1,}
\DoxyCodeLine{00028\ \ \ \ \ \mbox{\hyperlink{_b_m_k_map_animation_8h_aa63b017e4395b9f45e433f407125891ba7b11cc90c26b63a394981729fad56448}{BMKAnimationFillAfter}}\ \ =\ 2,\ \textcolor{comment}{//\ @Default}}
\DoxyCodeLine{00029\ \}\ \mbox{\hyperlink{_b_m_k_map_animation_8h_aa63b017e4395b9f45e433f407125891b}{BMKAnimationFillMode}};}
\DoxyCodeLine{00030\ }
\DoxyCodeLine{00031\ \textcolor{keyword}{typedef}\ enum\ :\ NSInteger\ \{}
\DoxyCodeLine{00037\ \ \ \ \ \mbox{\hyperlink{_b_m_k_map_animation_8h_aa2956181be6e24fc7e1acfc4f3cfb101ad9ce16b3c4a49de0d31b9e7ac4239043}{BMKAnimationRepeatRestart}}\ \ =\ 1,}
\DoxyCodeLine{00042\ \ \ \ \ \mbox{\hyperlink{_b_m_k_map_animation_8h_aa2956181be6e24fc7e1acfc4f3cfb101ae6aa46dcbb6f492b36e3d53bc4b73264}{BMKAnimationReleatReserse}}\ \ =\ 2,}
\DoxyCodeLine{00043\ \}\ \mbox{\hyperlink{_b_m_k_map_animation_8h_aa2956181be6e24fc7e1acfc4f3cfb101}{BMKAnimationRepeatMode}};}
\DoxyCodeLine{00047\ \textcolor{keyword}{typedef}\ enum\ :\ NSUInteger\ \{}
\DoxyCodeLine{00048\ \ \ \ \ \mbox{\hyperlink{_b_m_k_map_animation_8h_a8650b06d1042a1bb625635a5854d00f3ab561779346ee2d76f71253274d4b4a6d}{BMKAnimationStatusStart}}\ \ =\ 1,\ \ \ }
\DoxyCodeLine{00049\ \ \ \ \ \mbox{\hyperlink{_b_m_k_map_animation_8h_a8650b06d1042a1bb625635a5854d00f3a9d18ce7d0e9264ef61e59b1967b03e01}{BMKAnimationStatusEnd}}\ \ \ \ =\ 2,\ \ \ }
\DoxyCodeLine{00050\ \ \ \ \ \mbox{\hyperlink{_b_m_k_map_animation_8h_a8650b06d1042a1bb625635a5854d00f3a4d07861afe1a389bde0c7fd01127fe70}{BMKAnimationRepeat}}\ \ \ \ \ \ \ =\ 3,\ \ \ }
\DoxyCodeLine{00051\ \}\ \mbox{\hyperlink{_b_m_k_map_animation_8h_a8650b06d1042a1bb625635a5854d00f3}{BMKAnimationStatus}};}
\DoxyCodeLine{00052\ }
\DoxyCodeLine{00056\ \textcolor{keyword}{typedef}\ enum\ :\ NSUInteger\ \{}
\DoxyCodeLine{00057\ \ \ \ \ \mbox{\hyperlink{_b_m_k_map_animation_8h_a3a0c71ac5009f270077356b22a66552ea0f7ffe6d6df88432e416839a8629d317}{BMKAnimationSetOrderTypeWith}}\ \ =\ 0,\ \ \ }
\DoxyCodeLine{00058\ \ \ \ \ \mbox{\hyperlink{_b_m_k_map_animation_8h_a3a0c71ac5009f270077356b22a66552eac15ec6b3b875ed609133312e88e6cfc4}{BMKAnimationSetOrderTypeThen}}\ \ \ \ =\ 1,\ \ \ }
\DoxyCodeLine{00059\ \}\ \mbox{\hyperlink{_b_m_k_map_animation_8h_a3a0c71ac5009f270077356b22a66552e}{BMKAnimationSetOrderType}};}
\DoxyCodeLine{00060\ }
\DoxyCodeLine{00061\ }
\DoxyCodeLine{00063\ \textcolor{keyword}{@protocol\ }BMKMapAnimationDelegate\ <NSObject>}
\DoxyCodeLine{00064\ }
\DoxyCodeLine{00065\ -\/\ (void)animation:(\mbox{\hyperlink{interface_b_m_k_map_animation}{BMKMapAnimation}}\ *)animation\ status:(\mbox{\hyperlink{_b_m_k_map_animation_8h_a8650b06d1042a1bb625635a5854d00f3}{BMKAnimationStatus}})st;}
\DoxyCodeLine{00066\ }
\DoxyCodeLine{00067\ \textcolor{keyword}{@end}}
\DoxyCodeLine{00068\ }
\DoxyCodeLine{00069\ \textcolor{keyword}{@interface\ }\mbox{\hyperlink{interface_b_m_k_map_animation}{BMKMapAnimation}}\ :\ NSObject}
\DoxyCodeLine{00071\ \textcolor{keyword}{@property}(nonatomic,\ assign)\ \mbox{\hyperlink{_b_m_k_map_animation_8h_aa63b017e4395b9f45e433f407125891b}{BMKAnimationFillMode}}\ \ \ \mbox{\hyperlink{interface_b_m_k_map_animation_ac20140240bbddb8677abb8671ff2ee02}{fillMode}};}
\DoxyCodeLine{00073\ \textcolor{keyword}{@property}(nonatomic,\ assign)\ \mbox{\hyperlink{_b_m_k_map_animation_8h_aa2956181be6e24fc7e1acfc4f3cfb101}{BMKAnimationRepeatMode}}\ \mbox{\hyperlink{interface_b_m_k_map_animation_afd9715202abddf964f0c5e2c6a646d24}{repeatMode}};}
\DoxyCodeLine{00074\ \textcolor{keyword}{@property}\ (nonatomic,\ strong)\ NSString\ *\mbox{\hyperlink{interface_b_m_k_map_animation_a2adb0b08809783cb6aed8cd9c1039c85}{extParam}};\ \ \ \ \ \ \ \textcolor{comment}{//\ 给端上做透传的参数，引擎不处理}}
\DoxyCodeLine{00075\ }
\DoxyCodeLine{00077\ \textcolor{keyword}{@property}(nonatomic,\ assign)\ NSInteger\ \mbox{\hyperlink{interface_b_m_k_map_animation_ad2ff36d8aa6992f36ff7097a25fb5c93}{startDelay}};}
\DoxyCodeLine{00078\ \textcolor{keyword}{@property}(nonatomic,\ assign)\ NSInteger\ \mbox{\hyperlink{interface_b_m_k_map_animation_a2d05111c2b169a88691d955e6a45b964}{startTime}};}
\DoxyCodeLine{00079\ \textcolor{keyword}{@property}(nonatomic,\ assign)\ NSInteger\ \mbox{\hyperlink{interface_b_m_k_map_animation_a50eb73727170d1b0b687dc2a85321cf1}{duration}};}
\DoxyCodeLine{00081\ \textcolor{keyword}{@property}(nonatomic,\ assign)\ NSInteger\ \mbox{\hyperlink{interface_b_m_k_map_animation_ac3a79988cd05128991a58e991a249516}{repeatCount}};}
\DoxyCodeLine{00082\ \textcolor{keyword}{@property}(nonatomic,\ weak)\ \ \ id<BMKMapAnimationDelegate>\ \mbox{\hyperlink{interface_b_m_k_map_animation_a626f7f5080aba834a04625bdce70464c}{delegate}};}
\DoxyCodeLine{00083\ \textcolor{keyword}{@property}(nonatomic,\ strong)\ \mbox{\hyperlink{interface_b_m_k_interpolator}{BMKInterpolator}}\ *\mbox{\hyperlink{interface_b_m_k_map_animation_a21a3e67f7042321eb49b8c67ac6ae56f}{interpolator}};}
\DoxyCodeLine{00084\ }
\DoxyCodeLine{00085\ \textcolor{keyword}{@property}(nonatomic,\ readonly)\ BOOL\ \mbox{\hyperlink{interface_b_m_k_map_animation_abd7a190d521be71d35ccdf6f52de2c92}{isStarted}};}
\DoxyCodeLine{00086\ \textcolor{keyword}{@property}(nonatomic,\ readonly)\ BOOL\ \mbox{\hyperlink{interface_b_m_k_map_animation_afd3f24b7569701b239fe6e3531c80856}{isComplete}};}
\DoxyCodeLine{00087\ }
\DoxyCodeLine{00088\ -\/\ (BOOL)\mbox{\hyperlink{interface_b_m_k_map_animation_a8a9706f28f811c851fe38c2d9319cc08}{reset}};}
\DoxyCodeLine{00089\ }
\DoxyCodeLine{00090\ -\/\ (BOOL)\mbox{\hyperlink{interface_b_m_k_map_animation_ad8cedea839d4beda027fb7b3f7f5989b}{pause}};}
\DoxyCodeLine{00091\ }
\DoxyCodeLine{00092\ -\/\ (BOOL)\mbox{\hyperlink{interface_b_m_k_map_animation_a3517be4afb6f5fc832d7bd73f6937f4b}{resume}};}
\DoxyCodeLine{00093\ }
\DoxyCodeLine{00094\ -\/\ (BOOL)\mbox{\hyperlink{interface_b_m_k_map_animation_a4526a4a8df8129cb25d8e6ca75bc6d00}{cancel}};}
\DoxyCodeLine{00095\ }
\DoxyCodeLine{00096\ -\/\ (BOOL)\mbox{\hyperlink{interface_b_m_k_map_animation_a6201ceea4fb9e3c0cad18436d475541f}{start}};}
\DoxyCodeLine{00097\ \textcolor{keyword}{@end}}
\DoxyCodeLine{00098\ }
\DoxyCodeLine{00099\ \textcolor{keyword}{@interface\ }\mbox{\hyperlink{interface_b_m_k_map_alpha_animation}{BMKMapAlphaAnimation}}\ :\ \mbox{\hyperlink{interface_b_m_k_map_animation}{BMKMapAnimation}}}
\DoxyCodeLine{00100\ \textcolor{keyword}{@property}(nonatomic,\ readonly)\ \textcolor{keywordtype}{float}\ fromAlpha;}
\DoxyCodeLine{00101\ \textcolor{keyword}{@property}(nonatomic,\ readonly)\ \textcolor{keywordtype}{float}\ toAlpha;}
\DoxyCodeLine{00102\ }
\DoxyCodeLine{00103\ -\/\ (instancetype)initWithFromAlpha:(\textcolor{keywordtype}{float})from\ to:(\textcolor{keywordtype}{float})to;}
\DoxyCodeLine{00104\ \textcolor{keyword}{@end}}
\DoxyCodeLine{00105\ }
\DoxyCodeLine{00106\ \textcolor{keyword}{@interface\ }\mbox{\hyperlink{interface_b_m_k_map_rotate_animation}{BMKMapRotateAnimation}}\ :\ \mbox{\hyperlink{interface_b_m_k_map_animation}{BMKMapAnimation}}}
\DoxyCodeLine{00107\ \textcolor{keyword}{@property}(nonatomic,\ readonly)\ \textcolor{keywordtype}{float}\ fromDegrees;}
\DoxyCodeLine{00108\ \textcolor{keyword}{@property}(nonatomic,\ readonly)\ \textcolor{keywordtype}{float}\ toDegrees;}
\DoxyCodeLine{00109\ }
\DoxyCodeLine{00110\ -\/\ (instancetype)initWithFromDegrees:(\textcolor{keywordtype}{float})from\ to:(\textcolor{keywordtype}{float})to;}
\DoxyCodeLine{00111\ \textcolor{keyword}{@end}}
\DoxyCodeLine{00112\ }
\DoxyCodeLine{00113\ \textcolor{keyword}{@interface\ }\mbox{\hyperlink{interface_b_m_k_map_scale_animation}{BMKMapScaleAnimation}}\ :\ \mbox{\hyperlink{interface_b_m_k_map_animation}{BMKMapAnimation}}}
\DoxyCodeLine{00115\ \textcolor{keyword}{@property}(nonatomic,\ readonly)\ CGSize\ from;}
\DoxyCodeLine{00117\ \textcolor{keyword}{@property}(nonatomic,\ readonly)\ CGSize\ to;}
\DoxyCodeLine{00118\ }
\DoxyCodeLine{00119\ -\/\ (instancetype)initWithFromSizeScale:(CGSize)fromSizeScale\ to:(CGSize)toSizeScale;}
\DoxyCodeLine{00120\ }
\DoxyCodeLine{00121\ \textcolor{keyword}{@end}}
\DoxyCodeLine{00122\ }
\DoxyCodeLine{00123\ \textcolor{keyword}{@interface\ }\mbox{\hyperlink{interface_b_m_k_map_translate_animation}{BMKMapTranslateAnimation}}\ :\ \mbox{\hyperlink{interface_b_m_k_map_animation}{BMKMapAnimation}}}
\DoxyCodeLine{00124\ \textcolor{keyword}{@property}(nonatomic,\ readonly)\ CLLocationCoordinate2D\ from;}
\DoxyCodeLine{00125\ \textcolor{keyword}{@property}(nonatomic,\ readonly)\ CLLocationCoordinate2D\ to;}
\DoxyCodeLine{00126\ }
\DoxyCodeLine{00127\ -\/\ (instancetype)initWithFromPoint:(CLLocationCoordinate2D)from\ to:(CLLocationCoordinate2D)to;}
\DoxyCodeLine{00128\ \textcolor{keyword}{@end}}
\DoxyCodeLine{00129\ }
\DoxyCodeLine{00130\ \textcolor{keyword}{@class}\ \mbox{\hyperlink{interface_b_m_k_polyline}{BMKPolyline}};}
\DoxyCodeLine{00131\ \textcolor{keyword}{@class}\ \mbox{\hyperlink{interface_b_m_k_map_track_animation}{BMKMapTrackAnimation}};}
\DoxyCodeLine{00133\ \textcolor{keyword}{@protocol\ }BMKMapTrackAnimationDelegate\ <NSObject>}
\DoxyCodeLine{00134\ }
\DoxyCodeLine{00135\ -\/\ (void)animation:(nullable\ \mbox{\hyperlink{interface_b_m_k_map_track_animation}{BMKMapTrackAnimation}}\ *)animation\ position:(CLLocationCoordinate2D)pt\ angle:(\textcolor{keywordtype}{float})angle\ fraction:(\textcolor{keywordtype}{float})fraction;}
\DoxyCodeLine{00136\ }
\DoxyCodeLine{00137\ \textcolor{keyword}{@end}}
\DoxyCodeLine{00138\ \textcolor{keyword}{@interface\ }\mbox{\hyperlink{interface_b_m_k_map_track_animation}{BMKMapTrackAnimation}}\ :\ \mbox{\hyperlink{interface_b_m_k_map_animation}{BMKMapAnimation}}\ \ \ \ \ \ \ \textcolor{comment}{//\ 轨迹动画}}
\DoxyCodeLine{00139\ \textcolor{keyword}{@property}(nonatomic,\ weak)\ id<BMKMapTrackAnimationDelegate>\ trackDelegate;}
\DoxyCodeLine{00141\ \textcolor{keyword}{@property}\ (nonatomic,\ readonly)\ CGFloat\ fromTrackPosRadio;}
\DoxyCodeLine{00142\ \textcolor{keyword}{@property}\ (nonatomic,\ readonly)\ CGFloat\ toTrackPosRadio;}
\DoxyCodeLine{00144\ \textcolor{keyword}{@property}\ (nonatomic,\ readonly)\ CLLocationCoordinate2D\ fromTrackPos;}
\DoxyCodeLine{00145\ \textcolor{keyword}{@property}\ (nonatomic,\ readonly)\ CLLocationCoordinate2D\ toTrackPos;}
\DoxyCodeLine{00146\ }
\DoxyCodeLine{00148\ -\/\ (BOOL)setTrackPosRadio:(\textcolor{keywordtype}{float})from\ to:(\textcolor{keywordtype}{float})to;}
\DoxyCodeLine{00150\ -\/\ (BOOL)setTrackPosRadio:(\textcolor{keywordtype}{float})to;}
\DoxyCodeLine{00152\ -\/\ (BOOL)setTrackPos:(CLLocationCoordinate2D)from\ to:(CLLocationCoordinate2D)to;}
\DoxyCodeLine{00154\ -\/\ (BOOL)setTrackPos:(CLLocationCoordinate2D)to;}
\DoxyCodeLine{00156\ -\/\ (BOOL)setTrackLine:(\mbox{\hyperlink{interface_b_m_k_polyline}{BMKPolyline}}\ *)trackLine;}
\DoxyCodeLine{00157\ \textcolor{keyword}{@end}}
\DoxyCodeLine{00158\ }
\DoxyCodeLine{00159\ }
\DoxyCodeLine{00160\ \textcolor{keyword}{@interface\ }\mbox{\hyperlink{interface_b_m_k_map_animation_set}{BMKMapAnimationSet}}\ :\ \mbox{\hyperlink{interface_b_m_k_map_animation}{BMKMapAnimation}}}
\DoxyCodeLine{00161\ \textcolor{comment}{//\ 添加动画组成员,orderType为动画执行顺序类型，注意：当第一个add的类型是BMKAnimationSetOrderTypeThen时等同于是BMKAnimationSetOrderTypeWith}}
\DoxyCodeLine{00162\ -\/\ (void)addAnimation:(\mbox{\hyperlink{interface_b_m_k_map_animation}{BMKMapAnimation}}\ *)animation\ addAnimationSetOrderType:(\mbox{\hyperlink{_b_m_k_map_animation_8h_a3a0c71ac5009f270077356b22a66552e}{BMKAnimationSetOrderType}})orderType;}
\DoxyCodeLine{00163\ \textcolor{keyword}{@end}}
\DoxyCodeLine{00164\ }
\DoxyCodeLine{00165\ NS\_ASSUME\_NONNULL\_END}

\end{DoxyCode}
