|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gishur.x.voronoi.SKR
Eine Skelettregion.
Field Summary | |
protected SimpleList |
edges
Liste mit allen Skelettkanten der Skelettregion LINKSHERUM! |
boolean |
mark
Markierung |
static byte |
POINT
Konstante für Skelettregionen mit Punkten als Basis. |
static byte |
SEGMENT
Konstante für Skelettregionen mit Segmenten als Basis. |
Fields inherited from interface gishur.core.ControlledCloneable |
DEEP, FLAT |
Constructor Summary | |
SKR(java.lang.Object bas)
Konstruktor. |
Method Summary | |
java.lang.Object |
base()
Liefert das Basiselement der Skelettregion. |
void |
cleanup(SkEdge s,
boolean forward)
Löscht alle Kanten zwischen s (exklusive) und dem Listenende/anfang. |
void |
cleanup(SkEdge s,
SkEdge t)
Löscht alle Kanten zwischen s und t (exklusive). |
java.lang.Object |
clone()
Creates a new object of the same class as this object. |
java.lang.Object |
clone(java.util.Hashtable h,
int level)
Clones this object. |
SkEdge |
first()
Erste Kante der Skelettregion. |
SkEdge |
last()
Letzte Kante der Skelettregion. |
SkEdge |
next(SkEdge e)
Liefert die nach e in der Region gespeicherte Kante. |
SkEdge |
prev(SkEdge e)
Liefert die vor e in der Region gespeicherte Kante. |
void |
remove(SkEdge e)
Entfernt die Kante e aus der Skelettregion. |
SkEdge |
scan(SkEdge e,
XPoint cut,
boolean left)
Sucht einen Schnittpunkt dieser Region mit der Kante e (die ebenfalls zu dieser Region gehören muß, indem die Kanten der Reihe nach links bzw. rechtsherum untersucht werden. |
java.lang.String |
toShortString()
|
java.lang.String |
toString()
Überschreibt Object.toString(). |
byte |
type()
Liefert den Typ der Skelettregion (des Basiselements). |
XPoint |
xpoint()
Liefert das Basiselement als XPoint, falls es von diesem Typ ist. |
XSegment |
xsegment()
Liefert das Basiselement als XSegment, falls es von diesem Typ ist. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte SEGMENT
public static final byte POINT
protected SimpleList edges
public boolean mark
Constructor Detail |
public SKR(java.lang.Object bas)
bas
- BasiselementMethod Detail |
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toShortString()
public java.lang.Object clone()
clone
in interface Cloneable
clone
in class java.lang.Object
this
object.public java.lang.Object clone(java.util.Hashtable h, int level)
ControlledCloneable
this
object. According to the parameter level
,
this
object will be cloned down to level
levels.
That means, the object will be cloned. If level==-1(==DEEP)
,
every object, which can be reached by traversing the references beginning
with /this object will be cloned if possible. This recursion
stopps, if there are no more object to clone, or no reachable object implements
Cloneable. If level==0(==FLAT)
, no object contained by this
object will be cloned. Only the references will be
maintained. If level>=1
, the recursion will stopp after cloning
level
generations (or earlier if e.g. no more contained objects
are cloneable).
The recursive cloning stopps, if there's a ring
structure. In this case, all Objects implementing Cloneable
are cloned,
and connected proper, so that even ring structures are cloned as rings.
- Specified by:
clone
in interface ControlledCloneable
- Following copied from interface:
gishur.core.ControlledCloneable
- Parameters:
h
- Hastable which containes all objects already cloned (with their original objects
as keys), to avoid multiple cloning of the same object (if h==null
a new Hashtable will be created - you can use null
to start a clone recursion)level
- indicates how many generations should be cloned recursive at most- Returns:
- the cloned Object
- Throws:
InternalError
- - if the Object could not be cloned properly
public java.lang.Object base()
public byte type()
public XSegment xsegment()
public XPoint xpoint()
public SkEdge first()
public SkEdge last()
public SkEdge next(SkEdge e)
e
- Basiskantepublic SkEdge prev(SkEdge e)
e
- Basiskantepublic void remove(SkEdge e)
e
- zu entfernende Kantepublic void cleanup(SkEdge s, SkEdge t)
s
- Startkantet
- Endkantepublic void cleanup(SkEdge s, boolean forward)
s
- Startkanteforward
- falls true, wird bis zum Ende, sonst rückwärts bis zum Anfang
gelöschtpublic SkEdge scan(SkEdge e, XPoint cut, boolean left)
e
- Startkante, mit der ein Schnitt gesucht wirdcut
- Punkt, der auf Schnittposition gesetzt wirdleft
- Drehrichtung: falls true links, ansonsten rechts
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |