Geant4  10.00.p03
G4KDTreeResult Class Reference

G4KDTreeResult enables to go through the nearest entities found by G4KDTree. More...

#include <G4KDTreeResult.hh>

+ Inheritance diagram for G4KDTreeResult:
+ Collaboration diagram for G4KDTreeResult:

Public Member Functions

 G4KDTreeResult (G4KDTree *)
 
virtual ~G4KDTreeResult ()
 
void Insert (double, G4KDNode *)
 
void Clear ()
 
void Sort ()
 
size_t GetSize ()
 
size_t size ()
 
void Rewind ()
 
bool End ()
 
void Next ()
 
void * GetItemData ()
 
void * GetItem (double *&)
 
void * GetItem (double &x, double &y, double &z)
 
void * GetItemNDistanceSQ (double &)
 
void * GetItemNDistanceSQ (double *&, double &)
 
double GetDistanceSqr ()
 

Protected Attributes

G4KDTreefTree
 
std::list< ResNode >::iterator fIterator
 

Detailed Description

G4KDTreeResult enables to go through the nearest entities found by G4KDTree.

Definition at line 59 of file G4KDTreeResult.hh.

Constructor & Destructor Documentation

G4KDTreeResult::G4KDTreeResult ( G4KDTree tree)

Definition at line 80 of file G4KDTreeResult.cc.

References fTree.

G4KDTreeResult::~G4KDTreeResult ( )
virtual

Definition at line 85 of file G4KDTreeResult.cc.

Member Function Documentation

void G4KDTreeResult::Clear ( )

Definition at line 95 of file G4KDTreeResult.cc.

References fIterator.

bool G4KDTreeResult::End ( )

Definition at line 121 of file G4KDTreeResult.cc.

References fIterator.

double G4KDTreeResult::GetDistanceSqr ( )

Definition at line 164 of file G4KDTreeResult.cc.

void * G4KDTreeResult::GetItem ( double *&  pos)

Definition at line 131 of file G4KDTreeResult.cc.

References fTree, G4KDTree::GetDim(), and pos.

Referenced by GetItemNDistanceSQ().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void * G4KDTreeResult::GetItem ( double &  x,
double &  y,
double &  z 
)

Definition at line 138 of file G4KDTreeResult.cc.

void * G4KDTreeResult::GetItemData ( )

Definition at line 159 of file G4KDTreeResult.cc.

void * G4KDTreeResult::GetItemNDistanceSQ ( double &  dist_sq)

Definition at line 147 of file G4KDTreeResult.cc.

void * G4KDTreeResult::GetItemNDistanceSQ ( double *&  pos,
double &  dist_sq 
)

Definition at line 153 of file G4KDTreeResult.cc.

References GetItem().

+ Here is the call graph for this function:

size_t G4KDTreeResult::GetSize ( )

Definition at line 106 of file G4KDTreeResult.cc.

void G4KDTreeResult::Insert ( double  pos,
G4KDNode node 
)

Definition at line 90 of file G4KDTreeResult.cc.

Referenced by G4KDTree::__NearestInRange().

+ Here is the caller graph for this function:

void G4KDTreeResult::Next ( )

Definition at line 126 of file G4KDTreeResult.cc.

References fIterator.

void G4KDTreeResult::Rewind ( )

Definition at line 116 of file G4KDTreeResult.cc.

References fIterator.

size_t G4KDTreeResult::size ( )

Definition at line 111 of file G4KDTreeResult.cc.

void G4KDTreeResult::Sort ( )

Definition at line 101 of file G4KDTreeResult.cc.

References CompareResNode().

+ Here is the call graph for this function:

Member Data Documentation

std::list<ResNode>::iterator G4KDTreeResult::fIterator
protected

Definition at line 63 of file G4KDTreeResult.hh.

Referenced by Clear(), End(), Next(), and Rewind().

G4KDTree* G4KDTreeResult::fTree
protected

Definition at line 62 of file G4KDTreeResult.hh.

Referenced by G4KDTreeResult(), and GetItem().


The documentation for this class was generated from the following files: