Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

BBOX2D Class Reference

#include <bbox.H>

Collaboration diagram for BBOX2D:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BBOX2D ()
 BBOX2D (mlib::CXYpt &l, mlib::CXYpt &h)
 BBOX2D (CBBOX2D &b)
 BBOX2D (CGELptr &g, int recurse=0)
void reset ()
bool valid () const
mlib::XYpt min () const
mlib::XYpt max () const
mlib::XYpt center () const
mlib::XYvec dim () const
void scale (double s)
bool overlaps (CBBOX2D &b) const
bool contains (mlib::CXYpt &p) const
double dist (mlib::CXYpt &p) const
BBOX2D & operator+= (CBBOX2D &b)
BBOX2D & operator+= (mlib::CXYpt_list &pts)
BBOX2D & update (mlib::CXYpt &p)
void set (mlib::CXYpt &l, mlib::CXYpt &h)

Protected Attributes

bool _valid
mlib::XYpt _max
mlib::XYpt _min

Detailed Description

Definition at line 113 of file bbox.H.


Constructor & Destructor Documentation

BBOX2D::BBOX2D (   )  [inline]
 

Definition at line 118 of file bbox.H.

BBOX2D::BBOX2D (  mlib::CXYpt &  l,
mlib::CXYpt &  h
)  [inline]
 

Definition at line 119 of file bbox.H.

BBOX2D::BBOX2D (  CBBOX2D &  b  )  [inline]
 

Definition at line 120 of file bbox.H.

BBOX2D::BBOX2D (  CGELptr &  g,
int  recurse = 0
) 
 

Definition at line 269 of file bbox.C.

References update().


Member Function Documentation

mlib::XYpt BBOX2D::center (   )  const [inline]
 

Definition at line 127 of file bbox.H.

References _max, and _min.

Referenced by scale().

bool BBOX2D::contains (  mlib::CXYpt &  p  )  const
 

Referenced by MODE_TEXT::intersect(), and MMENU::move().

mlib::XYvec BBOX2D::dim (   )  const [inline]
 

Definition at line 128 of file bbox.H.

References _max, and _min.

Referenced by scale().

double BBOX2D::dist (  mlib::CXYpt &  p  )  const
 

mlib::XYpt BBOX2D::max (   )  const [inline]
 

Definition at line 126 of file bbox.H.

References _max.

Referenced by TEXT2D::draw(), TEXT2D::inside(), overlaps(), and MMENU::tick().

mlib::XYpt BBOX2D::min (   )  const [inline]
 

Definition at line 125 of file bbox.H.

References _min.

Referenced by TEXT2D::draw(), TEXT2D::inside(), overlaps(), and MMENU::tick().

BBOX2D & BBOX2D::operator+= (  mlib::CXYpt_list &  pts  ) 
 

Definition at line 397 of file bbox.C.

References update().

BBOX2D& BBOX2D::operator+= (  CBBOX2D &  b  )  [inline]
 

Definition at line 141 of file bbox.H.

References update().

bool BBOX2D::overlaps (  CBBOX2D &  b  )  const
 

Definition at line 328 of file bbox.C.

References _valid, max(), and min().

void BBOX2D::reset (   )  [inline]
 

Definition at line 123 of file bbox.H.

References _valid.

void BBOX2D::scale (  double  s  )  [inline]
 

Definition at line 130 of file bbox.H.

References _max, _min, _valid, center(), and dim().

void BBOX2D::set (  mlib::CXYpt &  l,
mlib::CXYpt &  h
)  [inline]
 

Definition at line 145 of file bbox.H.

References _max, _min, and _valid.

BBOX2D& BBOX2D::update (  mlib::CXYpt &  p  ) 
 

Referenced by BBOX2D(), and operator+=().

bool BBOX2D::valid (   )  const [inline]
 

Definition at line 124 of file bbox.H.

References _valid.


Member Data Documentation

mlib::XYpt BBOX2D::_max [protected]
 

Definition at line 116 of file bbox.H.

Referenced by center(), dim(), max(), scale(), and set().

mlib::XYpt BBOX2D::_min [protected]
 

Definition at line 116 of file bbox.H.

Referenced by center(), dim(), min(), scale(), and set().

bool BBOX2D::_valid [protected]
 

Definition at line 115 of file bbox.H.

Referenced by overlaps(), reset(), scale(), set(), and valid().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:44:26 2006 for jot by  doxygen 1.4.4