Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / drivers / RasterDriver.java @ 540

History | View | Annotate | Download (2.06 KB)

1 302 fernando
/* Generated by Together */
2
3
package com.iver.cit.gvsig.fmap.drivers;
4
5 358 fernando
import java.io.File;
6
import java.io.IOException;
7 515 luisw
8 302 fernando
public interface RasterDriver {
9 540 luisw
    void open(File f) throws IOException;
10
11
    void initialize() throws IOException;
12
13
    void close() throws IOException;
14 302 fernando
    /**
15
     * Obtiene el n?mero de bandas del raster
16
     */
17 518 luisw
        int getNumBands();
18 302 fernando
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 518 luisw
         * /
35 302 fernando
        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 518 luisw
         * /
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 302 fernando
         */
48 518 luisw
        int getRasterDataType();
49 302 fernando
50
    /**
51
     * Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro
52
     */
53 518 luisw
    int getData(int x, int y, int band);
54 302 fernando
55
    /**
56
     * Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro
57
     */
58 518 luisw
    byte getDataAsByte(int x, int y, int band);
59 302 fernando
60
    /**
61
     * Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro
62
     */
63 518 luisw
    float getDataAsFloat(int x, int y, int band);
64 302 fernando
65
    /**
66 518 luisw
     * Obtiene una muestra el pixel que se pasa como par?metro en la banda que se pasa como par?metro
67 302 fernando
     */
68 518 luisw
    double getDataAsDouble(int x, int y, int band);
69 302 fernando
}