Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members

parquetfp::BBox Class Reference

#include <FPcommon.h>

Collaboration diagram for parquetfp::BBox:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BBox ()
 BBox (double minX, double minY, double maxX, double maxY)
void put (Point &point)
void clear (void)
double getHPWL (void)
double getXSize (void)
double getYSize (void)
bool isValid (void)

Private Attributes

double _minX
double _maxX
double _minY
double _maxY
bool _valid

Constructor & Destructor Documentation

BBox::BBox  ) 
 

Definition at line 66 of file FPcommon.cxx.

References _maxX, _maxY, _minX, _minY, and _valid.

00067 {
00068   _minX=(1e306);
00069   _maxX=(-1e306);
00070   _minY=(1e306);
00071   _maxY=(-1e306);
00072   _valid=0;
00073 }

parquetfp::BBox::BBox double  minX,
double  minY,
double  maxX,
double  maxY
[inline]
 

Definition at line 97 of file FPcommon.h.

References _maxX, _maxY, _minX, and _minY.

00099          : _minX(minX), _maxX(maxX),
00100            _minY(minY), _maxY(maxY) {}


Member Function Documentation

void BBox::clear void   ) 
 

Definition at line 75 of file FPcommon.cxx.

References _maxX, _maxY, _minX, _minY, and _valid.

Referenced by parquetfp::DB::evalHPWL().

00076 {
00077   _minX=(1e306);
00078   _maxX=(-1e306);
00079   _minY=(1e306);
00080   _maxY=(-1e306);
00081   _valid=0;
00082 }

double BBox::getHPWL void   ) 
 

Definition at line 96 of file FPcommon.cxx.

References _maxX, _maxY, _minX, and _minY.

Referenced by parquetfp::DB::evalHPWL().

00097 {
00098   return((_maxX-_minX)+(_maxY-_minY));
00099 }

double BBox::getXSize void   ) 
 

Definition at line 101 of file FPcommon.cxx.

References _maxX, and _minX.

Referenced by parquetfp::DB::evalArea(), parquetfp::DB::getXSize(), and parquetfp::DB::getXSizeWMacroOnly().

00102 { return(_maxX-_minX); }

double BBox::getYSize void   ) 
 

Definition at line 104 of file FPcommon.cxx.

References _maxY, and _minY.

Referenced by parquetfp::DB::evalArea(), parquetfp::DB::getYSize(), and parquetfp::DB::getYSizeWMacroOnly().

00105 { return(_maxY-_minY); }

bool BBox::isValid void   ) 
 

Definition at line 107 of file FPcommon.cxx.

References _valid.

Referenced by parquetfp::DB::evalHPWL(), parquetfp::DB::getXSizeWMacroOnly(), and parquetfp::DB::getYSizeWMacroOnly().

00108 {
00109   return _valid;
00110 }

void BBox::put Point point  ) 
 

Definition at line 83 of file FPcommon.cxx.

References _maxX, _maxY, _minX, _minY, _valid, parquetfp::Point::x, and parquetfp::Point::y.

Referenced by parquetfp::DB::evalArea(), parquetfp::DB::evalHPWL(), parquetfp::DB::getXSize(), parquetfp::DB::getXSizeWMacroOnly(), parquetfp::DB::getYSize(), and parquetfp::DB::getYSizeWMacroOnly().

00084 {
00085   if(point.x < _minX)
00086     _minX = point.x;
00087   if(point.x > _maxX)
00088     _maxX = point.x;
00089   if(point.y < _minY)
00090     _minY = point.y;
00091   if(point.y > _maxY)
00092     _maxY = point.y;
00093   _valid = 1;
00094 }


Member Data Documentation

double parquetfp::BBox::_maxX [private]
 

Definition at line 88 of file FPcommon.h.

Referenced by BBox(), clear(), getHPWL(), getXSize(), and put().

double parquetfp::BBox::_maxY [private]
 

Definition at line 90 of file FPcommon.h.

Referenced by BBox(), clear(), getHPWL(), getYSize(), and put().

double parquetfp::BBox::_minX [private]
 

Definition at line 87 of file FPcommon.h.

Referenced by BBox(), clear(), getHPWL(), getXSize(), and put().

double parquetfp::BBox::_minY [private]
 

Definition at line 89 of file FPcommon.h.

Referenced by BBox(), clear(), getHPWL(), getYSize(), and put().

bool parquetfp::BBox::_valid [private]
 

Definition at line 92 of file FPcommon.h.

Referenced by BBox(), clear(), isValid(), and put().


The documentation for this class was generated from the following files:
Generated on Mon Apr 25 01:16:53 2005 for Parquete by doxygen 1.3.2