28 #ifndef BOX_SYSTEM_HEADER
29 #define BOX_SYSTEM_HEADER
58 #define MAX_NO_OF_BOX_LEVELS 30
75 int* resultOrgIndexList)
const;
80 int* resultOrgIndexList,
int totNoOfBoxes
Definition: box_system.h:63
ergo_real width
Definition: box_system.h:45
double ergo_real
Definition: realtype.h:53
int noOfItems
Definition: box_system.h:46
int noOfLevels
Definition: box_system.h:64
Definition: box_system.h:42
~BoxSystem()
Definition: box_system.cc:52
int firstItemIndex
Definition: box_system.h:47
static ergo_real distance(const ergo_real *a, const ergo_real *b)
Coomputes distance between two points, they do not need to be of the Vector3D type.
Definition: dft_common.cc:530
int create_box_system(box_item_struct *itemList, int noOfItems, ergo_real toplevelBoxSize)
Creates the box system.
Definition: box_system.cc:67
Definition: box_system.h:52
int noOfBoxes
Definition: box_system.h:54
box_level_struct levelList[MAX_NO_OF_BOX_LEVELS]
Definition: box_system.h:65
box_struct_basic * boxList
Definition: box_system.h:66
int get_items_near_point_recursive(const box_item_struct *itemList, const ergo_real *coords, ergo_real distance, int *resultOrgIndexList, int level, int boxIndex) const
Definition: box_system.cc:336
Definition: box_system.h:35
int get_items_near_point(const box_item_struct *itemList, const ergo_real *coords, ergo_real distance, int *resultOrgIndexList) const
Goes through existning box system to find all items within specified distance from given reference po...
Definition: box_system.cc:414
#define MAX_NO_OF_BOX_LEVELS
Definition: box_system.h:58
BoxSystem()
Definition: box_system.cc:47
int firstChildBoxIndex
Definition: box_system.h:49
int startIndexInBoxList
Definition: box_system.h:55
int noOfChildBoxes
Definition: box_system.h:48
int originalIndex
Definition: box_system.h:38
Definition: box_system.h:60