Examples of EdgeEnd


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

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

    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

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

    // 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

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

  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

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

    // 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

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

   * @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

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

    }
  }

  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
Copyright © 2018 www.massapi.com. 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.