Garfield++ 4.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
|
Quadtree search. More...
#include <QuadTree.hh>
Public Member Functions | |
QuadTree (const double x0, const double y0, const double hx, const double hy) | |
Constructor. | |
~QuadTree () | |
Destructor. | |
void | InsertMeshNode (const double x, const double y, const int index) |
Insert a mesh node (a vertex/point) to the tree. | |
void | InsertMeshElement (const double bb[4], const int index) |
Insert a mesh element with given bounding box and index to the tree. | |
std::vector< int > | GetElementsInBlock (const double x, const double y) const |
Get all elements linked to a block corresponding to the given point. | |
Quadtree search.
Definition at line 12 of file QuadTree.hh.
Garfield::QuadTree::QuadTree | ( | const double | x0, |
const double | y0, | ||
const double | hx, | ||
const double | hy | ||
) |
Constructor.
Definition at line 6 of file QuadTree.cc.
Garfield::QuadTree::~QuadTree | ( | ) |
Destructor.
Definition at line 18 of file QuadTree.cc.
std::vector< int > Garfield::QuadTree::GetElementsInBlock | ( | const double | x, |
const double | y | ||
) | const |
Get all elements linked to a block corresponding to the given point.
Definition at line 92 of file QuadTree.cc.
void Garfield::QuadTree::InsertMeshElement | ( | const double | bb[4], |
const int | index | ||
) |
Insert a mesh element with given bounding box and index to the tree.
Definition at line 79 of file QuadTree.cc.
Referenced by InsertMeshElement().
void Garfield::QuadTree::InsertMeshNode | ( | const double | x, |
const double | y, | ||
const int | index | ||
) |
Insert a mesh node (a vertex/point) to the tree.
Definition at line 41 of file QuadTree.cc.
Referenced by InsertMeshNode().