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>
buffer
java.util.ArrayList<MappedPolygon2D>
maps
Polygon2D
startPoly
-
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 void
addMap(MappedPolygon2D map)
void
addMaps(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.int
getCount()
java.util.Iterator
getIterator()
MappedPolygon2D
getLastMap()
Polygon2D
getLastPolygon()
java.util.ArrayList<MappedPolygon2D>
getPolygons()
Polygon2D
getStartPolygon()
void
newMap(MappedPolygon2D map)
Method adds a map to this path's buffer.void
resetBuffer()
void
setMaps(java.util.ArrayList<MappedPolygon2D> maps)
void
sort()
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
-