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

#include <BoundingBox.h>

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

Public Member Functions

 BoundingBox ()
 
 BoundingBox (const BoundingBox &right)
 
 BoundingBox (const Vector_t &llc, const Vector_t &urc)
 
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
 

Detailed Description

Definition at line 10 of file BoundingBox.h.

Constructor & Destructor Documentation

mslang::BoundingBox::BoundingBox ( )
inline

Definition at line 15 of file BoundingBox.h.

mslang::BoundingBox::BoundingBox ( const BoundingBox right)
inline

Definition at line 21 of file BoundingBox.h.

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

Definition at line 27 of file BoundingBox.h.

Member Function Documentation

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 Vector_t X) const

Definition at line 11 of file BoundingBox.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::BoundingBox::isInside ( const BoundingBox b) const

Definition at line 19 of file BoundingBox.cpp.

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Definition at line 26 of file BoundingBox.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::BoundingBox::center_m
double mslang::BoundingBox::height_m
double mslang::BoundingBox::width_m

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