|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The GridData interface defines methods for objects that store data on a grid.
Method Summary | |
double |
getBottom()
Gets the y value for the last row of the grid. |
int |
getComponentCount()
Gets the number of data components. |
java.lang.String |
getComponentName(int i)
Gets the name of the component |
double[][][] |
getData()
Gets the array containing the data. |
double |
getDx()
Gets the change in x between grid columns moving from right to left. |
double |
getDy()
Gets the change in y between grid rows moving from top to bottom. |
double |
getLeft()
Gets the x value for the first column in the grid. |
int |
getNx()
Gets the number of x entries. |
int |
getNy()
Gets the number of y entries. |
double |
getRight()
Gets the x value for the right column in the grid. |
double |
getTop()
Gets the y value for the first row of the grid. |
double |
getValue(int ix,
int iy,
int component)
Gets the value of the given component at the given location. |
double[] |
getZRange(int n)
Gets the minimum and maximum values of the n-th component. |
double |
indexToX(int i)
Gets the x coordinate for the given index. |
double |
indexToY(int i)
Gets the y coordinate for the given index. |
double |
interpolate(double x,
double y,
int component)
Estimates the value of a component at an untabulated point, (x,y). |
double[] |
interpolate(double x,
double y,
int[] indexes,
double[] values)
Estimates multiple sample components at an untabulated point, (x,y). |
boolean |
isCellData()
Gets the cellData flag. |
void |
setCellScale(double left,
double right,
double bottom,
double top)
Sets the left, right, bottom, and top bounds of the grid using a cell model and sets the cellScale flag. |
void |
setCenteredCellScale(double xmin,
double xmax,
double ymin,
double ymax)
Sets the grid such the centers of the corner cells match the given coordinates. |
void |
setComponentName(int component,
java.lang.String name)
Sets the name of the component. |
void |
setScale(double xmin,
double xmax,
double ymin,
double ymax)
Sets the the grid data using a lattice model and clears the cellScale flag. |
void |
setValue(int ix,
int iy,
int component,
double value)
Sets the value of the given component at the given location. |
int |
xToIndex(double x)
Gets closest index from the given x world coordinate. |
int |
yToIndex(double y)
Gets closest index from the given y world coordinate. |
Method Detail |
public double interpolate(double x, double y, int component)
x
- the untabulated xy
- the untabulated ycomponent
- the component index
public double[] interpolate(double x, double y, int[] indexes, double[] values)
x
- the untabulated xy
- the untabulated yindexes
- to be interpolatedvalues
- the array that will contain the interpolated values
public void setScale(double xmin, double xmax, double ymin, double ymax)
xmin
- xmax
- ymin
- ymax
- public void setCellScale(double left, double right, double bottom, double top)
left
- right
- bottom
- top
- public void setCenteredCellScale(double xmin, double xmax, double ymin, double ymax)
xmin
- xmax
- ymin
- ymax
- public boolean isCellData()
public void setComponentName(int component, java.lang.String name)
component
- intname
- Stringpublic java.lang.String getComponentName(int i)
i
- int
public int getComponentCount()
public double getValue(int ix, int iy, int component)
ix
- x indexiy
- y indexcomponent
-
public void setValue(int ix, int iy, int component, double value)
ix
- x indexiy
- y indexcomponent
- value
- public int getNx()
public int getNy()
public double[][][] getData()
public double[] getZRange(int n)
public double getLeft()
public double getRight()
public double getTop()
public double getBottom()
public double getDx()
public double getDy()
public double indexToX(int i)
i
- int
public double indexToY(int i)
i
- int
public int xToIndex(double x)
x
- double the coordinate
public int yToIndex(double y)
y
- double the coordinate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |