public abstract class RasterBuffer extends AbstractBuffer implements Buffer
| Modifier and Type | Field and Description |
|---|---|
static boolean |
cacheOn
Variable estática que si está a false desactiva el uso de caché.
|
protected boolean[] |
cancel |
protected boolean |
canceled |
protected int |
dataType |
static boolean |
forceToLoadInCache
Fuerza la carga de los datos en caché independientemente de su tamaño.
|
static boolean |
forceToLoadInReadOnlyCache
Fuerza la carga de los datos en caché de solo lectura independientemente de su tamaño.
|
protected int |
height |
static int |
INTERPOLATION_PROCESS |
protected int |
nBands |
NoData |
noDataValue |
protected double |
notValidValue
Valor con el que se rellena una banda no valida del buffer.
|
protected int |
progressInterpolation |
protected int |
width |
INCREMENTABLE_HISTOGRAM, INCREMENTABLE_INTERPOLATION, INTERPOLATION_BicubicSpline, INTERPOLATION_Bilinear, INTERPOLATION_BSpline, INTERPOLATION_InverseDistance, INTERPOLATION_NearestNeighbour, INTERPOLATION_Undefined, TYPE_BYTE, TYPE_DOUBLE, TYPE_FLOAT, TYPE_IMAGE, TYPE_INT, TYPE_SHORT, TYPE_UNDEFINED, TYPE_USHORT| Constructor and Description |
|---|
RasterBuffer() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor)
Provides each value of this Store to the provided
Visitor. |
void |
addDrawableBands(int[] db)
Assigns the band list but only for a read only buffer
|
abstract Buffer |
cloneBuffer()
Clona el buffer actual y devuelve el clone
|
protected void |
finalize() |
Buffer |
getAdjustedWindow(int w,
int h,
int interpolationMethod)
Ajusta el área del grid a un ancho y un alto dado en pixeles.
|
double[][] |
getAllBandsLimits() |
int |
getBandCount()
Número de bandas
|
int |
getBlockHeight()
Gets the height of a block of data.
|
Rectangle2D |
getDataExtent()
Gets a bouding box of this buffer
|
int |
getDataSize()
Obtiene el tamaño del tipo de dato en bytes
|
int |
getDataType()
Obtiene el tipo de dato.
|
int |
getHeight()
Alto del raster
|
HistogramComputer |
getHistogramComputer()
Gets the object which computes the histogram
|
IncrementableTask |
getIncrementableTask(int type)
This call returns an incrementable task that is needed to load the buffer.
|
double[] |
getLimits()
Calcula el mínimo y el máximo del histograma previamente.
|
NoData |
getNoDataValue()
Gets the NoData value of this buffer
|
double |
getNotValidValue()
Obtiene el valor de no valido.
|
int |
getPercent() |
RasterDataStore |
getStore()
Gets the RasterDataStore reference
|
int |
getWidth()
Ancho del raster
|
boolean |
isCached()
Returns true if it is a cached buffer
|
boolean |
isFromStore(DataStore store)
Indicates whether this DataSet belongs to a specific store
|
boolean |
isInside(int x,
int y)
Obtiene true si el pixel pasado por parámetro cae dentro de los límites
del rater y false si cae fuera.
|
abstract void |
malloc(int dataType,
int width,
int height,
int bandNr)
Reserva de memoria para el rasterbuf
|
abstract void |
replicateBand(int orig,
int dest)
Replica la banda de una posición sobre otra.
|
void |
resetPercent() |
void |
setDataExtent(Rectangle2D r)
Sets a bounding box of this buffer
|
void |
setDataType(int dataType)
Asigna el tipo de dato.
|
void |
setNoDataValue(NoData nd)
Sets the NoData value
|
void |
setNotValidValue(double value)
Asigna el valor de no valido.
|
void |
setProcess(int process)
Asigna el proceso del cual se desea obtener información.
|
void |
setStore(RasterDataStore store)
Sets the RasterDataStore reference
|
long |
sizeof()
Obtiene el tamaño del buffer
|
abstract void |
switchBands(int[] bandPosition)
Cambia bandas de posición.
|
static String |
typesToString(int type)
Convierte un tipo de dato a cadena
|
projectclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassign, assign, assign, assign, assign, assignBand, assignBandToNotValid, copyBand, createBand, getBand, getBandBuffer, getElemByte, getElemByte, getElemDouble, getElemDouble, getElemFloat, getElemFloat, getElemInt, getElemInt, getElemShort, getElemShort, getLineByte, getLineDouble, getLineFloat, getLineFromBandByte, getLineFromBandDouble, getLineFromBandFloat, getLineFromBandInt, getLineFromBandShort, getLineInt, getLineShort, interchangeBands, isBandSwitchable, isReadOnlyBuffer, mallocOneBand, project, setElem, setElem, setElem, setElem, setElem, setElemByte, setElemDouble, setElemFloat, setElemInt, setElemShort, setLineByte, setLineDouble, setLineFloat, setLineInBandByte, setLineInBandDouble, setLineInBandFloat, setLineInBandInt, setLineInBandShort, setLineInt, setLineShortdisposepublic static final int INTERPOLATION_PROCESS
protected boolean[] cancel
public NoData noDataValue
protected int progressInterpolation
protected boolean canceled
protected int width
protected int height
protected int nBands
protected int dataType
public static boolean cacheOn
public static boolean forceToLoadInCache
public static boolean forceToLoadInReadOnlyCache
protected double notValidValue
public RasterDataStore getStore()
Bufferpublic void setStore(RasterDataStore store)
Bufferpublic abstract void malloc(int dataType,
int width,
int height,
int bandNr)
dataType - Tipo de datowidth - Anchoheight - AltobandNr - Numero de bandasorig - public int getWidth()
Bufferpublic Rectangle2D getDataExtent()
getDataExtent in interface Bufferpublic void setDataExtent(Rectangle2D r)
setDataExtent in interface Bufferr - public int getHeight()
Bufferpublic int getBandCount()
BuffergetBandCount in interface Bufferpublic int getDataType()
getDataType in interface Bufferpublic void setDataType(int dataType)
setDataType in interface BufferdataType - Tipo de dato del bufferpublic int getDataSize()
public long sizeof()
public abstract void replicateBand(int orig,
int dest)
replicateBand in interface Bufferorig. - Posición de la banda de origen.dest. - Posición de la banda destinopublic abstract void switchBands(int[] bandPosition)
switchBands in interface BufferbandPosition - Array con la nueva distribución de bandaspublic static String typesToString(int type)
type - Tipo de datopublic boolean isInside(int x,
int y)
Bufferpublic NoData getNoDataValue()
BuffergetNoDataValue in interface Bufferpublic int getBlockHeight()
BuffergetBlockHeight in interface Bufferpublic void setNoDataValue(NoData nd)
BuffersetNoDataValue in interface Bufferpublic double getNotValidValue()
BuffergetNotValidValue in interface Bufferpublic void setNotValidValue(double value)
BuffersetNotValidValue in interface Bufferpublic abstract Buffer cloneBuffer()
BuffercloneBuffer in interface Bufferpublic Buffer getAdjustedWindow(int w, int h, int interpolationMethod) throws ProcessInterruptedException
getAdjustedWindow in interface Bufferw - Ancho de la nueva imagen.h - Alto de la nueva imagen.interpolation - Método de interpolación que se usará en el ajuste.ProcessInterruptedExceptionpublic IncrementableTask getIncrementableTask(int type)
BuffergetIncrementableTask in interface Bufferpublic HistogramComputer getHistogramComputer()
HistogramablegetHistogramComputer in interface Histogramablepublic double[] getLimits()
throws ProcessInterruptedException
BuffergetLimits in interface BufferProcessInterruptedExceptionpublic double[][] getAllBandsLimits()
throws ProcessInterruptedException
getAllBandsLimits in interface BufferProcessInterruptedExceptionpublic void addDrawableBands(int[] db)
BufferaddDrawableBands in interface Bufferpublic void resetPercent()
public int getPercent()
public void setProcess(int process)
process - public boolean isCached()
Bufferpublic boolean isFromStore(DataStore store)
DataSetisFromStore in interface DataSetstore - a DataStorepublic void accept(Visitor visitor) throws BaseException
DataSetVisitor.
The values received through the Visitor.visit(Object) method
may be transient, reused or externally modifiable, so they can't
be used to be stored in any external form out of the visit method.
If you need to store any of the values out of the
Visitor.visit(Object) method execution, create a copy or clone
the received value in order to be stored.accept in interface DataSetaccept in interface Visitablevisitor - the visitor to apply to each value.BaseException - if there is an error while performing the visit