A Polygon which just references its points from other Polygons. More...
#include <geomtypes.h>
Public Member Functions | |
void | clear (void) |
Resets this to the empty polygon. | |
bool | empty (void) const |
Returns true if this polygon is empty. | |
size_t | size (void) const |
Returns the number of points in this polygon. | |
int | id (void) const |
Returns the ID value associated with this polygon. | |
const Point & | at (size_t index) const |
Returns a specific point in the polygon. More... | |
void | getBoundingRect (double *minX, double *minY, double *maxX, double *maxY) const |
Returns the bounding rectangle that contains this polygon. More... | |
Polygon | boundingRect (void) const |
Returns the bounding rectangle for this polygon. More... | |
A Polygon which just references its points from other Polygons.
This type of Polygon is used to accurately represent cluster boundaries made up from the corner points of shapes.
|
virtual |
Returns a specific point in the polygon.
[in] | index | The array index of the point to be returned. |
Implements Avoid::PolygonInterface.
|
inherited |
Returns the bounding rectangle for this polygon.
|
inherited |
Returns the bounding rectangle that contains this polygon.
If a NULL pointer is passed for any of the arguments, then that value is ignored and not returned.
[out] | minX | The left hand side of the bounding box. |
[out] | minY | The top of the bounding box. |
[out] | maxX | The right hand side of the bounding box. |
[out] | maxY | The bottom of the bounding box. |