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

#include <BoundingBox2D.h>

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

Public Member Functions

 BoundingBox2D ()
 
 BoundingBox2D (const BoundingBox2D &right)
 
 BoundingBox2D (const Vector_t &llc, const Vector_t &urc)
 
BoundingBox2Doperator= (const BoundingBox2D &)=default
 
bool doesIntersect (const BoundingBox2D &bb) const
 
bool isInside (const Vector_t &X) const
 
bool isInside (const BoundingBox2D &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
 

Detailed Description

Definition at line 30 of file BoundingBox2D.h.

Constructor & Destructor Documentation

mslang::BoundingBox2D::BoundingBox2D ( )
inline

Definition at line 35 of file BoundingBox2D.h.

mslang::BoundingBox2D::BoundingBox2D ( const BoundingBox2D right)
inline

Definition at line 41 of file BoundingBox2D.h.

mslang::BoundingBox2D::BoundingBox2D ( const Vector_t llc,
const Vector_t urc 
)
inline

Definition at line 47 of file BoundingBox2D.h.

Member Function Documentation

bool mslang::BoundingBox2D::doesIntersect ( const BoundingBox2D bb) const

Definition at line 24 of file BoundingBox2D.cpp.

References center_m, height_m, and width_m.

Referenced by mslang::Base::divideBy(), and Mesher::isPotentialEdgeIntersected().

bool mslang::BoundingBox2D::isInside ( const Vector_t X) const

Definition at line 31 of file BoundingBox2D.cpp.

References abs(), center_m, height_m, and width_m.

Referenced by mslang::Rectangle::isInside(), mslang::Ellipse::isInside(), isInside(), FlexibleCollimator::isStopped(), and mslang::QuadTree::transferIfInside().

Here is the call graph for this function:

bool mslang::BoundingBox2D::isInside ( const BoundingBox2D b) const

Definition at line 39 of file BoundingBox2D.cpp.

References center_m, height_m, isInside(), and width_m.

Here is the call graph for this function:

BoundingBox2D& mslang::BoundingBox2D::operator= ( const BoundingBox2D )
default
void mslang::BoundingBox2D::print ( std::ostream &  out) const

Definition at line 62 of file BoundingBox2D.cpp.

References center_m, endl(), height_m, and width_m.

Referenced by mslang::operator<<().

Here is the call graph for this function:

void mslang::BoundingBox2D::writeGnuplot ( std::ostream &  out) const
virtual

Definition at line 46 of file BoundingBox2D.cpp.

References center_m, endl(), height_m, and width_m.

Referenced by mslang::QuadTree::writeGnuplot().

Here is the call graph for this function:

Member Data Documentation

Vector_t mslang::BoundingBox2D::center_m
double mslang::BoundingBox2D::height_m
double mslang::BoundingBox2D::width_m

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