public class PathGenerator extends Object
An object that knows how to translate a Grid of Marching Squares Contour Cells into a Java AWT General Path.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
PathGenerator.NoSaddlePointException |
| Modifier and Type | Method and Description |
|---|---|
GeneralPath |
generalPath(de.gsi.chart.renderer.spi.marchingsquares.Grid grid)
Construct a GeneralPath representing the isoline, itself represented by a given Grid.
|
public GeneralPath generalPath(de.gsi.chart.renderer.spi.marchingsquares.Grid grid)
Construct a GeneralPath representing the isoline, itself represented by a given Grid.
IMPLEMENTATION NOTE: This method is destructive. It alters the Grid instance as it generates the resulting path. If the 'original' Grid instance is needed after invoking this method then it's the responsibility of the caller to deep clone it before passing it here.
grid - the matrix of contour cells w/ side crossing coordinates already interpolated and normalized; i.e. in
the range 0.0..1.0.Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.