#include <rect.h>
Inheritance diagram for DRECT3D:

Public Member Functions | |
| DRECT3D () | |
| DRECT3D (const FPOINT3D &pt) | |
| DRECT3D (const DPOINT3D &pt) | |
| DRECT3D (const DRECT2D &rect) | |
| DRECT3D (const DRECT2D &rect, double zmin, double zmax) | |
| DRECT3D & | operator= (const DPOINT3D &pt) |
| bool | Contains (const DPOINT3D &pt) const |
| bool | Contains (const DRECT3D &rhs) const |
| void | Expand (const double value) |
| void | Expand (const double xval, const double yval) |
| void | Extend (const double xval, const double yval) |
| void | Extend (const double xval, const double yval, const double zval) |
| void | Extend (const DRECT3D &rect) |
| void | Extend (const DPOINT2D &pt) |
| void | Extend (const DPOINT3D &pt) |
| DPOINT3D | GetCenter () const |
| void | GetCenter (DPOINT3D &ret) const |
| double | GetDepth () const |
| int | GetDimension () const |
| void | GetMaximum (DPOINT3D &maximum) const |
| void | GetMinimum (DPOINT3D &minimum) const |
| void | GetSize (DPOINT3D &ret) const |
| double | GetVolume () const |
| bool | IniRead (INIHANDLE IniHandle, const char *IniGroup, const char *IniName) |
| void | IniWrite (INIHANDLE IniHandle, const char *IniGroup, const char *IniName) const |
| void | Intersect (const DRECT3D &rect) |
| bool | IsValid () const |
| bool | Overlaps (const DRECT3D &rhs) const |
| void | Set (double x1, double y1, double x2, double y2) |
| void | SetInvalid () |
| void | SwapBytes () |
| CHECKSIZE (48) | |
Public Attributes | |
| double | zinit |
| double | zlast |
Definition at line 769 of file rect.h.
|
|
Initialize to nonexistent area.
|
|
|
Construct from FPOINT3D.
|
|
|
Construct from DPOINT3D.
|
|
|
Construct from DRECT2D.
|
|
||||||||||||||||
|
Construct from DRECT2D and Z min/max.
|
|
|
Make compiler validate structure size.
|
|
|
Check if rectangle is inside.
|
|
|
Check if point is inside.
|
|
||||||||||||
|
Expand the rectangle by 'value' amount.
Reimplemented from DRECT2D. |
|
|
Expand the rectangle by 'value' amount.
Reimplemented from DRECT2D. |
|
|
Extend to contain specified point.
|
|
|
Extend to contain specified point.
Reimplemented from DRECT2D. |
|
|
Union rectangles together, resulting rect is extents of both.
|
|
||||||||||||||||
|
Extend rectangle to encompass both rectangles.
|
|
||||||||||||
|
Extend rectangle to encompass both rectangles.
Reimplemented from DRECT2D. |
|
|
Return center of the box.
|
|
|
Return center of the box.
Reimplemented from DRECT2D. |
|
|
Return depth of the box (z distance).
|
|
|
Compute number of non zero dimensions (0, 1, 2, or 3).
Reimplemented from DRECT2D. |
|
|
Get maximum coordinate.
|
|
|
Get minimum coordinate.
|
|
|
Get size of box.
|
|
|
Compute volume of box.
|
|
||||||||||||||||
|
Read rectangle from INI file.
Reimplemented from DRECT2D. |
|
||||||||||||||||
|
Read rectangle from INI file.
Reimplemented from DRECT2D. |
|
|
Intersect two DRECT3D's, may result in an invalid rectangle.
|
|
|
Check if rectangle is valid.
Reimplemented from DRECT2D. |
|
|
Assignment from DPOINT3D.
|
|
|
Check if rectangle overlaps.
|
|
||||||||||||||||||||
|
Set given (x1,y1), (x2,y2).
Reimplemented from DRECT2D. |
|
|
Sets the initial values to the maximum possible and the final values to the minimum possible, thus making the rectangle "invalid". Setting a rectangle to invalid means that no point will be in it. It also makes it easy to compute the min/max of a bunch of points. You just iterate through all the points and Extend() the rectangle. Normally, you'd have to handle the first point specially. Reimplemented from DRECT2D. |
|
|
Perform byte-order swapping.
Reimplemented from DRECT2D. |
|
|
|
|
|
|
1.3.4-20031026