GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
qtree.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <grass/dataquad.h>
#include <grass/qtree.h>
Include dependency graph for qtree.c:

Go to the source code of this file.

Functions

struct multfuncMT_functions_new (int(*compare)(struct triple *, struct quaddata *), struct quaddata **(*divide_data)(struct quaddata *, int, double), int(*add_data)(struct triple *, struct quaddata *, double), int(*intersect)(struct quaddata *, struct quaddata *), int(*division_check)(struct quaddata *, int), int(*get_points)(struct quaddata *, struct quaddata *, int))
 
struct tree_infoMT_tree_info_new (struct multtree *root, struct multfunc *functions, double dmin, int kmax)
 
struct multtreeMT_tree_new (struct quaddata *data, struct multtree **leafs, struct multtree *parent, int multant)
 
int MT_insert (struct triple *point, struct tree_info *info, struct multtree *tree, int n_leafs)
 
int MT_divide (struct tree_info *info, struct multtree *tree, int n_leafs)
 
int MT_region_data (struct tree_info *info, struct multtree *tree, struct quaddata *data, int MAX, int n_leafs)
 

Function Documentation

int MT_divide ( struct tree_info info,
struct multtree tree,
int  n_leafs 
)
struct multfunc* MT_functions_new ( int(*)(struct triple *, struct quaddata *)  compare,
struct quaddata **(*)(struct quaddata *, int, double)  divide_data,
int(*)(struct triple *, struct quaddata *, double)  add_data,
int(*)(struct quaddata *, struct quaddata *)  intersect,
int(*)(struct quaddata *, int division_check,
int(*)(struct quaddata *, struct quaddata *, int get_points 
)
int MT_insert ( struct triple point,
struct tree_info info,
struct multtree tree,
int  n_leafs 
)
int MT_region_data ( struct tree_info info,
struct multtree tree,
struct quaddata data,
int  MAX,
int  n_leafs 
)
struct tree_info* MT_tree_info_new ( struct multtree root,
struct multfunc functions,
double  dmin,
int  kmax 
)
struct multtree* MT_tree_new ( struct quaddata data,
struct multtree **  leafs,
struct multtree parent,
int  multant 
)

Definition at line 60 of file qtree.c.

References multtree::data, menudata::data, multtree::leafs, malloc(), multtree::multant, NULL, and multtree::parent.

Referenced by MT_divide().