Statistics
| Revision:

root / trunk / libraries / libRaster / src / org / gvsig / raster / buffer / IBand.java @ 11074

History | View | Annotate | Download (1.48 KB)

1
package org.gvsig.raster.buffer;
2

    
3
import org.gvsig.raster.dataset.IBuffer;
4

    
5
/**
6
 * 
7
 * @author Nacho Brodin (nachobrodin@gmail.com)
8
 *
9
 */
10
public interface IBand{
11
    public final static int TYPE_UNDEFINED = IBuffer.TYPE_UNDEFINED;
12
    public final static int TYPE_BYTE = IBuffer.TYPE_BYTE;
13
    public final static int TYPE_SHORT = IBuffer.TYPE_SHORT;
14
    public final static int TYPE_USHORT = IBuffer.TYPE_USHORT;
15
    public final static int TYPE_INT = IBuffer.TYPE_INT;
16
    public final static int TYPE_FLOAT = IBuffer.TYPE_FLOAT;
17
    public final static int TYPE_DOUBLE = IBuffer.TYPE_DOUBLE;
18
    public final static int TYPE_IMAGE = -1;
19
    
20
    /**
21
     * Ancho de la banda
22
     * @return Entero con el ancho de la banda
23
     */
24
    public int getWidth();
25

    
26
    /**
27
     * Alto de la banda
28
     * @return Entero con el alto de la banda
29
     */
30
    public int getHeight();
31
    
32
    /**
33
     * Obtiene el tipo de dato. Los tipos de dato posibles est?n definidos en IRaster.
34
     * @return tipo de datos
35
     */
36
        public int getDataType();
37
        
38
        /**
39
         * Obtiene una linea de la banda
40
         * @return
41
         */
42
        public Object getLine(int line);
43
        
44
        /**
45
         * Asigna una linea de la banda
46
         * @param line N?mero de l?nea
47
         * @param value Valor representado por un array del tipo de dato correspondiente
48
         */
49
        public void setLine(int line, Object value);
50
        
51
        /**
52
         * Obtiene el buffer de datos de la banda
53
         * @return Array bidimensional del tipo de dato correspondiente si es un buffer en memoria
54
         * 
55
         */
56
        public Object getBuf();
57
        
58
}