|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gishur.x.Area
Area Stellt ein nicht unbedingt zusammenhängendes Gebiet dar.
Field Summary | |
static byte |
ASSUME_CONVEX
Konvexitätsmodus: Falls so gesetzt, wird immer angenommen das Objekt sei konvex. |
static byte |
ASSUME_NOT_CONVEX
Konvexitätsmodus: Falls so gesetzt, wird immer angenommen das Objekt sei nicht konvex. |
static byte |
TEST_CONVEXITY
Konvexitätsmodus: Falls so gesetzt, wird vor einem Schnitt die Konvexität getestet. |
Fields inherited from interface gishur.x.AreaIntersectable |
POINT_INSIDE, POINT_ON_EDGE, POINT_OUTSIDE |
Constructor Summary | |
Area()
Erzeugt ein leeres Gebiet. |
|
Area(AreaIntersectable a)
Erzeugt ein Gebiet, das durch das AreaIntersectable a begrenzt wird. |
|
Area(AreaIntersectable[] a)
Erzeugt ein Gebiet, das durch das AreaIntersectable-Array a begrenzt wird. |
|
Area(AreaIntersectable a1,
AreaIntersectable a2)
Erzeugt ein Gebiet, das durch die AreaIntersectables a1 und a2 begrenzt wird. |
|
Area(SimpleList L)
Erzeugt ein Gebiet, das durch die Liste L mit AreaIntersectables gegeben ist. |
Method Summary | |
void |
add(AreaIntersectable a)
Fügt ein AreaIntersectable-Objekt an. |
void |
clear()
Löscht das Gebiet. |
boolean |
convex()
Liefert true, falls das Gebiet konvex ist. |
boolean |
convex(int i)
Liefert true, falls das i-te Randobjekt konvex ist. |
byte |
convexMode()
Liefert den Konvexitätsmodus. |
AreaIntersectable |
element(int i)
Liefert das i-te Randelement zurück. |
boolean |
empty()
Liefert true, falls das Gebiet leer ist. |
Area |
intersection(Area area)
Schneidet die Fläche area mit dieser und gibt das Ergebnis zurück. |
Area |
intersection(AreaIntersectable O,
boolean convex)
Flächenschnitt mit dem Objekt O. |
int |
length()
Liefert die Anzahl der Randkomponenten im Area-Objekt zurück. |
byte |
locate(XPoint q)
Point-Location. |
void |
set(AreaIntersectable a)
Setzt das Gebiet auf den durch a bestimmten Bereich. |
void |
set(AreaIntersectable[] a)
Setzt das Gebiet auf den durch das AreaIntersectable-Array a bestimmten Bereich. |
void |
set(AreaIntersectable a1,
AreaIntersectable a2)
Setzt das Gebiet auf den durch a1 und a2 bestimmten Bereich. |
void |
set(SimpleList L)
Setzt das Gebiet auf den Inhalt der Liste L. |
void |
setConvexMode(byte mode)
Setzt den Konvexitätsmodus. |
boolean |
supportsIntersection(AreaIntersectable O,
boolean is_convex)
Liefert true, falls diese Klasse den Schnitt mit dem übergebenen Gebiet unterstützt. |
java.lang.String |
toString()
Überschreibt Object.toString(). |
XHalfplane |
xhalfplane()
Liefert das XHalfplane, falls das Gebiet aus genau einem XHalfplane-Objekt besteht. |
XPolygon |
xpolygon()
Liefert das XPolygon, falls das Gebiet aus genau einem XPolygon-Objekt besteht. |
XUPolygon |
xupolygon()
Liefert das XUPolygon, falls das Gebiet aus genau einem XUPolygon-Objekt besteht. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte TEST_CONVEXITY
public static final byte ASSUME_NOT_CONVEX
public static final byte ASSUME_CONVEX
Constructor Detail |
public Area()
public Area(AreaIntersectable a)
a
- neues Randobjektpublic Area(AreaIntersectable a1, AreaIntersectable a2)
a1
- neues Randobjekta2
- neues Randobjektpublic Area(AreaIntersectable[] a)
a
- Array mit Randobjektenpublic Area(SimpleList L)
a
- Array mit RandobjektenMethod Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public void set(AreaIntersectable a)
a
- neues Randobjektpublic void set(AreaIntersectable[] a)
a
- Array mit neuen Randobjektenpublic void set(AreaIntersectable a1, AreaIntersectable a2)
a1
- neues Randobjekta2
- neues Randobjektpublic void set(SimpleList L)
L
- Liste mit AreaIntersectablespublic void add(AreaIntersectable a)
a
- neues Randobjektpublic void clear()
public boolean empty()
public int length()
public void setConvexMode(byte mode)
mode
- neuer Moduspublic byte convexMode()
public AreaIntersectable element(int i)
i
- Index des Randelementspublic XHalfplane xhalfplane()
public XPolygon xpolygon()
public XUPolygon xupolygon()
public byte locate(XPoint q)
locate
in interface AreaIntersectable
p
- zu lokalisierender Punktpublic boolean supportsIntersection(AreaIntersectable O, boolean is_convex)
supportsIntersection
in interface AreaIntersectable
O
- zu schneidendes AreaIntersectableis_convex
- falls true, ist das Objekt O konvexpublic Area intersection(Area area)
area
- Flächepublic Area intersection(AreaIntersectable O, boolean convex)
intersection
in interface AreaIntersectable
O
- zu schneidendes Objektconvex
- falls true, ist das Objekt O konvexpublic boolean convex()
convex
in interface AreaIntersectable
public boolean convex(int i)
i
- Index des zu untersuchenden Randobjektes
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |