39 #ifndef __AGENT_KD_TREE_H__
40 #define __AGENT_KD_TREE_H__
79 struct AgentTreeNode {
129 void setAgents(
const std::vector< BaseAgent * > & agents );
151 void buildTreeRecursive(
size_t begin,
size_t end,
size_t node);
177 static const size_t MAX_LEAF_SIZE = 10;
182 #endif // __AGENT_KD_TREE_H__
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
Sets up the proper compiler directives for platform and dll export/import.
std::vector< const BaseAgent * > _agents
The agents being partitioned by the kd-tree.
Definition: AgentKDTree.h:167
The base class for filtering spatial queries according to proximity.
Definition: ProximityQuery.h:72
std::vector< AgentTreeNode > _tree
The tree structure.
Definition: AgentKDTree.h:172
The base class for all objects which actually perform filtering and store results from spatial querie...
The namespace that contains the basic simulation mechanisms.
A kd-tree for performing nearest-neighbor searches.
Definition: AgentKDTree.h:74