Class PirolEdge
- java.lang.Object
-
- org.openjump.core.graph.pirolProject.PirolEdge
-
public class PirolEdge extends Object
Class that describes a single line, specified by it's starting and end point. If offers methods e.g. to find intersection points with other Kante objects or to determine on which side of the Kante object a given punkt object resides.- Version:
- $Rev: 2509 $
- Author:
- Ole Rahn
FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2005),
Subproject: Daten- und Wissensmanagement - See Also:
modified: [sstein]: 16.Feb.2009 changed logger-entries to comments
-
-
Field Summary
Fields Modifier and Type Field Description protected PirolPointanfangprotected booleananfangUnbegrenztprotected PirolPointendeprotected booleanendeUnbegrenztprotected booleangueltigprotected static doubleinfinityFaktorstatic PirolEdgeKANTE_X0Y0ToX0Y1static PirolEdgeKANTE_X0Y0ToX1Y0protected intpunktIndexAprotected intpunktIndexB
-
Constructor Summary
Constructors Constructor Description PirolEdge(PirolPoint anfang, double steigung, double laenge)PirolEdge(PirolPoint anfang, PirolPoint ende)PirolEdge(PirolPoint anfang, PirolPoint ende, boolean anfangUnbegrenzt, boolean endeUnbegrenzt)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetABFaktorZumNormalenFaktor(PirolPoint pkt)PirolPointgetAnfang()PirolPointgetEnde()doublegetLaenge()doublegetNormalenFaktorZu(PirolPoint pkt)PirolEdgegetNormalenKante(double laenge)intgetPunktIndexA()intgetPunktIndexB()PirolPointgetSchnittpunkt(PirolEdge k2)static PirolPointgetSchnittpunkt(PirolEdge k1, PirolEdge k2)doublegetSteigung()booleanisAnfangUnbegrenzt()booleanisEndeUnbegrenzt()booleanisGueltig()booleanisParallelZu(PirolEdge k)booleanisParallelZu(PirolEdge k, double infinityFactor)static PirolEdgekreiereKanteDurchPunktInnerhalbBegrenzung(PirolPoint p, double steigung, org.locationtech.jts.geom.Envelope begrenzung)voidsetAnfang(PirolPoint anfang)voidsetAnfangUnbegrenzt(boolean anfangUnbegrenzt)voidsetEnde(PirolPoint ende)voidsetEndeUnbegrenzt(boolean endeUnbegrenzt)voidsetGueltig(boolean gueltig)voidsetPunktIndexA(int punktIndexA)voidsetPunktIndexB(int punktIndexB)static PirolEdgeshiftLine(PirolEdge lineToShift, PirolPoint shiftingVector)creates a newPirolEdgeobject, that has a length equal tolineToShift's length and is parallel tolineToShift.voidswitchPoints()switch starting and end point ofthisPirolEdgeinstance.StringtoString()intvorzeichenDesNormalenFaktors(PirolPoint pkt)
-
-
-
Field Detail
-
KANTE_X0Y0ToX0Y1
public static PirolEdge KANTE_X0Y0ToX0Y1
-
KANTE_X0Y0ToX1Y0
public static PirolEdge KANTE_X0Y0ToX1Y0
-
anfang
protected PirolPoint anfang
-
ende
protected PirolPoint ende
-
punktIndexA
protected int punktIndexA
-
punktIndexB
protected int punktIndexB
-
anfangUnbegrenzt
protected boolean anfangUnbegrenzt
-
endeUnbegrenzt
protected boolean endeUnbegrenzt
-
gueltig
protected boolean gueltig
-
infinityFaktor
protected static double infinityFaktor
-
-
Constructor Detail
-
PirolEdge
public PirolEdge(PirolPoint anfang, PirolPoint ende, boolean anfangUnbegrenzt, boolean endeUnbegrenzt)
-
PirolEdge
public PirolEdge(PirolPoint anfang, PirolPoint ende)
-
PirolEdge
public PirolEdge(PirolPoint anfang, double steigung, double laenge)
-
-
Method Detail
-
shiftLine
public static PirolEdge shiftLine(PirolEdge lineToShift, PirolPoint shiftingVector) throws Exception
creates a newPirolEdgeobject, that has a length equal tolineToShift's length and is parallel tolineToShift.
-
switchPoints
public void switchPoints()
switch starting and end point ofthisPirolEdgeinstance.
-
kreiereKanteDurchPunktInnerhalbBegrenzung
public static PirolEdge kreiereKanteDurchPunktInnerhalbBegrenzung(PirolPoint p, double steigung, org.locationtech.jts.geom.Envelope begrenzung) throws Exception
- Throws:
Exception
-
isParallelZu
public boolean isParallelZu(PirolEdge k, double infinityFactor) throws Exception
- Throws:
Exception
-
getSchnittpunkt
public static PirolPoint getSchnittpunkt(PirolEdge k1, PirolEdge k2) throws Exception
- Throws:
Exception
-
getSchnittpunkt
public PirolPoint getSchnittpunkt(PirolEdge k2) throws Exception
- Throws:
Exception
-
vorzeichenDesNormalenFaktors
public int vorzeichenDesNormalenFaktors(PirolPoint pkt) throws Exception
- Throws:
Exception
-
getABFaktorZumNormalenFaktor
public double getABFaktorZumNormalenFaktor(PirolPoint pkt) throws Exception
- Throws:
Exception
-
getNormalenFaktorZu
public double getNormalenFaktorZu(PirolPoint pkt) throws Exception
- Throws:
Exception
-
getNormalenKante
public PirolEdge getNormalenKante(double laenge) throws Exception
- Throws:
Exception
-
getAnfang
public PirolPoint getAnfang()
-
setAnfang
public void setAnfang(PirolPoint anfang)
-
isAnfangUnbegrenzt
public boolean isAnfangUnbegrenzt()
-
setAnfangUnbegrenzt
public void setAnfangUnbegrenzt(boolean anfangUnbegrenzt)
-
getEnde
public PirolPoint getEnde()
-
setEnde
public void setEnde(PirolPoint ende)
-
isEndeUnbegrenzt
public boolean isEndeUnbegrenzt()
-
setEndeUnbegrenzt
public void setEndeUnbegrenzt(boolean endeUnbegrenzt)
-
isGueltig
public boolean isGueltig()
-
setGueltig
public void setGueltig(boolean gueltig)
-
getPunktIndexA
public int getPunktIndexA()
-
setPunktIndexA
public void setPunktIndexA(int punktIndexA)
-
getPunktIndexB
public int getPunktIndexB()
-
setPunktIndexB
public void setPunktIndexB(int punktIndexB)
-
-