PageRenderTime 33ms CodeModel.GetById 22ms app.highlight 7ms RepoModel.GetById 2ms app.codeStats 0ms

/MapView/Map/RMMarkerManager.h

http://github.com/route-me/route-me
C Header | 65 lines | 28 code | 11 blank | 26 comment | 0 complexity | a50ee0951af59fc4a66ee93e60221058 MD5 | raw file
 1//
 2//  RMMarkerManager.h
 3//
 4// Copyright (c) 2008-2009, Route-Me Contributors
 5// All rights reserved.
 6//
 7// Redistribution and use in source and binary forms, with or without
 8// modification, are permitted provided that the following conditions are met:
 9//
10// * Redistributions of source code must retain the above copyright notice, this
11//   list of conditions and the following disclaimer.
12// * Redistributions in binary form must reproduce the above copyright notice,
13//   this list of conditions and the following disclaimer in the documentation
14//   and/or other materials provided with the distribution.
15//
16// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
20// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26// POSSIBILITY OF SUCH DAMAGE.
27
28#import <UIKit/UIKit.h>
29
30#import "RMMapContents.h"
31#import "RMMarker.h"
32
33@class RMProjection;
34
35@interface RMMarkerManager : NSObject {
36	RMMapContents *contents;
37        CGAffineTransform rotationTransform;
38}
39
40@property (assign, readwrite)  RMMapContents *contents;
41
42- (id)initWithContents:(RMMapContents *)mapContents;
43
44- (void)addMarker:(RMMarker *)marker atProjectedPoint:(RMProjectedPoint)projectedPoint;
45- (void) addMarker: (RMMarker*)marker AtLatLong:(CLLocationCoordinate2D)point;
46- (void) removeMarkers;
47- (void) hideAllMarkers;
48- (void) unhideAllMarkers;
49
50- (NSArray *)markers;
51- (void) removeMarker:(RMMarker *)marker;
52- (void) removeMarkers:(NSArray *)markers;
53- (CGPoint) screenCoordinatesForMarker: (RMMarker *)marker;
54- (CLLocationCoordinate2D) latitudeLongitudeForMarker: (RMMarker *) marker;
55- (NSArray *) markersWithinScreenBounds;
56- (BOOL) isMarkerWithinScreenBounds:(RMMarker*)marker;
57- (BOOL) isMarker:(RMMarker*)marker withinBounds:(CGRect)rect;
58- (BOOL) managingMarker:(RMMarker*)marker;
59- (void) moveMarker:(RMMarker *)marker AtLatLon:(RMLatLong)point;
60- (void) moveMarker:(RMMarker *)marker AtXY:(CGPoint)point;
61- (void)setRotation:(float)angle;
62
63
64
65@end