Examples of ShapeFeature


Examples of de.fhpotsdam.unfolding.data.ShapeFeature

    shapeGroup = createShape(PShape.GROUP);

    for (int i = 0; i < features.size(); i++) {
      Feature feature = features.get(i);
      if (feature.getType().equals(FeatureType.POLYGON)) {
        ShapeFeature shapeFeature = (ShapeFeature) feature;

        updateShape("c" + i, shapeFeature, false);
      }
    }
    return shapeGroup;
View Full Code Here

Examples of de.fhpotsdam.unfolding.data.ShapeFeature

  public void updateFeatures(List<Feature> features) {
    for (int i = 0; i < features.size(); i++) {
      Feature feature = features.get(i);
      if (feature.getType().equals(FeatureType.POLYGON)) {
        ShapeFeature shapeFeature = (ShapeFeature) feature;
       
        updateShape("c" + i, shapeFeature, true);
      }
    }
View Full Code Here

Examples of de.fhpotsdam.unfolding.data.ShapeFeature

  }

  public List<PVector> simplifyFeature(Feature feature) {
    List<PVector> simplifiedPoints = new ArrayList<PVector>();
    if (feature instanceof ShapeFeature) {
      ShapeFeature shapeFeature = (ShapeFeature) feature;

      List<PVector> points = getPositions(shapeFeature.getLocations());
      simplifiedPoints = GeneralizationUtils.simplify(points, tolerance, true);
    }
    return simplifiedPoints;
  }
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.