GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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];
struct PartitionVars Partitions[METHODS]
Definition: split_q.c:30
struct Rect CoverSplit
Definition: split_q.c:26
struct Branch BranchBuf[MAXCARD+1]
Definition: split_q.c:24
double RectReal
Definition: index.h:25
int taken[MAXCARD+1]
Definition: split_q.h:27
int minfill
Definition: split_q.h:26
int BranchCount
Definition: split_q.c:25
int partition[MAXCARD+1]
Definition: split_q.h:25
struct Rect cover[2]
Definition: split_q.h:29
Definition: index.h:47
RectReal area[2]
Definition: split_q.h:30
RectReal CoverSplitArea
Definition: split_q.c:27
int count[2]
Definition: split_q.h:28
Definition: index.h:40
#define METHODS
Definition: split_q.h:22
#define MAXCARD
Definition: index.h:54