|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ermapper.ecw.JNCSFile
Clase que representa a un fichero Ecw
Field Summary | |
boolean |
bIsOpen
|
double |
cellIncrementX
|
double |
cellIncrementY
|
int |
cellSizeUnits
|
double |
compressionRate
|
java.lang.String |
datum
|
static int |
ECW_CELL_UNITS_DEGREES
|
static int |
ECW_CELL_UNITS_FEET
|
static int |
ECW_CELL_UNITS_INVALID
|
static int |
ECW_CELL_UNITS_METERS
|
java.lang.String |
fileName
|
java.lang.String |
fileType
|
int |
height
|
java.lang.String |
mimeType
|
int |
numBands
|
double |
originX
|
double |
originY
|
protected JNCSProgressiveUpdate |
progImageClient
|
boolean |
progressive
|
java.lang.String |
projection
|
int |
width
|
Constructor Summary | |
JNCSFile()
Constructor |
|
JNCSFile(java.lang.String s,
boolean flag)
Constructor con open del fichero. |
Method Summary | |
void |
addProgressiveUpdateListener(JNCSProgressiveUpdate jncsprogressiveupdate)
|
void |
close(boolean flag)
Cierra el fichero de imagen. |
JNCSWorldPoint |
convertDatasetToWorld(int x,
int y)
Convierte una coordenada de la vista a coordenadas del mundo real |
JNCSDatasetPoint |
convertWorldToDataset(double x,
double y)
Convierte una coordenada del mundo real a coordenadas de la vista |
protected void |
finalize()
Llama al close del ecw para liberar la memoria de C. |
java.lang.String |
getLastErrorText(int error)
Obtiene una cadena que corresponde a un error a través del entero que lo representa |
static java.lang.String |
getLibVersion()
Obtiene una cadena con la versión de la libreria |
short |
getPercentComplete()
|
void |
open(java.lang.String s,
boolean flag)
Abre el fichero de imagen. |
int |
readImageRGBA(int[] ai,
int i,
int j)
|
void |
readLineRGBA(int[] buffer)
Lee una línea del fichero Ecw |
void |
refreshUpdate(int i,
int j,
double d,
double d1,
double d2,
double d3)
|
void |
refreshUpdate(int i,
int j,
int k,
int l,
int i1,
int j1)
|
void |
setView(int nBands,
int[] bandList,
double dWorldTLX,
double dWorldTLY,
double dWorldBRX,
double dWorldBRY,
int width,
int height)
Crea una vista en un fichero ecw abierto |
void |
setView(int nBands,
int[] bandList,
int tlx,
int tly,
int brx,
int bry,
int width,
int height)
Crea una vista en un fichero ecw abierto dando las coordenadas de la vista |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ECW_CELL_UNITS_INVALID
public static final int ECW_CELL_UNITS_METERS
public static final int ECW_CELL_UNITS_DEGREES
public static final int ECW_CELL_UNITS_FEET
public int numBands
public int width
public int height
public double originX
public double originY
public double cellIncrementX
public double cellIncrementY
public int cellSizeUnits
public double compressionRate
public boolean progressive
public java.lang.String fileName
public java.lang.String fileType
public java.lang.String mimeType
public java.lang.String datum
public java.lang.String projection
public boolean bIsOpen
protected JNCSProgressiveUpdate progImageClient
Constructor Detail |
public JNCSFile() throws JNCSException
JNCSException
public JNCSFile(java.lang.String s, boolean flag) throws JNCSException
JNCSException
Method Detail |
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
public void open(java.lang.String s, boolean flag) throws JNCSFileOpenFailedException
JNCSFileOpenFailedException
public void close(boolean flag)
flag
- parámetro para la función NCScbmCloseFileViewExpublic void addProgressiveUpdateListener(JNCSProgressiveUpdate jncsprogressiveupdate)
public void refreshUpdate(int i, int j, double d, double d1, double d2, double d3)
refreshUpdate
in interface JNCSProgressiveUpdate
public void refreshUpdate(int i, int j, int k, int l, int i1, int j1)
refreshUpdate
in interface JNCSProgressiveUpdate
public void setView(int nBands, int[] bandList, int tlx, int tly, int brx, int bry, int width, int height) throws JNCSFileNotOpenException, JNCSInvalidSetViewException
nBands
- Número de bandas en bandListbandList
- Array de índices de bandaswidth
- ancho de la vista en pixelsheight
- alto de la vista en pixelstlx
- coordenada X arriba-izquierda de la vistatly
- coordenada Y arriba-izquierda de la vistabrx
- coordenada X abajo-derecha de la vistabry
- coordenada Y abajo-derecha de la vista
JNCSFileNotOpenException,
- JNCSInvalidSetViewException
JNCSFileNotOpenException
JNCSInvalidSetViewException
public void setView(int nBands, int[] bandList, double dWorldTLX, double dWorldTLY, double dWorldBRX, double dWorldBRY, int width, int height) throws JNCSFileNotOpenException, JNCSInvalidSetViewException
nBands
- Número de bandas en bandListbandList
- Array de índices de bandaswidth
- ancho de la vista en pixelsheight
- alto de la vista en pixelsdWorldTLX
- coordenada X arriba-izquierda)dWorldTLY
- coordenada Y arriba-izquierdadWorldBRX
- coordenada X abajo-derecha)dWorldBRY
- coordenada Y abajo-derecha
JNCSFileNotOpenException,
- JNCSInvalidSetViewException
JNCSFileNotOpenException
JNCSInvalidSetViewException
public void readLineRGBA(int[] buffer) throws JNCSException
buffer
- Buffer donde se almacenan los datos de la línea
JNCSException
public int readImageRGBA(int[] ai, int i, int j) throws JNCSException
JNCSException
public java.lang.String getLastErrorText(int error)
error
- Entero que representa el error
public JNCSDatasetPoint convertWorldToDataset(double x, double y) throws JNCSFileNotOpenException
x
- Coordenada X del mundo realy
- Coordenada Y del mundo real
JNCSFileNotOpenException
public JNCSWorldPoint convertDatasetToWorld(int x, int y) throws JNCSFileNotOpenException
x
- Coordenada X de la imageny
- Coordenada Y de la imagen
JNCSFileNotOpenException
public short getPercentComplete()
public static java.lang.String getLibVersion()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |