|
| a2dBoundingBox () |
| constructor
|
|
| a2dBoundingBox (const a2dBoundingBox &box) |
| boundingbox constructor given another boundingbox
|
|
| a2dBoundingBox (const a2dPoint2D &point) |
| boundingbox constructor given a point
|
|
| a2dBoundingBox (double x1, double y1, double x2, double y2) |
| boundingbox constructor given two sets of coordinates
|
|
a2dBoundingBox & | operator+ (a2dBoundingBox &) |
| And operation on two boxes.
|
|
const a2dBoundingBox & | operator+= (const a2dBoundingBox &box) |
| OR box to this.
|
|
a2dBoundingBox & | operator= (const a2dBoundingBox &) |
| set this boundingbox to another boundingbox
|
|
bool | And (a2dBoundingBox *, double Marge=0) |
| intersect the boundingbox with another, return true if the result is non zero
|
|
void | Enlarge (const double Marge) |
| enlarge with the given amount
|
|
void | EnlargeXY (const double MargeX, const double MargeY) |
| enlarge with the given amount
|
|
void | Shrink (const double Marge) |
| shrink with the given amount
|
|
void | Expand (const a2dPoint2D &, const a2dPoint2D &) |
| expand boundingbox width two points
|
|
void | Expand (const a2dPoint2D &) |
| expand boundingbox width one points
|
|
void | Expand (double x, double y) |
| expand boundingbox width one coordinate
|
|
void | Expand (const a2dBoundingBox &bbox) |
| expand boundingbox width another boundingbox
|
|
OVERLAP | Intersect (const a2dBoundingBox &, double Marge=0) const |
|
bool | LineIntersect (const a2dPoint2D &begin, const a2dPoint2D &end) const |
|
bool | PointInBox (const a2dPoint2D &, double Marge=0) const |
| is the point within the boundingbox
|
|
bool | PointInBox (double x, double y, double Marge=0) const |
| is the coordinate within the boundingbox
|
|
bool | PointOnBox (double x, double y, double Marge) const |
| is the coordinate on the border of the boundingbox
|
|
void | Reset () |
| set invalid
|
|
const a2dBoundingBox & | Translate (a2dPoint2D &) |
| translate with given vector
|
|
const a2dBoundingBox & | Translate (double x, double y) |
| translate with given vector
|
|
void | MapBbox (const a2dAffineMatrix &matrix) |
|
double | GetWidth () const |
| returns width of the boundingbox
|
|
double | GetHeight () const |
| returns height of the boundingbox
|
|
bool | GetValid () const |
| returns true if boundingbox is calculated properly and therefore its valid flag is set.
|
|
void | SetValid (bool) |
|
void | SetBoundingBox (const a2dPoint2D &a_point) |
| set the bounding box to be this point
|
|
void | SetMin (double px, double py) |
| set the bounding box its maximum
|
|
void | SetMax (double px, double py) |
| set the bounding box its minimum
|
|
a2dPoint2D | GetMin () const |
| get the bounding box its minimum
|
|
a2dPoint2D | GetMax () const |
| get the bounding box its maximum
|
|
double | GetMinX () const |
| get minimum X of the boundingbox
|
|
double | GetMinY () const |
| get minimum Y of the boundingbox
|
|
double | GetMaxX () const |
| get maximum X of the boundingbox
|
|
double | GetMaxY () const |
| get maximum Y of the boundingbox
|
|
double | GetSize () |
|
a2dPoint2D | GetCentre () const |
| get centre
|
|
void | SetMinX (double minx) |
| set the bounding box its minimum X, does not validate the box
|
|
void | SetMinY (double miny) |
| set the bounding box its minimum Y, does not validate the box
|
|
void | SetMaxX (double maxx) |
| set the bounding box its maximum X, does not validate the box
|
|
void | SetMaxY (double maxy) |
| set the bounding box its maximum Y, does not validate the box
|
|
The a2dBoundingBox class stores one a2dBoundingBox of a a2dCanvasObject.
The a2dBoundingBox is defined by two coordiates, a upperleft coordinate and a lowerright coordinate. It has a valid flag to tell if the boundingbox contains valid information or not.
Definition at line 39 of file bbox.h.