|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GridData
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 |
---|
double interpolate(double x, double y, int component)
x
- the untabulated xy
- the untabulated ycomponent
- the component index
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
void setScale(double xmin, double xmax, double ymin, double ymax)
xmin
- xmax
- ymin
- ymax
- void setCellScale(double left, double right, double bottom, double top)
left
- right
- bottom
- top
- void setCenteredCellScale(double xmin, double xmax, double ymin, double ymax)
xmin
- xmax
- ymin
- ymax
- boolean isCellData()
void setComponentName(int component, java.lang.String name)
component
- intname
- Stringjava.lang.String getComponentName(int i)
i
- int
int getComponentCount()
double getValue(int ix, int iy, int component)
ix
- x indexiy
- y indexcomponent
-
void setValue(int ix, int iy, int component, double value)
ix
- x indexiy
- y indexcomponent
- value
- int getNx()
int getNy()
double[][][] getData()
double[] getZRange(int n)
double getLeft()
double getRight()
double getTop()
double getBottom()
double getDx()
double getDy()
double indexToX(int i)
i
- int
double indexToY(int i)
i
- int
int xToIndex(double x)
x
- double the coordinate
int yToIndex(double y)
y
- double the coordinate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |