public class StraightThru2D extends java.lang.Object implements ScalarField2D
ScalarField2D.Default, ScalarField2D.Empty, ScalarField2D.Test
Constructor and Description |
---|
StraightThru2D(ScalarField2D src)
Instantiates a new straight thru 2 D.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getCoordinate(int x,
int y) |
int |
getHeight() |
int[] |
getNeighbors(int nodeID)
Gets the neighbors.
|
int |
getSize()
Gets the size.
|
float |
getValue(int nodeID)
Gets the value.
|
float |
getValue(int x,
int y)
Gets the value.
|
double[] |
getValueRange()
Gets the value range.
|
int |
getWidth() |
usf.saav.common.mvc.swing.TImage |
toPImage(usf.saav.common.mvc.swing.TGraphics g,
usf.saav.common.colormap.Colormap colormap) |
public StraightThru2D(ScalarField2D src)
src
- the srcpublic int getSize()
ScalarFieldND
getSize
in interface ScalarFieldND
public float getValue(int nodeID)
ScalarFieldND
getValue
in interface ScalarFieldND
nodeID
- the node IDpublic int[] getNeighbors(int nodeID)
ScalarFieldND
getNeighbors
in interface ScalarFieldND
nodeID
- the node IDpublic int getWidth()
getWidth
in interface usf.saav.common.algorithm.Surface1D
getWidth
in interface usf.saav.common.algorithm.Surface2D
public int getHeight()
getHeight
in interface usf.saav.common.algorithm.Surface2D
public float getValue(int x, int y)
ScalarField2D
getValue
in interface ScalarField2D
x
- the xy
- the ypublic double[] getCoordinate(int x, int y)
getCoordinate
in interface ScalarField2D
public double[] getValueRange()
ScalarFieldND
getValueRange
in interface ScalarFieldND
public usf.saav.common.mvc.swing.TImage toPImage(usf.saav.common.mvc.swing.TGraphics g, usf.saav.common.colormap.Colormap colormap)
toPImage
in interface ScalarField2D