|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interfaces represents a 2D clipper for polygons.
| Method Summary | |
int |
classifyBox(csBox2 box)
Classify some bounding box against this clipper. |
short |
clip(csVector2Array InPolygon,
csVector2Array OutPolygon)
Clip a set of 2D points and return in 'OutPolygon' which is expected to contain space at least for MAX_OUTPUT_VERTICES elements. |
short |
clip(csVector2Array InPolygon,
csVector2Array OutPolygon,
csBox2 BoundingBox)
Clip a set of 2D points. |
short |
clip(csVector2Array InPolygon,
csVector2Array OutPolygon,
csVertexStatus OutStatus)
Clips a set of 2D points and provides additional information on each output vertex. |
short |
clipInPlace(csVector2Array InPolygon,
csBox2 BoundingBox)
Wrapper function: clip a polygon in-place. |
csVector2Array |
getClipPoly()
Return a pointer to the array of csVector2's. |
int |
getVertexCount()
Return number of vertices for this clipper polygon. |
boolean |
isInside(csVector2 v)
Return true if given point is inside (or on bound); of clipper polygon. |
| Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe |
| Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
| Method Detail |
public int classifyBox(csBox2 box)
box -
public short clip(csVector2Array InPolygon,
csVector2Array OutPolygon,
csVertexStatus OutStatus)
InPolygon - OutPolygon - OutStatus -
public short clip(csVector2Array InPolygon,
csVector2Array OutPolygon,
csBox2 BoundingBox)
InPolygon - OutPolygon - BoundingBox -
public short clip(csVector2Array InPolygon,
csVector2Array OutPolygon)
InPolygon - OutPolygon -
public short clipInPlace(csVector2Array InPolygon,
csBox2 BoundingBox)
InPolygon - BoundingBox -
public csVector2Array getClipPoly()
public int getVertexCount()
public boolean isInside(csVector2 v)
v -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||