Statistics
| Revision:

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

History | View | Annotate | Download (2 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
import org.cresques.cts.IProjection;
9
public interface RasterDriver {
10
    /**
11
     * Obtiene el n?mero de bandas del raster 
12
     */
13
        int getBandCount();
14

    
15
        /**
16
         * Obtiene el valor que el raster tiene en la posici?n x, y del bitmap
17
         * @see com.iver.cit.gvsig.fmap.layers.RasterComplexOperations#getValueByCoords(int, int, int)
18
         */
19
        byte[] getPixel(int x, int y, byte[] dArray);
20

    
21
        /**
22
         * Obtiene el valor que el raster tiene en la posici?n x, y del bitmap
23
         * @see com.iver.cit.gvsig.fmap.layers.RasterComplexOperations#getValueByCoords(int, int, int)
24
         */
25
        int[] getPixel(int x, int y, int[] dArray);
26

    
27
        /**
28
         * Obtiene el valor que el raster tiene en la posici?n x, y del bitmap
29
         * @see com.iver.cit.gvsig.fmap.layers.RasterComplexOperations#getValueByCoords(int, int, int)
30
         */
31
        float[] getPixel(int x, int y, float[] dArray);
32

    
33
        /**
34
         * 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
35
         * @see com.iver.cit.gvsig.fmap.layers.RasterComplexOperations#getValueByCoords(int, int, int)
36
         */
37
        double[] getPixel(int x, int y, double[] dArray);
38

    
39
    /**
40
     * Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro 
41
     */
42
    byte getSampleByte(int x, int y, int band);
43

    
44
    /**
45
     * Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro 
46
     */
47
    int getSampleInt(int x, int y, int band);
48

    
49
    /**
50
     * Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro 
51
     */
52
    float getSampleFloat(int x, int y, int band);
53

    
54
    /**
55
     * Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro 
56
     */
57
    double getSampleDouble(int x, int y, int band);
58

    
59
    void open(File f) throws IOException;
60

    
61
    void close() throws IOException;
62

    
63
    void initialize(IProjection proj) throws IOException;
64
}