public class RasterizeFLayers extends Object implements DataServerWriter, IIncrementable
Modifier and Type | Field and Description |
---|---|
protected int |
blockSize |
protected int |
contBlocks |
protected Dimension |
dimension |
protected BufferedImage |
image |
protected int |
imgHeight |
protected int |
lastBlock |
protected int |
percent |
protected int[] |
rasterData |
protected double |
wcAlto |
protected double |
wcIntervalo |
Constructor and Description |
---|
RasterizeFLayers(FLayers flyrs,
ViewPort vp,
int blockSize)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes the current object, to allow it to close and dispose any used
resources.
|
Buffer |
getBuffer()
Gets the data buffer
|
String |
getLabel()
Devuelve la etiqueta de la ventana IncrementableTask
|
String |
getLog()
Devuelve el contenido del log de la ventana IncrementableTask
|
int |
getPercent()
Obtiene el porcentaje de incremento de la lectura de datos
|
Buffer |
getSource() |
String |
getTitle()
Devuelve el titulo de la ventana IncrementableTask
|
boolean |
isCancelable()
Determines if this process can be canceled.
|
boolean |
isPausable()
Determines if this process can be paused.
|
int[] |
readARGBData(int sX,
int sY,
int nBand)
Compatibilidad con el piloto de raster
|
byte[][] |
readByteData(int sizeX,
int sizeY)
No tiene uso en RasterizerLayer
|
int[] |
readData(int sX,
int sY,
int nBand) |
double[][] |
readDoubleData(int sizeX,
int sizeY)
No tiene uso en RasterizerLayer
|
float[][] |
readFloatData(int sizeX,
int sizeY)
No tiene uso en RasterizerLayer
|
int[][] |
readIntData(int sizeX,
int sizeY)
No tiene uso en RasterizerLayer
|
short[][] |
readShortData(int sizeX,
int sizeY)
No tiene uso en RasterizerLayer
|
void |
setAlphaBuffer(Buffer alphaBuffer) |
void |
setBand(int nband)
Assigns the band number to serve
|
void |
setBlockSize(int blockSize)
Asigna el ancho del bloque
|
void |
setBuffer(Buffer buffer,
int nband)
Asigna el buffer de datos e inicializa variables de
|
void |
setPercent(int value)
Sets the increment of this task
|
protected double wcIntervalo
protected Dimension dimension
protected int blockSize
protected double wcAlto
protected int lastBlock
protected BufferedImage image
protected int[] rasterData
protected int contBlocks
protected int percent
protected int imgHeight
public int[] readARGBData(int sX, int sY, int nBand) throws ProcessInterruptedException, OutOfMemoryError
readARGBData
in interface DataServerWriter
sX
- Ancho del bloque de datossY
- Alto del bloque de datosProcessInterruptedException
OutOfMemoryError
readData
public int[] readData(int sX, int sY, int nBand) throws ProcessInterruptedException, OutOfMemoryError
public void setBlockSize(int blockSize)
sizeBlock
- Ancho del bloque en pixelespublic byte[][] readByteData(int sizeX, int sizeY)
readByteData
in interface DataServerWriter
sizeX
- Ancho del bloque de datossizeY
- Alto del bloque de datospublic double[][] readDoubleData(int sizeX, int sizeY)
readDoubleData
in interface DataServerWriter
sizeX
- Ancho del bloque de datossizeY
- Alto del bloque de datospublic float[][] readFloatData(int sizeX, int sizeY)
readFloatData
in interface DataServerWriter
sizeX
- Ancho del bloque de datossizeY
- Alto del bloque de datospublic int[][] readIntData(int sizeX, int sizeY)
readIntData
in interface DataServerWriter
sizeX
- Ancho del bloque de datossizeY
- Alto del bloque de datospublic short[][] readShortData(int sizeX, int sizeY)
readShortData
in interface DataServerWriter
sizeX
- Ancho del bloque de datossizeY
- Alto del bloque de datospublic String getTitle()
IIncrementable
getTitle
in interface IIncrementable
public String getLog()
IIncrementable
getLog
in interface IIncrementable
public String getLabel()
IIncrementable
getLabel
in interface IIncrementable
public int getPercent()
DataServerWriter
getPercent
in interface BaseIncrementableTask
getPercent
in interface DataServerWriter
getPercent
in interface IIncrementable
public boolean isCancelable()
IIncrementable
Determines if this process can be canceled.
isCancelable
in interface IIncrementable
true
if this process can be canceled, otherwise false
public boolean isPausable()
IIncrementable
Determines if this process can be paused.
isPausable
in interface IIncrementable
true
if this process can be paused, otherwise false
public void setAlphaBuffer(Buffer alphaBuffer)
public void setBuffer(Buffer buffer, int nband)
DataServerWriter
setBuffer
in interface DataServerWriter
nband
- Si es menor que cero sirve datos de todas las bandas. Si es
mayor que cero sirve datos de la banda indicada por el valor.public Buffer getBuffer()
DataServerWriter
getBuffer
in interface DataServerWriter
public void setBand(int nband)
DataServerWriter
setBand
in interface DataServerWriter
nband
- Number of band or lesser than zero for all bandspublic void dispose()
Disposable
NOTE:After calling this method, the object may not be usable anymore.
dispose
in interface Disposable
public Buffer getSource()
public void setPercent(int value)
BaseIncrementableTask
setPercent
in interface BaseIncrementableTask