Package org.geotools.geometry.iso.topograph2D

Examples of org.geotools.geometry.iso.topograph2D.EdgeEnd


    return tIM;
  }

  private void insertEdgeEnds(List ee) {
    for (Iterator i = ee.iterator(); i.hasNext();) {
      EdgeEnd e = (EdgeEnd) i.next();
      nodes.add(e);
    }
  }
View Full Code Here


    Label label = new Label(edge.getLabel());
    // since edgeStub is oriented opposite to it's parent edge, have to flip
    // sides for edge label
    label.flip();
    EdgeEnd e = new EdgeEnd(edge, eiCurr.coord, pPrev, label);
    // e.print(System.out); System.out.println();
    l.add(e);
  }
View Full Code Here

    // if the next intersection is in the same segment as the current, use
    // it as the endpoint
    if (eiNext != null && eiNext.segmentIndex == eiCurr.segmentIndex)
      pNext = eiNext.coord;

    EdgeEnd e = new EdgeEnd(edge, eiCurr.coord, pNext, new Label(edge
        .getLabel()));
    // Debug.println(e);
    l.add(e);
  }
View Full Code Here

  public void computeLabel() {
    // create the label. If any of the edges belong to areas,
    // the label must be an area label
    boolean isArea = false;
    for (Iterator it = iterator(); it.hasNext();) {
      EdgeEnd e = (EdgeEnd) it.next();
      if (e.getLabel().isArea())
        isArea = true;
    }
    if (isArea)
      label = new Label(Location.NONE, Location.NONE, Location.NONE);
    else
View Full Code Here

    // compute the ON location value
    int boundaryCount = 0;
    boolean foundInterior = false;

    for (Iterator it = iterator(); it.hasNext();) {
      EdgeEnd e = (EdgeEnd) it.next();
      int loc = e.getLabel().getLocation(geomIndex);
      if (loc == Location.BOUNDARY)
        boundaryCount++;
      if (loc == Location.INTERIOR)
        foundInterior = true;
    }
View Full Code Here

   * @param geomIndex
   * @param side
   */
  private void computeLabelSide(int geomIndex, int side) {
    for (Iterator it = iterator(); it.hasNext();) {
      EdgeEnd e = (EdgeEnd) it.next();
      if (e.getLabel().isArea()) {
        int loc = e.getLabel().getLocation(geomIndex, side);
        if (loc == Location.INTERIOR) {
          label.setLocation(geomIndex, side, Location.INTERIOR);
          return;
        } else if (loc == Location.EXTERIOR)
          label.setLocation(geomIndex, side, Location.EXTERIOR);
View Full Code Here

    }
  }

  public void insertEdgeEnds(List ee) {
    for (Iterator i = ee.iterator(); i.hasNext();) {
      EdgeEnd e = (EdgeEnd) i.next();
      nodes.add(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.geotools.geometry.iso.topograph2D.EdgeEnd

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.