OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
#include <QuadTree.h>
Public Member Functions | |
QuadTree () | |
QuadTree (int l, const BoundingBox &b) | |
QuadTree (const QuadTree &right) | |
~QuadTree () | |
void | reset () |
void | operator= (const QuadTree &right) |
void | transferIfInside (std::list< std::shared_ptr< Base > > &objs) |
void | buildUp () |
void | writeGnuplot (std::ostream &out) const |
bool | isInside (const Vector_t &R) const |
void | getDepth (unsigned int &d) const |
Public Attributes | |
int | level_m |
std::list< std::shared_ptr< Base > > | objects_m |
BoundingBox | bb_m |
std::vector< std::shared_ptr< QuadTree > > | nodes_m |
Definition at line 9 of file QuadTree.h.
|
inline |
Definition at line 15 of file QuadTree.h.
Referenced by buildUp(), operator=(), and QuadTree().
|
inline |
Definition at line 21 of file QuadTree.h.
mslang::QuadTree::QuadTree | ( | const QuadTree & | right | ) |
Definition at line 5 of file QuadTree.cpp.
References nodes_m, and QuadTree().
mslang::QuadTree::~QuadTree | ( | ) |
Definition at line 19 of file QuadTree.cpp.
void mslang::QuadTree::buildUp | ( | ) |
Definition at line 58 of file QuadTree.cpp.
References bb_m, mslang::BoundingBox::center_m, mslang::BoundingBox::height_m, level_m, nodes_m, objects_m, QuadTree(), mslang::BoundingBox::width_m, and X.
Referenced by FlexibleCollimator::FlexibleCollimator(), and FlexibleCollimator::setDescription().
void mslang::QuadTree::getDepth | ( | unsigned int & | d | ) | const |
Definition at line 124 of file QuadTree.cpp.
bool mslang::QuadTree::isInside | ( | const Vector_t & | R | ) | const |
Definition at line 104 of file QuadTree.cpp.
References bb_m, mslang::BoundingBox::center_m, nodes_m, objects_m, Attrib::Distribution::R, and X.
Referenced by FlexibleCollimator::isStopped().
void mslang::QuadTree::operator= | ( | const QuadTree & | right | ) |
Definition at line 32 of file QuadTree.cpp.
References bb_m, level_m, nodes_m, objects_m, and QuadTree().
void mslang::QuadTree::reset | ( | ) |
Definition at line 27 of file QuadTree.cpp.
References nodes_m, and objects_m.
Referenced by FlexibleCollimator::setDescription().
void mslang::QuadTree::transferIfInside | ( | std::list< std::shared_ptr< Base > > & | objs | ) |
Definition at line 48 of file QuadTree.cpp.
References bb_m, mslang::BoundingBox::isInside(), and objects_m.
void mslang::QuadTree::writeGnuplot | ( | std::ostream & | out | ) | const |
Definition at line 91 of file QuadTree.cpp.
References bb_m, endl(), level_m, nodes_m, objects_m, and mslang::BoundingBox::writeGnuplot().
Referenced by FlexibleCollimator::writeHolesAndQuadtree().
BoundingBox mslang::QuadTree::bb_m |
Definition at line 12 of file QuadTree.h.
Referenced by buildUp(), FlexibleCollimator::FlexibleCollimator(), isInside(), operator=(), FlexibleCollimator::setDescription(), transferIfInside(), and writeGnuplot().
int mslang::QuadTree::level_m |
Definition at line 10 of file QuadTree.h.
Referenced by buildUp(), getDepth(), operator=(), and writeGnuplot().
std::vector<std::shared_ptr<QuadTree> > mslang::QuadTree::nodes_m |
Definition at line 13 of file QuadTree.h.
Referenced by buildUp(), getDepth(), isInside(), operator=(), QuadTree(), reset(), writeGnuplot(), and ~QuadTree().
std::list<std::shared_ptr<Base> > mslang::QuadTree::objects_m |
Definition at line 11 of file QuadTree.h.
Referenced by buildUp(), FlexibleCollimator::FlexibleCollimator(), isInside(), operator=(), reset(), FlexibleCollimator::setDescription(), transferIfInside(), writeGnuplot(), and ~QuadTree().