public class LayeredVolume extends ScalarField3D.Default implements ScalarField3D
ScalarField3D.Default, ScalarField3D.Empty
Constructor and Description |
---|
LayeredVolume()
Instantiates a new layered volume.
|
LayeredVolume(ScalarField2D... _layers)
Instantiates a new layered volume.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayers(ScalarField2D... _layers)
Adds the layers.
|
int |
getDepth() |
int |
getHeight() |
ScalarField2D |
getLayer(int i)
Gets the layer.
|
float |
getValue(int x,
int y,
int z)
Gets the value.
|
int |
getWidth() |
getCoordinate, getNeighbors, getSize, getValue
getValueRange
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCoordinate
getNeighbors, getSize, getValue, getValueRange
public LayeredVolume()
public LayeredVolume(ScalarField2D... _layers)
_layers
- the layerspublic void addLayers(ScalarField2D... _layers)
_layers
- the layerspublic 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 ScalarField2D getLayer(int i)
i
- the i