public interface Buffer extends StatisticsCapable, java.lang.Iterable<Band>, Observer, Disposable
| Modifier and Type | Field and Description |
|---|---|
static int |
INTERPOLATION_BicubicSpline |
static int |
INTERPOLATION_Bilinear |
static int |
INTERPOLATION_BSpline |
static int |
INTERPOLATION_InverseDistance |
static int |
INTERPOLATION_NearestNeighbour |
static int |
INTERPOLATION_Undefined |
| Modifier and Type | Method and Description |
|---|---|
void |
addBand(Band band)
Adds a band
|
boolean |
areAllBandsOfTheSameType() |
Buffer |
clip(Envelope envelope) |
Buffer |
convert(ICoordTrans ct,
SimpleTaskStatus status)
Converts buffer using specified coordinate transformation
|
Buffer |
createInterpolated(int rows,
int columns,
int interpolationMode,
SimpleTaskStatus status)
Creates a interpolated buffer
|
Band |
getBand(int pos)
Gets the band in the "pos" position
|
Band.BandByte |
getBandByte(int pos) |
int |
getBandCount() |
Band.BandDouble |
getBandDouble(int pos) |
Band.BandFloat |
getBandFloat(int pos) |
Band.BandInt |
getBandInt(int pos) |
NoData[] |
getBandNoData() |
Band[] |
getBands() |
Band.BandShort |
getBandShort(int pos) |
BandInfo[] |
getBandsInfo() |
int[] |
getBandTypes() |
java.awt.image.BufferedImage |
getBufferedImage() |
int |
getColumns() |
BufferDimensions |
getDimensions() |
Envelope |
getEnvelope() |
double |
getPixelSizeX()
Deprecated.
use getDimensions().getPixelSizeX()
|
double |
getPixelSizeY()
Deprecated.
use getDimensions().getPixelSizeY()
|
IProjection |
getProjection() |
int |
getRows() |
boolean |
isInside(int cellX,
int cellY)
Returns true if passed as parameter cell is inside of the buffer, else returns false.
|
boolean |
isInside(Point point)
Returns true if passed as parameter point is inside of the buffer, else returns false.
|
void |
removeBand(int pos)
Removes the band in the "pos" position
|
void |
setBand(int pos,
Band band)
Sets a band in the "pos" position
|
void |
switchBands(int[] positions)
Switches the bands as indicated by the parameter
|
void |
switchBands(int pos1,
int pos2)
Switches two bands
|
getStatisticsaddObserver, deleteObserver, deleteObserversdisposestatic final int INTERPOLATION_Undefined
static final int INTERPOLATION_NearestNeighbour
static final int INTERPOLATION_Bilinear
static final int INTERPOLATION_InverseDistance
static final int INTERPOLATION_BicubicSpline
static final int INTERPOLATION_BSpline
int getBandCount()
Band[] getBands()
BandInfo[] getBandsInfo()
int getColumns()
int getRows()
Envelope getEnvelope() throws LocatorException, CreateEnvelopeException
CreateEnvelopeExceptionLocatorExceptionIProjection getProjection()
boolean isInside(int cellX,
int cellY)
cellX - Cell's x positioncellY - Cell's y positionboolean isInside(Point point)
point - void addBand(Band band)
band - void setBand(int pos,
Band band)
throws BandException
pos - band - BandExceptionvoid removeBand(int pos)
pos - Band getBand(int pos)
pos - Band.BandByte getBandByte(int pos)
pos - Band.BandShort getBandShort(int pos)
pos - Band.BandInt getBandInt(int pos)
pos - Band.BandFloat getBandFloat(int pos)
pos - Band.BandDouble getBandDouble(int pos)
pos - void switchBands(int[] positions)
positions - void switchBands(int pos1,
int pos2)
pos1 - pos2 - Buffer createInterpolated(int rows, int columns, int interpolationMode, SimpleTaskStatus status) throws LocatorException, BufferException
rows - columns - interpolationMode - status - BufferExceptionLocatorExceptionBuffer convert(ICoordTrans ct, SimpleTaskStatus status) throws BufferException
ct - Coordinate transformation to convert bufferstatus - BufferException - If there are problems converting bufferint[] getBandTypes()
boolean areAllBandsOfTheSameType()
NoData[] getBandNoData()
Buffer clip(Envelope envelope) throws BufferException
envelope - BufferExceptiondouble getPixelSizeX()
double getPixelSizeY()
java.awt.image.BufferedImage getBufferedImage()
BufferDimensions getDimensions()