Class MappedPolygon2DPath

java.lang.Object
mgui.morph.sections.MappedPolygon2DPath

public class MappedPolygon2DPath
extends java.lang.Object
  • Field Details

  • Constructor Details

    • MappedPolygon2DPath

      public MappedPolygon2DPath​(Polygon2D startPoly)
    • MappedPolygon2DPath

      public MappedPolygon2DPath​(MappedPolygon2D map)
    • MappedPolygon2DPath

      public MappedPolygon2DPath​(java.util.ArrayList<MappedPolygon2D> maps)
    • MappedPolygon2DPath

      public MappedPolygon2DPath​(MappedPolygon2DPath path)
  • Method Details

    • setMaps

      public void setMaps​(java.util.ArrayList<MappedPolygon2D> maps)
    • getPolygons

      public java.util.ArrayList<MappedPolygon2D> getPolygons()
    • getCount

      public int getCount()
    • getIterator

      public java.util.Iterator getIterator()
    • addMap

      public void addMap​(MappedPolygon2D map)
    • addMaps

      public void addMaps​(java.util.ArrayList<MappedPolygon2D> maps)
    • getLastPolygon

      public Polygon2D getLastPolygon()
    • getStartPolygon

      public Polygon2D getStartPolygon()
    • getLastMap

      public MappedPolygon2D getLastMap()
    • sort

      public void sort()
    • resetBuffer

      public void resetBuffer()
    • newMap

      public void newMap​(MappedPolygon2D map)
      Method adds a map to this path's buffer. Maps in the buffer will be added to this and new paths by the getBifurcatedPaths() method.
      Parameters:
      map - Map to add to buffer
    • getBifurcatedPaths

      public java.util.ArrayList<MappedPolygon2DPath> getBifurcatedPaths()
      Adds a map to this path and creates new paths for each additional map in the buffer. Maps are added to this buffer using the newMap method.
      Returns:
      an ArrayList of bifurcated paths, one for each additional map in the buffer