OpenFOAM logo
Open Source CFD Toolkit

boundBox Class Reference

Inheritance diagram for boundBox:

Inheritance graph
[legend]
Collaboration diagram for boundBox:

Collaboration graph
[legend]
List of all members.

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 pointmin () const
const pointmax () const
pointmin ()
pointmax ()
scalar mag () const
bool intersects (const boundBox &bb) const
 Intersects other boundingbox?
bool contains (const point &pt) const
 Contains a point?

Friends

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

Constructor & Destructor Documentation

boundBox  )  [inline]
 

Construct null setting points to zero.

Definition at line 65 of file boundBox.H.

References Foam::max(), Foam::min(), and Foam::point.

Here is the call graph for this function:

boundBox const point min,
const point max
[inline]
 

Construct from components.

Definition at line 72 of file boundBox.H.

References Foam::point, and Foam::pointField.

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

bool contains const point pt  )  const [inline]
 

Contains a point?

Reimplemented in treeBoundBox.

Definition at line 141 of file boundBox.H.

bool intersects const boundBox bb  )  const [inline]
 

Intersects other boundingbox?

Definition at line 118 of file boundBox.H.

scalar mag  )  const [inline]
 

Definition at line 112 of file boundBox.H.

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

Here is the call graph for this function:

point& max  )  [inline]
 

Definition at line 107 of file boundBox.H.

const point& max  )  const [inline]
 

Definition at line 97 of file boundBox.H.

Referenced by boundBox::mag(), and treeBoundBox::treeBoundBox().

point& min  )  [inline]
 

Definition at line 102 of file boundBox.H.

const point& min  )  const [inline]
 

Definition at line 92 of file boundBox.H.

Referenced by treeBoundBox::treeBoundBox().


Friends And Related Function Documentation

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


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org