![]() |
Public API Reference |
#include <polyclip.h>
Inheritance diagram for csBoxClipper:
Public Methods | |
csBoxClipper (const csBox2 &b) | |
Initializes the clipper object to the given bounding region. More... | |
csBoxClipper (float x1, float y1, float x2, float y2) | |
Initializes the clipper object to a rectangle with the given coords. More... | |
virtual uint8 | Clip (csVector2 *InPolygon, int InCount, csVector2 *OutPolygon, int &OutCount) |
Simple clipping. More... | |
virtual uint8 | Clip (csVector2 *InPolygon, int InCount, csVector2 *OutPolygon, int &OutCount, csBox2 &BoundingBox) |
Clip and compute the bounding box. More... | |
virtual uint8 | Clip (csVector2 *InPolygon, int InCount, csVector2 *OutPolygon, int &OutCount, csVertexStatus *OutStatus) |
Clip and return additional information about each vertex. More... | |
virtual int | ClassifyBox (const csBox2 &box) |
Classify some bounding box against this clipper. More... | |
virtual bool | IsInside (const csVector2 &v) |
Return true if given point is inside (or on bound) of clipper polygon. More... | |
virtual int | GetVertexCount () |
Return number of vertices for this clipper polygon. More... | |
virtual csVector2 * | GetClipPoly () |
Return a pointer to the array of csVector2's. More... |
Definition at line 70 of file polyclip.h.
|
Initializes the clipper object to the given bounding region.
Definition at line 88 of file polyclip.h. |
|
Initializes the clipper object to a rectangle with the given coords.
Definition at line 91 of file polyclip.h. |
|
Classify some bounding box against this clipper.
Implements iClipper2D. |
|
Clip and return additional information about each vertex.
Implements iClipper2D. |
|
Clip and compute the bounding box.
Implements iClipper2D. |
|
Simple clipping.
Implements iClipper2D. |
|
Return a pointer to the array of csVector2's.
Implements iClipper2D. Definition at line 118 of file polyclip.h. |
|
Return number of vertices for this clipper polygon.
Implements iClipper2D. Definition at line 114 of file polyclip.h. |
|
Return true if given point is inside (or on bound) of clipper polygon.
Implements iClipper2D. Definition at line 110 of file polyclip.h. References csBox2::In, csVector2::x, and csVector2::y. |