public class IlvMapRaster extends IlvMapArea
| Constructor and Description |
|---|
IlvMapRaster(IlvCoordinate upperLeftCorner,
IlvCoordinate lowerRightCorner,
int columns,
int rows,
short[] values)
Initializes an instance of
IlvMapRaster. |
IlvMapRaster(IlvCoordinate upperLeftCorner,
IlvCoordinate lowerRightCorner,
int columns,
int rows,
short[] values,
short unknownValue)
Initializes an instance of
IlvMapRaster that contains
unknown values. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(IlvCoordinate c)
Returns
true if c is contained in the object. |
Rectangle2D |
getBounds(Rectangle2D result)
Returns the bounds of this
IlvMapGeometry |
int |
getColumns()
Returns the number of columns in the raster.
|
IlvCoordinate |
getLowerRightCorner()
Returns the lower-right corner of the raster.
|
IlvMapCurve |
getOutline()
Returns the curve that represents the outline of this raster.
|
int |
getRows()
Returns the number of rows in the raster.
|
IlvCoordinate |
getUpperLeftCorner()
Returns the upper-left corner of the raster.
|
short |
getValue(IlvCoordinate point)
Returns the value of the raster at the specified point, expressed
in the projection system of the geometry.
|
short |
getValue(int column,
int row)
Returns the value corresponding to the given column and row.
|
short[] |
getValues()
Returns the array of values.
|
public IlvMapRaster(IlvCoordinate upperLeftCorner, IlvCoordinate lowerRightCorner, int columns, int rows, short[] values, short unknownValue)
IlvMapRaster that contains
unknown values.upperLeftCorner - Upper-left corner of the raster.lowerRightCorner - Lower-right corner of the raster.columns - Number of columns in the raster.rows - Number of rows in the raster.values - Array of values. The value of row y and of column x
is accessed by values[y * columns + x]. The value of
row 0 and column 0 is at the upper-left corner of the rectangle.unknownValue - Value meaning "unknown value".public IlvMapRaster(IlvCoordinate upperLeftCorner, IlvCoordinate lowerRightCorner, int columns, int rows, short[] values)
IlvMapRaster.upperLeftCorner - Upper-left corner of the raster.lowerRightCorner - Lower-right corner of the raster.columns - Number of columns in the raster.rows - Number of rows in the raster.values - Array of values. The value of row y and of column x
is accessed by values[y * columns + x]. The value of row 0 and
column 0 is at the upper-left corner of the rectangle.public short[] getValues()
public int getRows()
public int getColumns()
public IlvCoordinate getUpperLeftCorner()
public IlvCoordinate getLowerRightCorner()
public short getValue(int column,
int row)
throws IlvMapUnknownValueException
column - Column in the raster array.row - Row in the raster array.IlvMapUnknownValueException - if the value is unknown.public short getValue(IlvCoordinate point) throws IlvMapUnknownValueException
getValue(column, row) method.point - Point at which the value is queried, expressed in the
projection coordinate system of the feature.IlvMapUnknownValueException - if the value is unknown or if the
point is out of the area of the raster.public boolean contains(IlvCoordinate c)
true if c is contained in the object.contains in class IlvMapAreac - The point to be checked.true if c is contained
in the object.public IlvMapCurve getOutline()
getOutline in class IlvMapAreapublic Rectangle2D getBounds(Rectangle2D result)
IlvMapGeometrygetBounds in class IlvMapGeometry© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.