public class StraightThru3D extends java.lang.Object implements ScalarField3D
ScalarField3D.Default, ScalarField3D.Empty
Constructor and Description |
---|
StraightThru3D(ScalarField3D src)
Instantiates a new straight thru 3 D.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getCoordinate(int x,
int y,
int z) |
int |
getDepth() |
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,
int z)
Gets the value.
|
double[] |
getValueRange()
Gets the value range.
|
int |
getWidth() |
public StraightThru3D(ScalarField3D 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 ScalarField3D
getWidth
in interface usf.saav.common.algorithm.Surface1D
getWidth
in interface usf.saav.common.algorithm.Surface2D
getWidth
in interface usf.saav.common.algorithm.Surface3D
public int getHeight()
getHeight
in interface ScalarField3D
getHeight
in interface usf.saav.common.algorithm.Surface2D
getHeight
in interface usf.saav.common.algorithm.Surface3D
public int getDepth()
getDepth
in interface ScalarField3D
getDepth
in interface usf.saav.common.algorithm.Surface3D
public float getValue(int x, int y, int z)
ScalarField3D
getValue
in interface ScalarField3D
x
- the xy
- the yz
- the zpublic double[] getCoordinate(int x, int y, int z)
getCoordinate
in interface ScalarField3D
public double[] getValueRange()
ScalarFieldND
getValueRange
in interface ScalarFieldND