org.geotools.geometry.iso.util.topology
Class BdryEdge2D

java.lang.Object
  extended by java.awt.geom.Line2D
      extended by org.geotools.geometry.iso.util.topology.BRepEdge2D
          extended by org.geotools.geometry.iso.util.topology.BdryEdge2D
All Implemented Interfaces:
java.awt.Shape, java.lang.Cloneable

public class BdryEdge2D
extends BRepEdge2D

Author:
roehrig TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Line2D
java.awt.geom.Line2D.Double, java.awt.geom.Line2D.Float
 
Field Summary
protected  BRepNode2D p1
           
protected  BRepNode2D p2
           
 
Fields inherited from class org.geotools.geometry.iso.util.topology.BRepEdge2D
surfaceLeft, surfaceRight, value
 
Constructor Summary
BdryEdge2D(BRepNode2D p1, BRepNode2D p2, BRepFace2D surfaceRight, BRepFace2D surfaceLeft)
           
 
Method Summary
 java.awt.geom.Rectangle2D getBounds2D()
           
 BRepFace2D getNeighborSimplex(BRepFace2D f)
           
 BRepNode2D getNodeBeg()
           
 BRepNode2D getNodeEnd()
           
 java.awt.geom.Point2D getP1()
           
 java.awt.geom.Point2D getP2()
           
 double getX1()
           
 double getX2()
           
 double getY1()
           
 double getY2()
           
 boolean hasPoint(BRepNode2D p)
           
 boolean hasSimplex(BRepFace2D s)
           
 void merge(BdryEdge2D other)
           
 void setLine(double x1, double y1, double x2, double y2)
           
 void setSimplex(BRepFace2D simplex)
           
 java.util.ArrayList split(double maxSpacing)
           
 
Methods inherited from class org.geotools.geometry.iso.util.topology.BRepEdge2D
getSurfaceLeft, getSurfaceRight
 
Methods inherited from class java.awt.geom.Line2D
clone, contains, contains, contains, contains, getBounds, getPathIterator, getPathIterator, intersects, intersects, intersectsLine, intersectsLine, linesIntersect, ptLineDist, ptLineDist, ptLineDist, ptLineDistSq, ptLineDistSq, ptLineDistSq, ptSegDist, ptSegDist, ptSegDist, ptSegDistSq, ptSegDistSq, ptSegDistSq, relativeCCW, relativeCCW, relativeCCW, setLine, setLine
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

p1

protected BRepNode2D p1

p2

protected BRepNode2D p2
Constructor Detail

BdryEdge2D

public BdryEdge2D(BRepNode2D p1,
                  BRepNode2D p2,
                  BRepFace2D surfaceRight,
                  BRepFace2D surfaceLeft)
Method Detail

getNodeBeg

public BRepNode2D getNodeBeg()

getNodeEnd

public BRepNode2D getNodeEnd()

setSimplex

public void setSimplex(BRepFace2D simplex)

hasPoint

public boolean hasPoint(BRepNode2D p)
Returns:
Returns the point0.

hasSimplex

public boolean hasSimplex(BRepFace2D s)
Returns:
Returns the surfaceLeft.

getNeighborSimplex

public BRepFace2D getNeighborSimplex(BRepFace2D f)
Parameters:
f -
Returns:

getX1

public double getX1()
Specified by:
getX1 in class java.awt.geom.Line2D

getY1

public double getY1()
Specified by:
getY1 in class java.awt.geom.Line2D

getP1

public java.awt.geom.Point2D getP1()
Specified by:
getP1 in class java.awt.geom.Line2D

getX2

public double getX2()
Specified by:
getX2 in class java.awt.geom.Line2D

getY2

public double getY2()
Specified by:
getY2 in class java.awt.geom.Line2D

getP2

public java.awt.geom.Point2D getP2()
Specified by:
getP2 in class java.awt.geom.Line2D

setLine

public void setLine(double x1,
                    double y1,
                    double x2,
                    double y2)
Specified by:
setLine in class java.awt.geom.Line2D

getBounds2D

public java.awt.geom.Rectangle2D getBounds2D()

split

public java.util.ArrayList split(double maxSpacing)
Parameters:
maxSpacing -

merge

public void merge(BdryEdge2D other)


Copyright © 1996-2010 Geotools. All Rights Reserved.