RMTileLoader.h
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// TimeImageSet.h
// Images
//
// Created by Joseph Gentle on 29/08/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RMTile.h"
#import "RMTileImageSet.h"
#import "RMMapContents.h"
@class RMTileImage;
@class RMTileImageSet;
@class RMMercatorToScreenProjection;
extern NSString * const RMMapImageRemovedFromScreenNotification;
extern NSString * const RMMapImageAddedToScreenNotification;
extern NSString * const RMSuspendExpensiveOperations;
extern NSString * const RMResumeExpensiveOperations;
@protocol RMTileSource;
@interface RMTileLoader : NSObject {
RMMapContents *content;
CGRect loadedBounds;
int loadedZoom;
RMTileRect loadedTiles;
BOOL suppressLoading;
}
// Designated initialiser
- (id)initWithContent: (RMMapContents *)contents;
- (void)updateLoadedImages;
- (void)moveBy: (CGSize) delta;
- (void)zoomByFactor: (float) zoomFactor near:(CGPoint) center;
- (void)clearLoadedBounds;
- (void)reload;
@property (readonly, nonatomic) CGRect loadedBounds;
@property (readonly, nonatomic) int loadedZoom;
@property (readwrite, assign) BOOL suppressLoading;
//-(BOOL) containsRect: (CGRect)bounds;
@end