TileLoader.h
1.39 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
55
56
57
58
//
// TimeImageSet.h
// Images
//
// Created by Joseph Gentle on 29/08/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Tile.h"
#import "TileImageSet.h"
@class TileImage;
@class TileImageSet;
@class ScreenProjection;
extern NSString * const MapImageRemovedFromScreenNotification;
@protocol TileSource;
@interface TileLoader : NSObject <TileImageSetDelegate> {
// Set of locatedtileimages
TileImageSet *images;
// NSMutableSet *buffer;
// BOOL dirty;
ScreenProjection* screenProjection;
id<TileSource> tileSource;
CGRect loadedBounds;
int loadedZoom;
TileRect loadedTiles;
}
// Designated initialiser
-(id) initForScreen: (ScreenProjection*)screen FromImageSource: (id<TileSource>)source;
//-(id) initFromRect:(TileRect) rect FromImageSource: (id<TileSource>)source ToDisplayIn:(CGRect)bounds WithTileDelegate: (id)delegate;
-(void) dealloc;
// Invalidate all current image data.
//-(void) setNeedsRedraw;
//-(BOOL) needsRedraw;
-(void) assemble;
- (void)moveBy: (CGSize) delta;
- (void)zoomByFactor: (float) zoomFactor Near:(CGPoint) center;
@property (readonly, nonatomic) CGRect loadedBounds;
@property (readonly, nonatomic) int loadedZoom;
-(BOOL) containsRect: (CGRect)bounds;
//-(void) assembleFromRect:(TileRect) rect FromImageSource: (id<TileSource>)source ToDisplayIn:(CGRect)bounds WithTileDelegate: (id)delegate;
-(void) draw;
@end