OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Public Attributes | List of all members
mslang::QuadTree Struct Reference

#include <QuadTree.h>

Collaboration diagram for mslang::QuadTree:
Collaboration graph
[legend]

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
 

Detailed Description

Definition at line 9 of file QuadTree.h.

Constructor & Destructor Documentation

mslang::QuadTree::QuadTree ( )
inline

Definition at line 15 of file QuadTree.h.

Referenced by buildUp(), operator=(), and QuadTree().

mslang::QuadTree::QuadTree ( int  l,
const BoundingBox b 
)
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().

Here is the call graph for this function:

mslang::QuadTree::~QuadTree ( )

Definition at line 19 of file QuadTree.cpp.

References nodes_m, and objects_m.

Member Function Documentation

void mslang::QuadTree::buildUp ( )
void mslang::QuadTree::getDepth ( unsigned int &  d) const

Definition at line 124 of file QuadTree.cpp.

References level_m, and nodes_m.

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, 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().

Here is the call graph for this function:

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.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Member Data Documentation

BoundingBox mslang::QuadTree::bb_m
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

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