GRASS Programmer's Manual  6.4.3(2013)-r
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
split_q.h
Go to the documentation of this file.
1 
2 /****************************************************************************
3 * MODULE: R-Tree library
4 *
5 * AUTHOR(S): Antonin Guttman - original code
6 * Daniel Green (green@superliminal.com) - major clean-up
7 * and implementation of bounding spheres
8 *
9 * PURPOSE: Multidimensional index
10 *
11 * COPYRIGHT: (C) 2001 by the GRASS Development Team
12 *
13 * This program is free software under the GNU General Public
14 * License (>=v2). Read the file COPYING that comes with GRASS
15 * for details.
16 *****************************************************************************/
17 
18 /*-----------------------------------------------------------------------------
19 | Definitions and global variables.
20 -----------------------------------------------------------------------------*/
21 
22 #define METHODS 1
23 
24 struct PartitionVars {
25  int partition[MAXCARD + 1];
26  int total, minfill;
27  int taken[MAXCARD + 1];
28  int count[2];
29  struct Rect cover[2];
31 };
32 
33 extern struct Branch BranchBuf[MAXCARD + 1];
34 extern int BranchCount;
35 extern struct Rect CoverSplit;
37 
38 /* variables for finding a partition */
39 extern struct PartitionVars Partitions[METHODS];