deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.coverage.raster.data
Class DataView

java.lang.Object
  extended by org.deegree.coverage.raster.geom.RasterRect
      extended by org.deegree.coverage.raster.data.DataView

public class DataView
extends RasterRect

The DataView class defines a view on Rasterdata.

Version:
$Revision: 21534 $, $Date: 2009-12-17 16:48:59 +0100 (Do, 17 Dez 2009) $
Author:
Rutger Bezema, last edited by: $Author: rbezema $

Field Summary
 RasterDataInfo dataInfo
          the view info on the raster data
(package private)  Map<BandType,Integer> map
           
 
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
 int getBandOffset(int requestedBand)
          Returns the band number of the original data for a requested band in this view on the data.
 
Methods inherited from class org.deegree.coverage.raster.geom.RasterRect
equals, intersection, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dataInfo

public final RasterDataInfo dataInfo
the view info on the raster data


map

Map<BandType,Integer> map
Constructor Detail

DataView

public 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.

Parameters:
xOffset - offset in the original raster data x-axis
yOffset - offset in the original raster data y-axis
width - the width of the new view on the original data
height - the height of the view on the original data
viewOnData - information on the view of this data.

DataView

public DataView(RasterRect rasterRect,
                RasterDataInfo viewOnData)
Constructor if the info on the view on the data equals the original raster data info.

Parameters:
rasterRect - to get the views parameters from.
viewOnData - information on the view of this data.

DataView

public DataView(RasterRect rasterRect,
                RasterDataInfo viewOnData,
                RasterDataInfo originalInfo)
Parameters:
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.

DataView

public DataView(int xOffset,
                int yOffset,
                int width,
                int height,
                RasterDataInfo viewOnData,
                RasterDataInfo originalInfo)
Parameters:
xOffset - offset in the original raster data x-axis
yOffset - offset in the original raster data y-axis
width - the width of the new view on the original data
height - the height of the view on the original data
viewOnData - information on the view of this data.
originalInfo - used to calculate the band offsets for this view.
Method Detail

getBandOffset

public int getBandOffset(int requestedBand)
Returns the band number of the original data for a requested band in this view on the data.

Parameters:
requestedBand - of the view
Returns:
the band number in the original data.

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>