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

Public Member Functions | |
| CHECKSIZE (48) | |
| bool | Contains (const DRECT3D &rhs) const |
| bool | Contains (const DPOINT3D &pt) const |
| DRECT3D (const DRECT2D &rect, double zmin, double zmax) | |
| DRECT3D (const DRECT2D &rect) | |
| DRECT3D (const DPOINT3D &pt1, const DPOINT3D &pt2) | |
| DRECT3D (const DPOINT3D &pt) | |
| DRECT3D (const FPOINT3D &pt) | |
| DRECT3D () | |
| void | Expand (const double xval, const double yval) |
| void | Expand (const double value) |
| void | Extend (const DPOINT3D &pt) |
| void | Extend (const DPOINT2D &pt) |
| void | Extend (const DRECT3D &rect) |
| void | Extend (const double xval, const double yval, const double zval) |
| void | Extend (const double xval, const double yval) |
| void | GetCenter (DPOINT3D &ret) const |
| DPOINT3D | GetCenter () 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 |
| DRECT3D & | operator= (const DPOINT3D &pt) |
| bool | Overlaps (const DRECT3D &rhs) const |
| void | Set (double x1, double y1, double x2, double y2) |
| void | SetInvalid () |
| void | SwapBytes () |
Public Attributes | |
| double | zinit |
| double | zlast |
Definition at line 837 of file rect.h.
| DRECT3D::DRECT3D | ( | ) | [inline] |
| DRECT3D::DRECT3D | ( | const FPOINT3D & | pt | ) | [inline] |
| DRECT3D::DRECT3D | ( | const DPOINT3D & | pt | ) | [inline] |
| DRECT3D::DRECT3D | ( | const DRECT2D & | rect | ) | [inline] |
| DRECT3D::DRECT3D | ( | const DRECT2D & | rect, | |
| double | zmin, | |||
| double | zmax | |||
| ) | [inline] |
| DRECT3D::CHECKSIZE | ( | 48 | ) |
Make compiler validate structure size.
| bool DRECT3D::Contains | ( | const DRECT3D & | rhs | ) | const [inline] |
| bool DRECT3D::Contains | ( | const DPOINT3D & | pt | ) | const [inline] |
| void DRECT3D::Expand | ( | const double | xval, | |
| const double | yval | |||
| ) | [inline] |
| void DRECT3D::Expand | ( | const double | value | ) | [inline] |
| void DRECT3D::Extend | ( | const DPOINT3D & | pt | ) | [inline] |
| void DRECT3D::Extend | ( | const DPOINT2D & | pt | ) | [inline] |
| void DRECT3D::Extend | ( | const DRECT3D & | rect | ) | [inline] |
| void DRECT3D::Extend | ( | const double | xval, | |
| const double | yval, | |||
| const double | zval | |||
| ) | [inline] |
| void DRECT3D::Extend | ( | const double | xval, | |
| const double | yval | |||
| ) | [inline] |
| void DRECT3D::GetCenter | ( | DPOINT3D & | ret | ) | const [inline] |
| DPOINT3D DRECT3D::GetCenter | ( | ) | const [inline] |
| double DRECT3D::GetDepth | ( | ) | const [inline] |
| int DRECT3D::GetDimension | ( | ) | const [inline] |
| void DRECT3D::GetMaximum | ( | DPOINT3D & | maximum | ) | const [inline] |
| void DRECT3D::GetMinimum | ( | DPOINT3D & | minimum | ) | const [inline] |
| void DRECT3D::GetSize | ( | DPOINT3D & | ret | ) | const [inline] |
| double DRECT3D::GetVolume | ( | ) | const [inline] |
| bool DRECT3D::IniRead | ( | INIHANDLE | IniHandle, | |
| const char * | IniGroup, | |||
| const char * | IniName | |||
| ) | [inline] |
| void DRECT3D::IniWrite | ( | INIHANDLE | IniHandle, | |
| const char * | IniGroup, | |||
| const char * | IniName | |||
| ) | const [inline] |
| void DRECT3D::Intersect | ( | const DRECT3D & | rect | ) | [inline] |
| bool DRECT3D::IsValid | ( | ) | const [inline] |
| bool DRECT3D::Overlaps | ( | const DRECT3D & | rhs | ) | const [inline] |
| void DRECT3D::Set | ( | double | x1, | |
| double | y1, | |||
| double | x2, | |||
| double | y2 | |||
| ) | [inline] |
| void DRECT3D::SetInvalid | ( | ) | [inline] |
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.
| void DRECT3D::SwapBytes | ( | ) | [inline] |
| double DRECT3D::zinit |
| double DRECT3D::zlast |
1.5.2