|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConstGrid
Interface to the constant methods of class Grid.
Grid| Method Summary | |
|---|---|
Grid |
add(ConstGrid grid)
create a new grid that is the sum of this grid and the given grid. |
ConstGrid |
clone()
clone this grid. |
double |
get(int x,
int y,
int z)
returns the element at the specified position. |
int |
getCols()
Gets the cols. |
int |
getLevel()
Get the resolution level. |
int |
getRows()
Gets the rows. |
int |
getSlices()
Gets the slices. |
boolean |
isBoundary(int x,
int y,
int z)
determines if the specified element is at the boundary of the grid. |
boolean |
isInterior(int x,
int y,
int z)
determines if the specified element is in the interior of the grid. |
Grid |
newInstance(int sx,
int sy,
int sz,
int level,
double value)
create a new grid with exactly the same handling of the boundary (i.e. |
void |
set(int x,
int y,
int z,
double value)
Set the value for a grid node. |
void |
setLevel(int level)
Set the resolution level. |
| Method Detail |
|---|
double get(int x,
int y,
int z)
x - the x index of the element (0 <= x < size())y - the y index of the element (0 <= y < size())z - the z index of the element (0 <= z < size())
void set(int x,
int y,
int z,
double value)
sx - the dimension in Xsy - the dimension in Ysz - the dimension in Zlevel - the resolution levelvalue - the valueint getRows()
int getCols()
int getSlices()
boolean isInterior(int x,
int y,
int z)
x - the x index of the elementy - the y index of the elementz - the z index of the element
boolean isBoundary(int x,
int y,
int z)
x - the x index of the elementy - the y index of the elementz - the z index of the element
Grid newInstance(int sx,
int sy,
int sz,
int level,
double value)
value - the value to which all interior grid elements are to be setsx - the sxsy - the sysz - the szlevel - the level
int getLevel()
void setLevel(int level)
level - the levelConstGrid clone()
Grid add(ConstGrid grid)
grid - the grid to add to this grid
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||