Revision 567 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/RasterDriver.java
RasterDriver.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
package com.iver.cit.gvsig.fmap.drivers; |
4 | 4 |
|
5 |
import java.awt.geom.Rectangle2D; |
|
5 | 6 |
import java.io.File; |
6 | 7 |
import java.io.IOException; |
7 | 8 |
|
8 |
public interface RasterDriver { |
|
9 |
void open(File f) throws IOException; |
|
9 |
import com.hardcode.driverManager.Driver; |
|
10 | 10 |
|
11 |
void initialize() throws IOException; |
|
11 |
public interface RasterDriver extends Driver { |
|
12 |
/** |
|
13 |
* Define los tipos de fichero que puede leer el driver. Si devuelve true, |
|
14 |
* el fichero est? aceptado (es de los que el driver puede leer), si |
|
15 |
* devuelve false es porque no lo puede leer. |
|
16 |
*/ |
|
17 |
public boolean fileAccepted(File fName); |
|
18 |
|
|
19 |
public void open(File f) throws IOException; |
|
12 | 20 |
|
13 |
void close() throws IOException; |
|
21 |
public void initialize() throws IOException; |
|
22 |
|
|
23 |
public void close() throws IOException; |
|
24 |
|
|
14 | 25 |
/** |
26 |
* Obtiene la extensi?n en coordenadas del mundo real que ocupa este raster |
|
27 |
*/ |
|
28 |
public Rectangle2D getFullExtent(); |
|
29 |
/** |
|
15 | 30 |
* Obtiene el n?mero de bandas del raster |
16 | 31 |
*/ |
17 |
int getNumBands(); |
|
32 |
public int getNumBands();
|
|
18 | 33 |
|
19 | 34 |
/** |
20 | 35 |
* Obtiene el valor que el raster tiene en la posici?n x, y del bitmap |
21 | 36 |
* @see com.iver.cit.gvsig.fmap.layers.RasterComplexOperations#getValueByCoords(int, int, int) |
22 |
*/ |
|
37 |
* /
|
|
23 | 38 |
byte[] getPixel(int x, int y, byte[] dArray); |
24 | 39 |
|
25 |
/** |
|
40 |
/ **
|
|
26 | 41 |
* Obtiene el valor que el raster tiene en la posici?n x, y del bitmap |
27 | 42 |
* @see com.iver.cit.gvsig.fmap.layers.RasterComplexOperations#getValueByCoords(int, int, int) |
28 |
*/ |
|
43 |
* /
|
|
29 | 44 |
int[] getPixel(int x, int y, int[] dArray); |
30 | 45 |
|
31 | 46 |
/** |
... | ... | |
45 | 60 |
* Devuelve el tipo de datos del raster |
46 | 61 |
* @see java.awt.image.DataBuffer |
47 | 62 |
*/ |
48 |
int getRasterDataType(); |
|
63 |
public int getRasterDataType();
|
|
49 | 64 |
|
50 | 65 |
/** |
51 | 66 |
* Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro |
52 | 67 |
*/ |
53 |
Object getData(int x, int y, int band);
|
|
68 |
public Object getData(int x, int y, int band);
|
|
54 | 69 |
|
55 | 70 |
/** |
56 | 71 |
* Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro |
57 | 72 |
*/ |
58 |
int getDataAsInt(int x, int y, int band);
|
|
73 |
public int getDataAsInt(int x, int y, int band);
|
|
59 | 74 |
|
60 | 75 |
/** |
61 | 76 |
* Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro |
62 | 77 |
*/ |
63 |
byte getDataAsByte(int x, int y, int band);
|
|
78 |
public byte getDataAsByte(int x, int y, int band);
|
|
64 | 79 |
|
65 | 80 |
/** |
66 | 81 |
* Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro |
67 | 82 |
*/ |
68 |
float getDataAsFloat(int x, int y, int band);
|
|
83 |
public float getDataAsFloat(int x, int y, int band);
|
|
69 | 84 |
|
70 | 85 |
/** |
71 | 86 |
* Obtiene una muestra el pixel que se pasa como par?metro en la banda que se pasa como par?metro |
72 | 87 |
*/ |
73 |
double getDataAsDouble(int x, int y, int band);
|
|
88 |
public double getDataAsDouble(int x, int y, int band);
|
|
74 | 89 |
} |
Also available in: Unified diff