forked from infinum/FBAnnotationClustering
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFBQuadTree.h
More file actions
38 lines (28 loc) · 733 Bytes
/
FBQuadTree.h
File metadata and controls
38 lines (28 loc) · 733 Bytes
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
//
// FBQuadTree.h
// AnnotationClustering
//
// Created by Filip Bec on 05/01/14.
// Copyright (c) 2014 Infinum Ltd. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "FBQuadTreeNode.h"
/**
Quad Tree. You should never use this class.
*/
@interface FBQuadTree : NSObject
/// Root node.
@property (nonatomic, strong) FBQuadTreeNode *rootNode;
/**
Insert new annotation in tree.
*/
- (BOOL)insertAnnotation:(id<MKAnnotation>)annotation;
/**
Enumerate annotations in @c box.
*/
- (void)enumerateAnnotationsInBox:(FBBoundingBox)box usingBlock:(void (^)(id<MKAnnotation> obj))block;
/**
Enumerate all annotations.
*/
- (void)enumerateAnnotationsUsingBlock:(void (^)(id<MKAnnotation> obj))block;
@end