|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cresques.io.GeoFile org.cresques.io.GeoRasterFile org.cresques.io.MrSidFile
Field Summary | |
static int |
BAND_HEIGHT
|
protected org.cresques.io.MrSidNative |
file
|
Fields inherited from class org.cresques.io.GeoRasterFile |
bandCount, bBandNr, BLUE_BAND, doTransparency, gBandNr, GREEN_BAND, rBandNr, RED_BAND, tFilter, updatable |
Fields inherited from class org.cresques.io.GeoFile |
bytesReaded, extent, lineCnt |
Constructor Summary | |
MrSidFile(IProjection proj,
java.lang.String fName)
Contructor. |
Method Summary | |
void |
close()
Libera el objeto que ha abierto el fichero |
int |
getBlockSize()
Devuelve el tamaño de bloque |
java.lang.Object |
getData(int x,
int y,
int band)
Obtiene el valor del raster en la coordenada que se le pasa. |
int |
getHeight()
Obtiene el alto de la imagen |
Extent |
getView()
Obtiene el Extent de la vista |
int |
getWidth()
Obtiene el ancho de la imagen |
byte[] |
getWindow(int ulX,
int ulY,
int sizeX,
int sizeY,
int band)
Devuelve los datos de una ventana solicitada |
GeoFile |
load()
Carga un fichero raster. |
void |
reProject(ICoordTrans rp)
Reproyección. |
void |
setBand(int flag,
int bandNr)
Asigna una banda R, G o B |
protected void |
setRGBLine(java.awt.image.BufferedImage image,
int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize)
Asigna al objeto Image los valores con los dato de la imagen contenidos en el vector de enteros. |
protected void |
setRGBLine(java.awt.image.BufferedImage image,
int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize,
int flags)
Asigna al objeto Image la mezcla entre los valores que ya tiene y los valores con los datos de la imagen contenidos en el vector de enteros. |
protected void |
setRGBLine(java.awt.image.BufferedImage image,
int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize,
int origBand,
int destBandFlag)
Asigna al objeto Image la mezcla entre los valores que ya tiene y los valores con los dato de la imagen contenidos en el vector de enteros. |
void |
setView(Extent e)
Asigna el extent de la vista |
java.awt.Image |
updateImage(int width,
int height,
ICoordTrans rp)
Actualiza la imagen. |
java.awt.Image |
updateImage(int width,
int height,
ICoordTrans rp,
java.awt.Image img,
int origBand,
int destBandFlag)
Actualiza la/s banda/s especificadas en la imagen. |
Methods inherited from class org.cresques.io.GeoRasterFile |
cornersToWorldFile, fileIsSupported, getAlpha, getBand, getBandCount, getContour, getDataType, getObjects, getTransparency, openFile, printWF, registerExtension, saveWF, setAlpha, setDataType, setTransparency, setTransparency, setUpdatable |
Methods inherited from class org.cresques.io.GeoFile |
filterWS, getExtent, getFileSize, getName, getProjection, getTime, setFileSize, setName, setProjection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BAND_HEIGHT
protected org.cresques.io.MrSidNative file
Constructor Detail |
public MrSidFile(IProjection proj, java.lang.String fName)
proj
- ProyecciónfName
- Nombre del fichero mrsidMethod Detail |
public GeoFile load()
GeoRasterFile
load
in class GeoRasterFile
public void close()
close
in class GeoRasterFile
public void setBand(int flag, int bandNr)
setBand
in class GeoRasterFile
flag
- cual (o cuales) de las bandas.public void setView(Extent e)
setView
in class GeoRasterFile
e
- Extentpublic Extent getView()
getView
in class GeoRasterFile
public int getWidth()
getWidth
in class GeoRasterFile
public int getHeight()
getHeight
in class GeoRasterFile
public void reProject(ICoordTrans rp)
GeoRasterFile
reProject
in interface Projected
reProject
in class GeoRasterFile
rp
- Coordenadas de la transformaciónpublic java.awt.Image updateImage(int width, int height, ICoordTrans rp)
updateImage
in class GeoRasterFile
width
- anchoheight
- altorp
- Reproyección
protected void setRGBLine(java.awt.image.BufferedImage image, int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize)
image
- imagen con los datos actualesstartX
- inicio de la posición en X dentro de la imagenstartY
- inicio de la posición en X dentro de la imagenw
- Ancho de la imagenh
- Alto de la imagenrgbArray
- vector que contiene la banda que se va a sustituiroffset
- desplazamientoscansize
- tamaño de imagen recorrida por cada pprotected void setRGBLine(java.awt.image.BufferedImage image, int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize, int flags)
image
- imagen con los datos actualesstartX
- inicio de la posición en X dentro de la imagenstartY
- inicio de la posición en X dentro de la imagenw
- Ancho de la imagenh
- Alto de la imagenrgbArray
- vector que contiene la banda que se va a sustituiroffset
- desplazamientoscansize
- tamaño de imagen recorrida por cada pasoflags
- banda que se va a sustituir (Ctes de GeoRasterFile)protected void setRGBLine(java.awt.image.BufferedImage image, int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize, int origBand, int destBandFlag)
image
- imagen con los datos actualesstartX
- inicio de la posición en X dentro de la imagenstartY
- inicio de la posición en X dentro de la imagenw
- Ancho de la imagenh
- Alto de la imagenrgbArray
- vector que contiene la banda que se va a sustituiroffset
- desplazamientoscansize
- tamaño de imagen recorrida por cada pasoorigBand
- Banda origen del GeoRasterFiledestBandFlag
- banda que se va a sustituir (Ctes de GeoRasterFile)public java.awt.Image updateImage(int width, int height, ICoordTrans rp, java.awt.Image img, int origBand, int destBandFlag)
GeoRasterFile
updateImage
in class GeoRasterFile
width
- anchoheight
- altorp
- reproyecciónimg
- imagen
public java.lang.Object getData(int x, int y, int band)
GeoRasterFile
getData
in class GeoRasterFile
x
- coordenada Xy
- coordenada Y
public byte[] getWindow(int ulX, int ulY, int sizeX, int sizeY, int band)
getWindow
in class GeoRasterFile
ulX
- coordenada X superior izda.ulY
- coordenada Y superior derecha.sizeX
- tamaño en X de la ventana.sizeY
- tamaño en Y de la ventana.band
- Banda solicitada.public int getBlockSize()
getBlockSize
in class GeoRasterFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |