root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / drivers / RasterDriver.java @ 554
History | View | Annotate | Download (2.22 KB)
1 |
/* Generated by Together */
|
---|---|
2 |
|
3 |
package com.iver.cit.gvsig.fmap.drivers; |
4 |
|
5 |
import java.io.File; |
6 |
import java.io.IOException; |
7 |
|
8 |
public interface RasterDriver { |
9 |
void open(File f) throws IOException; |
10 |
|
11 |
void initialize() throws IOException; |
12 |
|
13 |
void close() throws IOException; |
14 |
/**
|
15 |
* Obtiene el n?mero de bandas del raster
|
16 |
*/
|
17 |
int getNumBands();
|
18 |
|
19 |
/**
|
20 |
* Obtiene el valor que el raster tiene en la posici?n x, y del bitmap
|
21 |
* @see com.iver.cit.gvsig.fmap.layers.RasterComplexOperations#getValueByCoords(int, int, int)
|
22 |
*/
|
23 |
byte[] getPixel(int x, int y, byte[] dArray); |
24 |
|
25 |
/**
|
26 |
* Obtiene el valor que el raster tiene en la posici?n x, y del bitmap
|
27 |
* @see com.iver.cit.gvsig.fmap.layers.RasterComplexOperations#getValueByCoords(int, int, int)
|
28 |
*/
|
29 |
int[] getPixel(int x, int y, int[] dArray); |
30 |
|
31 |
/**
|
32 |
* Obtiene el valor que el raster tiene en la posici?n x, y del bitmap
|
33 |
* @see com.iver.cit.gvsig.fmap.layers.RasterComplexOperations#getValueByCoords(int, int, int)
|
34 |
* /
|
35 |
float[] getPixel(int x, int y, float[] dArray);
|
36 |
|
37 |
/**
|
38 |
* Obtiene el valor que el raster tiene en la posici?n x, y del mundo real para la banda que se pasa como par?metro
|
39 |
* @see com.iver.cit.gvsig.fmap.layers.RasterComplexOperations#getValueByCoords(int, int, int)
|
40 |
* /
|
41 |
double[] getPixel(int x, int y, double[] dArray);
|
42 |
*/
|
43 |
|
44 |
/**
|
45 |
* Devuelve el tipo de datos del raster
|
46 |
* @see java.awt.image.DataBuffer
|
47 |
*/
|
48 |
int getRasterDataType();
|
49 |
|
50 |
/**
|
51 |
* Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro
|
52 |
*/
|
53 |
Object getData(int x, int y, int band); |
54 |
|
55 |
/**
|
56 |
* Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro
|
57 |
*/
|
58 |
int getDataAsInt(int x, int y, int band); |
59 |
|
60 |
/**
|
61 |
* Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro
|
62 |
*/
|
63 |
byte getDataAsByte(int x, int y, int band); |
64 |
|
65 |
/**
|
66 |
* Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro
|
67 |
*/
|
68 |
float getDataAsFloat(int x, int y, int band); |
69 |
|
70 |
/**
|
71 |
* Obtiene una muestra el pixel que se pasa como par?metro en la banda que se pasa como par?metro
|
72 |
*/
|
73 |
double getDataAsDouble(int x, int y, int band); |
74 |
} |