OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
#include <BoundingBox.h>
Public Member Functions | |
BoundingBox () | |
BoundingBox (const BoundingBox &right) | |
BoundingBox (const Vector_t &llc, const Vector_t &urc) | |
BoundingBox & | operator= (const BoundingBox &)=default |
bool | doesIntersect (const BoundingBox &bb) const |
bool | isInside (const Vector_t &X) const |
bool | isInside (const BoundingBox &b) const |
virtual void | writeGnuplot (std::ostream &out) const |
void | print (std::ostream &out) const |
Public Attributes | |
Vector_t | center_m |
double | width_m |
double | height_m |
Definition at line 10 of file BoundingBox.h.
|
inline |
Definition at line 15 of file BoundingBox.h.
|
inline |
Definition at line 21 of file BoundingBox.h.
Definition at line 27 of file BoundingBox.h.
bool mslang::BoundingBox::doesIntersect | ( | const BoundingBox & | bb | ) | const |
Definition at line 4 of file BoundingBox.cpp.
References center_m, height_m, and width_m.
Referenced by mslang::Base::divideBy(), and Mesher::isPotentialEdgeIntersected().
bool mslang::BoundingBox::isInside | ( | const BoundingBox & | b | ) | const |
Definition at line 19 of file BoundingBox.cpp.
References center_m, height_m, isInside(), and width_m.
bool mslang::BoundingBox::isInside | ( | const Vector_t & | X | ) | const |
Definition at line 11 of file BoundingBox.cpp.
References abs(), center_m, height_m, width_m, and X.
Referenced by isInside(), mslang::Ellipse::isInside(), mslang::Rectangle::isInside(), FlexibleCollimator::isStopped(), and mslang::QuadTree::transferIfInside().
|
default |
void mslang::BoundingBox::print | ( | std::ostream & | out | ) | const |
Definition at line 42 of file BoundingBox.cpp.
References center_m, endl(), height_m, and width_m.
Referenced by mslang::operator<<().
|
virtual |
Definition at line 26 of file BoundingBox.cpp.
References center_m, endl(), height_m, and width_m.
Referenced by mslang::QuadTree::writeGnuplot().
Vector_t mslang::BoundingBox::center_m |
Definition at line 11 of file BoundingBox.h.
Referenced by mslang::QuadTree::buildUp(), doesIntersect(), mslang::QuadTree::isInside(), isInside(), Mesher::isPotentialEdgeIntersected(), print(), FlexibleCollimator::setDescription(), and writeGnuplot().
double mslang::BoundingBox::height_m |
Definition at line 13 of file BoundingBox.h.
Referenced by mslang::QuadTree::buildUp(), doesIntersect(), isInside(), Mesher::isPotentialEdgeIntersected(), print(), FlexibleCollimator::setDescription(), and writeGnuplot().
double mslang::BoundingBox::width_m |
Definition at line 12 of file BoundingBox.h.
Referenced by mslang::QuadTree::buildUp(), doesIntersect(), isInside(), Mesher::isPotentialEdgeIntersected(), print(), FlexibleCollimator::setDescription(), and writeGnuplot().