Geant4_10
|
#include <G4KDTree.hh>
Public Member Functions | |
G4KDTree (int dim=3) | |
virtual | ~G4KDTree () |
void | Clear () |
int | GetDim () |
void | SetDataDestructor (void(*fDestr)(void *)) |
int | GetNbNodes () |
G4KDNode * | GetRoot () |
G4KDNode * | InsertMap (const double &x, const double &y, const double &z, void *data) |
G4KDNode * | InsertMap (const double *pos, void *data) |
void | Build () |
G4KDNode * | Insert (const double *pos, void *data) |
G4KDNode * | Insert (const double &x, const double &y, const double &z, void *data) |
G4KDTreeResultHandle | Nearest (const double *pos) |
G4KDTreeResultHandle | Nearest (const double &x, const double &y, const double &z) |
G4KDTreeResultHandle | Nearest (G4KDNode *node) |
G4KDTreeResultHandle | NearestInRange (const double *pos, const double &range) |
G4KDTreeResultHandle | NearestInRange (const double &x, const double &y, const double &z, const double &range) |
G4KDTreeResultHandle | NearestInRange (G4KDNode *node, const double &range) |
Protected Member Functions | |
void | __Clear_Rec (G4KDNode *node) |
int | __NearestInRange (G4KDNode *node, const double *pos, const double &range_sq, const double &range, G4KDTreeResult &list, int ordered, G4KDNode *source_node=0) |
void | __NearestToPosition (G4KDNode *node, const double *pos, G4KDNode *&result, double *result_dist_sq, struct HyperRect *fRect) |
void | __NearestToNode (G4KDNode *source_node, G4KDNode *node, const double *pos, std::vector< G4KDNode * > &result, double *result_dist_sq, struct HyperRect *fRect, int &nbresult) |
Protected Attributes | |
G4KDNode * | fRoot |
Friends | |
class | G4KDNode |
G4KDTree is used by the ITManager to locate the neareast neighbours. A kdtree sorts out node in such a way that it reduces the number of node check. The results of this search can be retrieved by G4KDTreeResultHandle.
Definition at line 62 of file G4KDTree.hh.
G4KDTree::G4KDTree | ( | int | dim = 3 | ) |
Definition at line 170 of file G4KDTree.cc.
|
virtual |
Definition at line 206 of file G4KDTree.cc.
|
protected |
Definition at line 303 of file G4KDTree.cc.
|
protected |
Definition at line 462 of file G4KDTree.cc.
|
protected |
Definition at line 350 of file G4KDTree.cc.
void G4KDTree::Build | ( | ) |
void G4KDTree::Clear | ( | ) |
|
inline |
|
inline |
Definition at line 83 of file G4KDTree.hh.
|
inline |
Definition at line 84 of file G4KDTree.hh.
Definition at line 263 of file G4KDTree.cc.
G4KDNode * G4KDTree::InsertMap | ( | const double & | x, |
const double & | y, | ||
const double & | z, | ||
void * | data | ||
) |
Definition at line 224 of file G4KDTree.cc.
G4KDTreeResultHandle G4KDTree::Nearest | ( | const double * | pos | ) |
Definition at line 428 of file G4KDTree.cc.
G4KDTreeResultHandle G4KDTree::Nearest | ( | const double & | x, |
const double & | y, | ||
const double & | z | ||
) |
G4KDTreeResultHandle G4KDTree::Nearest | ( | G4KDNode * | node | ) |
G4KDTreeResultHandle G4KDTree::NearestInRange | ( | const double * | pos, |
const double & | range | ||
) |
Definition at line 603 of file G4KDTree.cc.
G4KDTreeResultHandle G4KDTree::NearestInRange | ( | const double & | x, |
const double & | y, | ||
const double & | z, | ||
const double & | range | ||
) |
G4KDTreeResultHandle G4KDTree::NearestInRange | ( | G4KDNode * | node, |
const double & | range | ||
) |
Definition at line 148 of file G4KDTree.hh.
|
friend |
Definition at line 64 of file G4KDTree.hh.
|
protected |
Definition at line 72 of file G4KDTree.hh.