Public Member Functions | |
Cell (int iX, int iY, Plot oPlot) throws ModelException | |
Constructor. | |
Cell (int iX, int iY, float fXCellLength, float fYCellLength, Plot oPlot) throws ModelException | |
Constructor. | |
int | GetX () |
Gets the X cell coordinate. | |
int | GetY () |
Gets the Y cell coordinate. | |
Static Public Member Functions | |
static Cell[] | TransformOldGridCell (int iOldGridCell, float fOldXGridLength, float fOldYGridLength, int iNumOldXGrids, int iNumOldYGrids, Plot oPlot) throws ModelException |
Transforms an old grid cell number into its equivalent new grid cells. | |
Protected Attributes | |
float | m_fXCellLength |
Length of cell in X direction. | |
float | m_fYCellLength |
Length of cell in Y direction. | |
int | m_iX |
Cell X coordinate. | |
int | m_iY |
Cell Y coordinate. |
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
javawrapper::Cell::Cell | ( | int | iX, | |
int | iY, | |||
Plot | oPlot | |||
) | throws ModelException [inline] |
Constructor.
iX | X cell coordinate | |
iY | Y cell coordinate | |
oPlot | Plot object |
ModelException | if the cell coordinates are invalid |
javawrapper::Cell::Cell | ( | int | iX, | |
int | iY, | |||
float | fXCellLength, | |||
float | fYCellLength, | |||
Plot | oPlot | |||
) | throws ModelException [inline] |
Constructor.
iX | X cell coordinate | |
iY | Y cell coordinate | |
fXCellLength | Cell X length, in m | |
fYCellLength | Cell Y length, in m | |
oPlot | Plot object |
ModelException | if the cell coordinates are invalid |
int javawrapper::Cell::GetX | ( | ) | [inline] |
Gets the X cell coordinate.
int javawrapper::Cell::GetY | ( | ) | [inline] |
Gets the Y cell coordinate.
static Cell [] javawrapper::Cell::TransformOldGridCell | ( | int | iOldGridCell, | |
float | fOldXGridLength, | |||
float | fOldYGridLength, | |||
int | iNumOldXGrids, | |||
int | iNumOldYGrids, | |||
Plot | oPlot | |||
) | throws ModelException [inline, static] |
Transforms an old grid cell number into its equivalent new grid cells.
A strict one-to-one areal overlap cannot be guaranteed unless the old and new grid cells are the same size. The list of new cells covers completely all the area of the old cell, with overlap as needed to ensure the original area is completely covered.
iOldGridCell | The old grid cell number. | |
fOldXGridLength | The length of X grids, in the old coordinate system. | |
fOldYGridLength | The length of Y grids, in the old coordinate system. | |
iNumOldXGrids | Number of grid cells in the X direction, in the old coordinate system. | |
iNumOldYGrids | Number of grid cells in the Y direction, in the old coordinate system. | |
oPlot | Plot object. |
ModelException | Passing through other underlying exceptions. |
float javawrapper::Cell::m_fXCellLength [protected] |
Length of cell in X direction.
float javawrapper::Cell::m_fYCellLength [protected] |
Length of cell in Y direction.