|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.coverage.raster.data.nio.ByteBufferRasterData org.deegree.coverage.raster.data.nio.LineInterleavedRasterData
public class LineInterleavedRasterData
This class implements a line-interleaved, ByteBuffer-based RasterData.
Field Summary |
---|
Fields inherited from class org.deegree.coverage.raster.data.nio.ByteBufferRasterData |
---|
dataAccess, dataInfo, info, rasterHeight, rasterWidth |
Fields inherited from interface org.deegree.coverage.raster.data.RasterData |
---|
TYPE_BYTE_RGB, TYPE_BYTE_RGBA |
Constructor Summary | |
---|---|
LineInterleavedRasterData(RasterRect sampleDomain,
int rasterWidth,
int rasterHeight,
RasterDataInfo dataInfo)
Creates a new LineInterleavedRasterData with given size, number of bands and data type, backed with no data. |
|
LineInterleavedRasterData(RasterRect sampleDomain,
int rasterWidth,
int rasterHeight,
RasterReader reader,
RasterDataInfo dataInfo)
Creates a new LineInterleavedRasterData with given size, number of bands and data type |
Method Summary | |
---|---|
protected ByteBufferRasterData |
createCompatibleEmptyRasterData()
|
LineInterleavedRasterData |
createCompatibleRasterData(DataView view)
Implementation should create a view of this raster data. |
RasterData |
createCompatibleWritableRasterData(RasterRect sampleDomain,
BandType[] bands)
Create a writable compatible raster with the height and width of the given sample domain. |
int |
getBandStride()
Returns the byte offset to the next sample of the same pixel. |
int |
getLineStride()
Returns the byte offset to the next row (same column, same sample) |
int |
getPixelStride()
Retruns the byte offset to the next pixel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LineInterleavedRasterData(RasterRect sampleDomain, int rasterWidth, int rasterHeight, RasterDataInfo dataInfo)
sampleDomain
- the raster rectangle defining the sample domain of this raster data.rasterWidth
- width of the underlying raster data.rasterHeight
- height of the underlying raster data.dataInfo
- containing information about the underlying raster.public LineInterleavedRasterData(RasterRect sampleDomain, int rasterWidth, int rasterHeight, RasterReader reader, RasterDataInfo dataInfo)
sampleDomain
- the raster rectangle defining the sample domain of this raster data.rasterWidth
- width of the underlying raster data.rasterHeight
- height of the underlying raster data.reader
- to be used for reading the data, may be nulldataInfo
- containing information about the underlying raster.
Method Detail |
---|
public LineInterleavedRasterData createCompatibleRasterData(DataView view)
ByteBufferRasterData
createCompatibleRasterData
in class ByteBufferRasterData
view
- the new view on this data
ByteBuffer
public RasterData createCompatibleWritableRasterData(RasterRect sampleDomain, BandType[] bands)
RasterData
sampleDomain
- the raster rectangle defining the sample domain of this raster data.bands
- indices to the requested bands if null
all bands will be available.
protected ByteBufferRasterData createCompatibleEmptyRasterData()
createCompatibleEmptyRasterData
in class ByteBufferRasterData
public final int getBandStride()
ByteBufferRasterData
getBandStride
in class ByteBufferRasterData
public final int getLineStride()
ByteBufferRasterData
getLineStride
in class ByteBufferRasterData
public final int getPixelStride()
ByteBufferRasterData
getPixelStride
in class ByteBufferRasterData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |