Quadtree search.
More...
#include <QuadTree.hh>
|
| 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.
|
const 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.
◆ QuadTree()
Garfield::QuadTree::QuadTree |
( |
const double | x0, |
|
|
const double | y0, |
|
|
const double | hx, |
|
|
const double | hy ) |
◆ ~QuadTree()
Garfield::QuadTree::~QuadTree |
( |
| ) |
|
◆ DoesBoxOverlap()
bool Garfield::QuadTree::DoesBoxOverlap |
( |
const double | bb[4] | ) |
const |
|
private |
◆ GetBlockFromPoint()
const QuadTree * Garfield::QuadTree::GetBlockFromPoint |
( |
const double | x, |
|
|
const double | y ) const |
|
private |
◆ GetBlockFromPointHelper()
const QuadTree * Garfield::QuadTree::GetBlockFromPointHelper |
( |
const double | x, |
|
|
const double | y ) const |
|
private |
◆ GetElementsInBlock()
const 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.
◆ GetQuadrant()
int Garfield::QuadTree::GetQuadrant |
( |
const double | x, |
|
|
const double | y ) const |
|
private |
◆ InsertMeshElement()
void Garfield::QuadTree::InsertMeshElement |
( |
const double | bb[4], |
|
|
const int | index ) |
Insert a mesh element with given bounding box and index to the tree.
◆ InsertMeshNode()
void Garfield::QuadTree::InsertMeshNode |
( |
const double | x, |
|
|
const double | y, |
|
|
const int | index ) |
Insert a mesh node (a vertex/point) to the tree.
◆ IsLeafNode()
bool Garfield::QuadTree::IsLeafNode |
( |
| ) |
const |
|
private |
◆ BlockCapacity
const size_t Garfield::QuadTree::BlockCapacity = 10 |
|
staticprivate |
◆ children
QuadTree* Garfield::QuadTree::children[4] |
|
private |
◆ elements
std::vector<int> Garfield::QuadTree::elements |
|
private |
◆ emptyBlock
std::vector<int> Garfield::QuadTree::emptyBlock |
|
staticprivate |
◆ m_hx
double Garfield::QuadTree::m_hx |
|
private |
◆ m_hy
double Garfield::QuadTree::m_hy |
|
private |
◆ m_x0
double Garfield::QuadTree::m_x0 |
|
private |
◆ m_xmax
double Garfield::QuadTree::m_xmax |
|
private |
◆ m_xmin
double Garfield::QuadTree::m_xmin |
|
private |
◆ m_y0
double Garfield::QuadTree::m_y0 |
|
private |
◆ m_ymax
double Garfield::QuadTree::m_ymax |
|
private |
◆ m_ymin
double Garfield::QuadTree::m_ymin |
|
private |
◆ nodes
std::vector<std::tuple<float, float, int> > Garfield::QuadTree::nodes |
|
private |
The documentation for this class was generated from the following file:
- /builds/garfield/docs/source/Include/Garfield/QuadTree.hh