|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.seisw.util.geom.Clip
Clip is a Java version of the General Poly Clipper algorithm
developed by Alan Murta (gpc@cs.man.ac.uk). The home page for the original source can be
found at
http://www.cs.man.ac.uk/aig/staff/alan/software/.
polyClass: Some of the public methods below take a polyClass
argument. This java.lang.Class object is assumed to implement the Poly
interface and have a no argument constructor. This was done so that the user of the algorithm
could create their own classes that implement the Poly interface and still uses
this algorithm.
Implementation Note: The converted algorithm does support the difference operation, but a public method has not been provided and it has not been tested. To do so, simply follow what has been done for intersection.
| Method Summary | |
static Poly |
intersection(Poly p1,
Poly p2)
Return the intersection of p1 and p2 where the
return type is of PolyDefault. |
static Poly |
intersection(Poly p1,
Poly p2,
java.lang.Class polyClass)
Return the intersection of p1 and p2 where the
return type is of polyClass. |
static Poly |
union(Poly p1,
Poly p2)
Return the union of p1 and p2 where the
return type is of PolyDefault. |
static Poly |
union(Poly p1,
Poly p2,
java.lang.Class polyClass)
Return the union of p1 and p2 where the
return type is of polyClass. |
static Poly |
xor(Poly p1,
Poly p2)
Return the xor of p1 and p2 where the
return type is of PolyDefault. |
static Poly |
xor(Poly p1,
Poly p2,
java.lang.Class polyClass)
Return the xor of p1 and p2 where the
return type is of polyClass. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Poly intersection(Poly p1,
Poly p2,
java.lang.Class polyClass)
p1 and p2 where the
return type is of polyClass. See the note in the class description
for more on
p1 - One of the polygons to performt he intersection withp2 - One of the polygons to performt he intersection withpolyClass - The type of Poly to return
public static Poly union(Poly p1,
Poly p2,
java.lang.Class polyClass)
p1 and p2 where the
return type is of polyClass. See the note in the class description
for more on
p1 - One of the polygons to performt he union withp2 - One of the polygons to performt he union withpolyClass - The type of Poly to return
public static Poly xor(Poly p1,
Poly p2,
java.lang.Class polyClass)
p1 and p2 where the
return type is of polyClass. See the note in the class description
for more on
p1 - One of the polygons to performt he xor withp2 - One of the polygons to performt he xor withpolyClass - The type of Poly to return
public static Poly intersection(Poly p1,
Poly p2)
p1 and p2 where the
return type is of PolyDefault.
p1 - One of the polygons to performt he intersection withp2 - One of the polygons to performt he intersection with
public static Poly union(Poly p1,
Poly p2)
p1 and p2 where the
return type is of PolyDefault.
p1 - One of the polygons to performt he union withp2 - One of the polygons to performt he union with
public static Poly xor(Poly p1,
Poly p2)
p1 and p2 where the
return type is of PolyDefault.
p1 - One of the polygons to performt he xor withp2 - One of the polygons to performt he xor with
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||