#include <box_system.h>
Public Member Functions | |
| BoxSystem () | |
| ~BoxSystem () | |
| int | create_box_system (box_item_struct *itemList, int noOfItems, ergo_real toplevelBoxSize) |
| Creates the box system. | |
| 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 point. | |
Public Attributes | |
| int | totNoOfBoxes |
| int | noOfLevels |
| box_level_struct | levelList [MAX_NO_OF_BOX_LEVELS] |
| box_struct_basic * | boxList |
Private Member Functions | |
| 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 |
| BoxSystem::BoxSystem | ( | ) |
| BoxSystem::~BoxSystem | ( | ) |
| int BoxSystem::create_box_system | ( | box_item_struct * | itemList, | |
| int | noOfItems, | |||
| ergo_real | toplevelBoxSize | |||
| ) |
Creates the box system.
| itemList | list of items to create the box structure for. | |
| noOfItems | their number. | |
| toplevelBoxSize |
| int BoxSystem::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 point.
| itemList | the list of items for which the box system was created. | |
| coords | list of 3 coordinates for reference point. | |
| distance | the distance to find items within. | |
| resultOrgIndexList | preallocated list of resulting org indexes. |
| int BoxSystem::get_items_near_point_recursive | ( | const box_item_struct * | itemList, | |
| const ergo_real * | coords, | |||
| ergo_real | distance, | |||
| int * | resultOrgIndexList, | |||
| int | level, | |||
| int | boxIndex | |||
| ) | const [private] |
| box_level_struct BoxSystem::levelList[MAX_NO_OF_BOX_LEVELS] |
1.4.7