Geant4
10.01.p03
|
G4KDTreeResult enables to go through the nearest entities found by G4KDTree. More...
#include <G4KDTreeResult.hh>
Public Member Functions | |
G4KDTreeResult (G4KDTree *) | |
virtual | ~G4KDTreeResult () |
void | Insert (double, G4KDNode_Base *) |
void | Clear () |
void | Sort () |
size_t | GetSize () const |
size_t | size () const |
void | Rewind () |
bool | End () |
void | Next () |
template<typename PointT > | |
PointT * | GetItem () const |
G4KDNode_Base * | GetNode () const |
template<typename PointT > | |
PointT * | GetItemNDistanceSQ (double &) const |
double | GetDistanceSqr () const |
Protected Attributes | |
G4KDTree * | fTree |
std::list< ResNode >::iterator | fIterator |
G4KDTreeResult enables to go through the nearest entities found by G4KDTree.
Definition at line 68 of file G4KDTreeResult.hh.
G4KDTreeResult::G4KDTreeResult | ( | G4KDTree * | tree | ) |
Definition at line 78 of file G4KDTreeResult.cc.
References fTree.
|
virtual |
Definition at line 83 of file G4KDTreeResult.cc.
void G4KDTreeResult::Clear | ( | ) |
Definition at line 93 of file G4KDTreeResult.cc.
References fIterator.
bool G4KDTreeResult::End | ( | ) |
Definition at line 119 of file G4KDTreeResult.cc.
References fIterator.
double G4KDTreeResult::GetDistanceSqr | ( | ) | const |
Definition at line 129 of file G4KDTreeResult.cc.
Referenced by GetItemNDistanceSQ().
PointT * G4KDTreeResult::GetItem | ( | ) | const |
Definition at line 111 of file G4KDTreeResult.hh.
References GetNode(), and G4KDNode< PointT >::GetPoint().
PointT * G4KDTreeResult::GetItemNDistanceSQ | ( | double & | dist_sq | ) | const |
Definition at line 118 of file G4KDTreeResult.hh.
References GetDistanceSqr().
G4KDNode_Base * G4KDTreeResult::GetNode | ( | ) | const |
Definition at line 134 of file G4KDTreeResult.cc.
Referenced by GetItem().
size_t G4KDTreeResult::GetSize | ( | ) | const |
Definition at line 104 of file G4KDTreeResult.cc.
void G4KDTreeResult::Insert | ( | double | pos, |
G4KDNode_Base * | node | ||
) |
Definition at line 88 of file G4KDTreeResult.cc.
void G4KDTreeResult::Next | ( | ) |
Definition at line 124 of file G4KDTreeResult.cc.
References fIterator.
void G4KDTreeResult::Rewind | ( | ) |
Definition at line 114 of file G4KDTreeResult.cc.
References fIterator.
Referenced by G4KDTree::NearestInRange().
size_t G4KDTreeResult::size | ( | ) | const |
Definition at line 109 of file G4KDTreeResult.cc.
void G4KDTreeResult::Sort | ( | ) |
Definition at line 99 of file G4KDTreeResult.cc.
References CompareResNode().
Referenced by G4KDTree::NearestInRange().
|
protected |
|
protected |
Definition at line 71 of file G4KDTreeResult.hh.
Referenced by G4KDTreeResult().