public abstract class VoronoiCellWriter
extends java.lang.Object
Constructor and Description |
---|
VoronoiCellWriter() |
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.List<java.lang.String> |
renderCells(java.util.List<BaseVoronoiCell> cells)
Given a list of cells, write the output
|
void |
writeToFile(BaseVoronoiCell cell,
java.lang.String filename)
Write a single cell to file.
|
void |
writeToFile(java.util.List<BaseVoronoiCell> cells,
java.lang.String filename)
Given list of cells, write them to disk in a format that can be plotted.
|
protected abstract java.util.List<java.lang.String> renderCells(java.util.List<BaseVoronoiCell> cells)
cells
- Cells to be outputtedpublic void writeToFile(java.util.List<BaseVoronoiCell> cells, java.lang.String filename) throws java.io.IOException
cells
- List of cellsfilename
- Filenamejava.io.IOException
public void writeToFile(BaseVoronoiCell cell, java.lang.String filename) throws java.io.IOException
cell
- Cell to write to filefilename
- Path to output filejava.io.IOException
writeToFile(java.util.List, java.lang.String)