|
Public Methods |
| | BBox () |
| | BBox (const BBox &bb) |
| | BBox (BBox *bb) |
| virtual | ~BBox () |
| void | addPt (const Wpt p) |
| | enlarge the bbox if necessary to contain this point
|
| void | addBBox (const BBox b2) |
| | enlarge the bbox if necessary to contain this other bbox
|
| void | addBBox (BBox *const b2) |
| | enlarge the bbox if necessary to contain this other bbox
|
| void | reset () |
| | reset the bbox to be a point
|
| Wpt | minPt () const |
| Wpt | maxPt () const |
| Wpt | center () const |
| double | volume () |
| double | volume (const Wtransf m) |
| | volume of the bbox transformed by m
|
| int | contains (const Wpt pt) |
| | for intersection tests - return true if pt lies within the bbox
|
| void | transformBox (const Wtransf transform) |
| | transform a bounding box by a given transformation
|
| void | drawBox (const GLfloat x1, const GLfloat y1, const GLfloat z1, const GLfloat x2, const GLfloat y2, const GLfloat z2) |
| | draw a rectangular box with these outer x, y, and z values
|
| void | draw () |
| void | print () |
Protected Attributes |
| Wpt | _minPt |
| Wpt | _maxPt |
| int | _empty |