#include <boundingbox.h>
Inheritance diagram for AARBoundingBox


Public Methods | |
| AARBoundingBox () | |
| Default constructor: infinite extent. More... | |
| AARBoundingBox (T xlow, T ylow, T xhigh, T yhigh ) | |
| Typical constructor: square box. More... | |
| AARBoundingBox (T centerx, T centery, T radius ) | |
| Constructor taking a center and a radius for a square box with odd dimensions. More... | |
| virtual bool | inside (T x, T y) const |
| Returns true if the given coordinates are inside the box. More... | |
| virtual AARBoundingBox<T>& | set () |
| Make the bounding box infinite. More... | |
| virtual AARBoundingBox<T>& | set (T xlow, T ylow, T xhigh, T yhigh ) |
| Set the bounding box to the given dimensions. More... | |
| virtual AARBoundingBox<T>& | operator+= ( const AARBoundingBox<T>& b ) |
| Expand this box to enclose the given one. More... | |
| virtual BoundingBox<T>& | scale ( T xscale, T yscale ) |
| Multiply the size times the indicated amounts in each dimension. More... | |
| virtual BoundingBox<T>& | rotate ( T theta ) |
| Rotate the box by the given angle (in radians) and take the smallest axis-aligned rectangle which encloses the result. More... | |
| virtual BoundingBox<T>& | translate ( T xoffset, T yoffset ) |
| Translate the position by the indicated amounts. More... | |
| virtual ostream& | put (ostream &s) const |
| Virtual interface to the operator<<, since << cannot be virtual. More... | |
Protected Methods | |
| virtual bool | empty () const |
| Enclosing a single point or line is considered empty since zero area is enclosed. More... | |
Protected Attributes | |
| bool | infinite |
| T | xl |
| T | yl |
| T | xh |
| T | yh |
Definition at line 52 of file boundingbox.h.
|
||||
|
Default constructor: infinite extent.
Definition at line 55 of file boundingbox.h. |
|
||||||||||
|
Typical constructor: square box.
Definition at line 58 of file boundingbox.h. |
|
||||||||
|
Constructor taking a center and a radius for a square box with odd dimensions.
Definition at line 63 of file boundingbox.h. |
|
||||
|
Enclosing a single point or line is considered empty since zero area is enclosed.
Definition at line 145 of file boundingbox.h. Referenced by operator+=(). |
|
||||||
|
Returns true if the given coordinates are inside the box.
Reimplemented from BoundingBox. Reimplemented in BoundingEllipse. Definition at line 67 of file boundingbox.h. Referenced by Retinal_Object::activation(). |
|
||||
|
Expand this box to enclose the given one. An infinite box already encloses all boxes, while an empty() box will enclose any other box exactly, regardless of the original location of the empty box. Definition at line 87 of file boundingbox.h. |
|
||||
|
Virtual interface to the operator<<, since << cannot be virtual. This implementation is just a stub, and should be overriden in derived classes. Reimplemented from BoundingBox. Definition at line 136 of file boundingbox.h. |
|
||||
|
Rotate the box by the given angle (in radians) and take the smallest axis-aligned rectangle which encloses the result.
Reimplemented from BoundingBox. Reimplemented in BoundingEllipse. Definition at line 104 of file boundingbox.h. |
|
||||||
|
Multiply the size times the indicated amounts in each dimension.
Reimplemented from BoundingBox. Definition at line 96 of file boundingbox.h. |
|
||||||||||
|
Set the bounding box to the given dimensions.
Definition at line 74 of file boundingbox.h. |
|
||||
|
Make the bounding box infinite.
Definition at line 71 of file boundingbox.h. |
|
||||||
|
Translate the position by the indicated amounts.
Reimplemented from BoundingBox. Definition at line 130 of file boundingbox.h. |
|
|||
|
Definition at line 141 of file boundingbox.h. |
|
|||
|
Definition at line 142 of file boundingbox.h. |
|
|||
|
Definition at line 142 of file boundingbox.h. |
|
|||
|
Definition at line 142 of file boundingbox.h. |
|
|||
|
Definition at line 142 of file boundingbox.h. |
1.2.1 written by Dimitri van Heesch,
© 1997-2000