|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.IlvMapGeometry
ilog.views.maps.geometry.IlvMapArea
ilog.views.maps.geometry.IlvMapRaster
public class IlvMapRaster
This class defines a raster. A raster is a georeferenced array of values. It is defined on a rectangular area and has a value for each point in this area. It can be used, for example, to represent terrain elevations, atmospheric pressures, temperatures, and so on.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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)
IlvMapGeometry
getBounds in class IlvMapGeometry
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||