|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.coverage.raster.geom.RasterRect
org.deegree.coverage.raster.data.DataView
public class DataView
The DataView class defines a view on Rasterdata.
| Field Summary | |
|---|---|
RasterDataInfo |
dataInfo
the view info on the raster data |
| Fields inherited from class org.deegree.coverage.raster.geom.RasterRect |
|---|
height, width, x, y |
| Constructor Summary | |
|---|---|
DataView(int xOffset,
int yOffset,
int width,
int height,
RasterDataInfo viewOnData)
Constructor if the info on the view on the data equals the original raster data info. |
|
DataView(int xOffset,
int yOffset,
int width,
int height,
RasterDataInfo viewOnData,
RasterDataInfo originalInfo)
|
|
DataView(RasterRect rasterRect,
RasterDataInfo viewOnData)
Constructor if the info on the view on the data equals the original raster data info. |
|
DataView(RasterRect rasterRect,
RasterDataInfo viewOnData,
RasterDataInfo originalInfo)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
|
int |
getBandOffset(int requestedBand)
Returns the band number of the original data for a requested band in this view on the data. |
int |
hashCode()
Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even distribution and is relatively fast. |
| Methods inherited from class org.deegree.coverage.raster.geom.RasterRect |
|---|
intersection, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final RasterDataInfo dataInfo
| Constructor Detail |
|---|
public DataView(int xOffset,
int yOffset,
int width,
int height,
RasterDataInfo viewOnData)
xOffset - offset in the original raster data x-axisyOffset - offset in the original raster data y-axiswidth - the width of the new view on the original dataheight - the height of the view on the original dataviewOnData - information on the view of this data.
public DataView(RasterRect rasterRect,
RasterDataInfo viewOnData)
rasterRect - to get the views parameters from.viewOnData - information on the view of this data.
public DataView(RasterRect rasterRect,
RasterDataInfo viewOnData,
RasterDataInfo originalInfo)
rasterRect - to get the views parameters from.viewOnData - information on the view of this data.originalInfo - used to calculate the band offsets for this view.
public DataView(int xOffset,
int yOffset,
int width,
int height,
RasterDataInfo viewOnData,
RasterDataInfo originalInfo)
xOffset - offset in the original raster data x-axisyOffset - offset in the original raster data y-axiswidth - the width of the new view on the original dataheight - the height of the view on the original dataviewOnData - information on the view of this data.originalInfo - used to calculate the band offsets for this view.| Method Detail |
|---|
public int getBandOffset(int requestedBand)
requestedBand - of the view
public boolean equals(java.lang.Object other)
equals in class RasterRectpublic int hashCode()
Combining the hash code(s) computed above: result = 37 * result + code;
hashCode in class RasterRectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||