OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

boundBox Class Reference

Inheritance diagram for boundBox:

Inheritance graph
[legend]
Collaboration diagram for boundBox:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 52 of file boundBox.H.


Public Member Functions

 boundBox ()
 Construct null setting points to zero.
 boundBox (const point &min, const point &max)
 Construct from components.
 boundBox (const pointField &points, const bool doReduce=true)
 Construct as the bounding box of the given pointField. Does.
 boundBox (Istream &)
 Construct from Istream.
const point & min () const
const point & max () const
point & min ()
point & max ()
scalar mag () const
bool intersects (const boundBox &bb) const
 Intersects other boundingbox?
bool contains (const point &pt) const
 Contains a point?

Friends

Ostream & operator<< (Ostream &os, const boundBox &b)

Constructor & Destructor Documentation

boundBox (  )  [inline]

Construct null setting points to zero.

Definition at line 65 of file boundBox.H.

boundBox ( const point &  min,
const point &  max 
) [inline]

Construct from components.

Definition at line 72 of file boundBox.H.

boundBox ( const pointField &  points,
const bool  doReduce = true 
)

Construct as the bounding box of the given pointField. Does.

parallel communication (doReduce = true)

boundBox ( Istream &   ) 

Construct from Istream.


Member Function Documentation

const point& min (  )  const [inline]

Definition at line 92 of file boundBox.H.

Referenced by treeBoundBox::treeBoundBox().

Here is the caller graph for this function:

const point& max (  )  const [inline]

Definition at line 97 of file boundBox.H.

Referenced by treeBoundBox::treeBoundBox().

Here is the caller graph for this function:

point& min (  )  [inline]

Definition at line 102 of file boundBox.H.

point& max (  )  [inline]

Definition at line 107 of file boundBox.H.

scalar mag (  )  const [inline]

Definition at line 112 of file boundBox.H.

References Vector::x(), Vector::y(), and Vector::z().

Here is the call graph for this function:

bool intersects ( const boundBox &  bb  )  const [inline]

Intersects other boundingbox?

Definition at line 121 of file boundBox.H.

bool contains ( const point &  pt  )  const [inline]

Contains a point?

Reimplemented in treeBoundBox.

Definition at line 144 of file boundBox.H.


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &  os,
const boundBox &  b 
) [friend]


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd