93 G4KDNode*
Insert(
const double& x,
const double& y,
const double&
z,
void *data);
114 const double& range);
122 const double& range_sq,
131 double *result_dist_sq,
137 std::vector<G4KDNode*>& result,
138 double *result_dist_sq,
153 #endif // G4KDTREE_HH
void SetDataDestructor(void(*fDestr)(void *))
void InactiveNode(G4KDNode *)
void __Clear_Rec(G4KDNode *node)
G4KDTree is used by the ITManager to locate the neareast neighbours.
int __NearestInRange(G4KDNode *node, const double *pos, const double &range_sq, const double &range, G4KDTreeResult &list, int ordered, G4KDNode *source_node=0)
G4KDTreeResultHandle Nearest(const double *pos)
G4KDNode stores one entity in G4KDTree This class is for internal use only.
void __NearestToNode(G4KDNode *source_node, G4KDNode *node, const double *pos, std::vector< G4KDNode * > &result, double *result_dist_sq, struct HyperRect *fRect, int &nbresult)
G4KDNode * InsertMap(const double &x, const double &y, const double &z, void *data)
const double * GetNodePosition(G4KDNode *)
void __NearestToPosition(G4KDNode *node, const double *pos, G4KDNode *&result, double *result_dist_sq, struct HyperRect *fRect)
G4KDTreeResultHandle NearestInRange(const double *pos, const double &range)
void * GetData(G4KDNode *)
G4KDNode * Insert(const double *pos, void *data)
static const G4double pos
G4KDTreeResult enables to go through the nearest entities found by G4KDTree.