-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtgs.h
39 lines (27 loc) · 1.04 KB
/
tgs.h
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
/* ----------------------------------------------------------------------------
Author: Ken C. K. Lee
Email: cklee@cse.psu.edu
Copyright(c) Ken C. K. Lee 2007
This header file declares TGS BulkLoader class.
This is implemented based on
"A Greedy Algorithm for Bulk Loading R-trees"
Yvan J. Garcia, Mario A. Lopez and Scott T. Leutenegger
ACM GIS 1998
---------------------------------------------------------------------------- */
#include "mem.h"
#include "header.h"
#ifndef TGS_DEFINED
#define TGS_DEFINED
class Memory;
class Rtree;
class RtreeNode;
class RtreeNodeEntry;
class TGS
{
public:
// bulk load a set of entires and form a Rtree
static Rtree* bulkload(Memory& a_memory, const int a_dimen, const int a_maxNodeFill, const int a_maxLeafFill, const int a_minNodeFill, const int a_minLeafFill,
RtreeNodeEntry** a_p, int a_numEntry, const bool a_pointOnly = false);
static int partition(Rtree& a_rtree, RtreeNodeEntry** a_p, const int a_numEntry, const int a_level, Array& a);
};
#endif // TGS_DEFINED