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()
ScalarFieldNDgetSize in interface ScalarFieldNDpublic float getValue(int nodeID)
ScalarFieldNDgetValue in interface ScalarFieldNDnodeID - the node IDpublic int[] getNeighbors(int nodeID)
ScalarFieldNDgetNeighbors in interface ScalarFieldNDnodeID - the node IDpublic int getWidth()
getWidth in interface usf.saav.common.algorithm.Surface1DgetWidth in interface usf.saav.common.algorithm.Surface2Dpublic int getHeight()
getHeight in interface usf.saav.common.algorithm.Surface2Dpublic float getValue(int x,
int y)
ScalarField2DgetValue in interface ScalarField2Dx - the xy - the ypublic double[] getCoordinate(int x,
int y)
getCoordinate in interface ScalarField2Dpublic double[] getValueRange()
ScalarFieldNDgetValueRange in interface ScalarFieldNDpublic usf.saav.common.mvc.swing.TImage toPImage(usf.saav.common.mvc.swing.TGraphics g,
usf.saav.common.colormap.Colormap colormap)
toPImage in interface ScalarField2D