4 Component Boundary for rectangular areas. More...
#include <decBoundary.h>
Public Member Functions | |
Constructors and Destructors | |
| decBoundary () | |
| Creates a new boundary object initialized with all components to 0. | |
| decBoundary (int nx1, int ny1, int nx2, int ny2) | |
| Creates a new boundary object with the given values. | |
| decBoundary (const decBoundary &b) | |
| Creates a new boundary object with the values of another boundary object. | |
Management | |
| void | OrientateRect () |
| Rearranges the coordinates so that x1/y1 are the top left corner and x2/y2 the bottom right corner. | |
| void | OrientateLine () |
| Rearranges the coordinates so that x1/y1 are the top left corner and x2/y2 the bottom right corner. | |
| decPoint | MapPoint (const decPoint &pt) const |
| Returns the point formed by adding the given point to the top left corner point. | |
Operators | |
| decBoundary & | operator= (const decBoundary &b) |
| Sets the components of this boundary object to the values of another one. | |
Public Attributes | |
| int | x1 |
| Top Left corner X coordinate. | |
| int | x2 |
| Bottom Right corner X coordinate. | |
| int | y1 |
| Top Left corner Y coordinate. | |
| int | y2 |
| Bottom Right corner Y coordinate. | |
4 Component Boundary for rectangular areas.
| decBoundary::decBoundary | ( | ) | [inline] |
| decBoundary::decBoundary | ( | int | nx1, |
| int | ny1, | ||
| int | nx2, | ||
| int | ny2 | ||
| ) | [inline] |
| decBoundary::decBoundary | ( | const decBoundary & | b ) | [inline] |
Returns the point formed by adding the given point to the top left corner point.
References decPoint::x, x1, decPoint::y, and y1.
| decBoundary& decBoundary::operator= | ( | const decBoundary & | b ) | [inline] |
| void decBoundary::OrientateLine | ( | ) |
Rearranges the coordinates so that x1/y1 are the top left corner and x2/y2 the bottom right corner.
This version is designed to oriente a line. The function will though most probably be replaced with something else. You should thus not use it if possible.
| void decBoundary::OrientateRect | ( | ) |
Rearranges the coordinates so that x1/y1 are the top left corner and x2/y2 the bottom right corner.
| int decBoundary::x1 |
Top Left corner X coordinate.
Referenced by decBoundary(), MapPoint(), and operator=().
| int decBoundary::x2 |
Bottom Right corner X coordinate.
Referenced by decBoundary(), and operator=().
| int decBoundary::y1 |
Top Left corner Y coordinate.
Referenced by decBoundary(), MapPoint(), and operator=().
| int decBoundary::y2 |
Bottom Right corner Y coordinate.
Referenced by decBoundary(), and operator=().
1.7.2