MBMapkit
/Users/dongkui/ios_api/branches/1.0.x/code/config/MBMapDemo/MBMapkit/MBMapkit/MBOverlayView.h
00001 //
00002 //  MBOverlayView.h
00003 //  MB"MBMapkit.h"
00004 //
00005 //  Copyright 2011 Mapbar Inc. All rights reserved.
00006 //
00007 
00008 #import <UIKit/UIKit.h>
00009 
00010 #import "MBGeometry.h"
00011 #import "MBOverlay.h"
00012 #import <pthread.h>
00013 
00029 @interface MBOverlayView : UIView 
00030 {
00031 @package
00032     id <MBOverlay> _overlay;
00033     MBMapRect _boundingMapRect;
00034     CGAffineTransform _mapTransform;
00035     id _geometryDelegate;
00036     id _canDrawCache;
00037     
00038     pthread_rwlock_t _rwLock;
00039     CFTimeInterval _lastTile;
00040     CFRunLoopTimerRef _scheduledScaleTimer;
00041     
00042     struct {
00043         unsigned int keepAlive:1;
00044         unsigned int levelCrossFade:1;
00045         unsigned int drawingDisabled:1;
00046         unsigned int usesTiledLayer:1;
00047     } _flags;
00048 }
00049 
00059 - (id)initWithOverlay:(id <MBOverlay>)overlay;
00060 
00065 @property (nonatomic, readonly) id <MBOverlay> overlay;
00066 
00075 - (CGPoint)pointForMapPoint:(MBMapPoint)mapPoint;
00076 
00084 - (MBMapPoint)mapPointForPoint:(CGPoint)point;
00085 
00093 - (CGRect)rectForMapRect:(MBMapRect)mapRect;
00094 
00102 - (MBMapRect)mapRectForRect:(CGRect)rect;
00103 
00117 - (BOOL)canDrawMapRect:(MBMapRect)mapRect
00118              zoomScale:(MBZoomScale)zoomScale;
00119 
00142 - (void)drawMapRect:(MBMapRect)mapRect
00143           zoomScale:(MBZoomScale)zoomScale
00144           inContext:(CGContextRef)context;
00145 
00154 - (void)setNeedsDisplayInMapRect:(MBMapRect)mapRect;     
00155 
00165 - (void)setNeedsDisplayInMapRect:(MBMapRect)mapRect
00166                        zoomScale:(MBZoomScale)zoomScale;
00167 
00168 @end
 全部  函数 变量 属性