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:
  • Field Details

    • 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 Details

    • 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 Details

    • shiftLine

      public static PirolEdge shiftLine(PirolEdge lineToShift, PirolPoint shiftingVector) throws Exception
      creates a new PirolEdge object, that has a length equal to lineToShift's length and is parallel to lineToShift.
      Parameters:
      lineToShift - the line to be shifted
      shiftingVector - x,y,z component for the shifting (will be added to lineToShift's starting and end point).
      Returns:
      a new, shifted PirolEdge object
      Throws:
      Exception - if an Exception occurs
    • switchPoints

      public void switchPoints()
      switch starting and end point of this PirolEdge instance.
    • 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) throws Exception
      Throws:
      Exception
    • isParallelZu

      public boolean isParallelZu(PirolEdge k, double infinityFactor) throws Exception
      Throws:
      Exception
    • getSteigung

      public double getSteigung() 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getLaenge

      public double getLaenge() 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)