Package mgui.morph.sections
Class MappedPolygon2DPath
java.lang.Object
mgui.morph.sections.MappedPolygon2DPath
public class MappedPolygon2DPath
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ArrayList<MappedPolygon2D>bufferjava.util.ArrayList<MappedPolygon2D>mapsPolygon2DstartPoly -
Constructor Summary
Constructors Constructor Description MappedPolygon2DPath(java.util.ArrayList<MappedPolygon2D> maps)MappedPolygon2DPath(Polygon2D startPoly)MappedPolygon2DPath(MappedPolygon2D map)MappedPolygon2DPath(MappedPolygon2DPath path) -
Method Summary
Modifier and Type Method Description voidaddMap(MappedPolygon2D map)voidaddMaps(java.util.ArrayList<MappedPolygon2D> maps)java.util.ArrayList<MappedPolygon2DPath>getBifurcatedPaths()Adds a map to this path and creates new paths for each additional map in the buffer.intgetCount()java.util.IteratorgetIterator()MappedPolygon2DgetLastMap()Polygon2DgetLastPolygon()java.util.ArrayList<MappedPolygon2D>getPolygons()Polygon2DgetStartPolygon()voidnewMap(MappedPolygon2D map)Method adds a map to this path's buffer.voidresetBuffer()voidsetMaps(java.util.ArrayList<MappedPolygon2D> maps)voidsort()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
maps
-
startPoly
-
buffer
-
-
Constructor Details
-
MappedPolygon2DPath
-
MappedPolygon2DPath
-
MappedPolygon2DPath
-
MappedPolygon2DPath
-
-
Method Details
-
setMaps
-
getPolygons
-
getCount
public int getCount() -
getIterator
public java.util.Iterator getIterator() -
addMap
-
addMaps
-
getLastPolygon
-
getStartPolygon
-
getLastMap
-
sort
public void sort() -
resetBuffer
public void resetBuffer() -
newMap
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
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
-