Statistics
| Revision:

root / branches / CqCMSDvp / libraries / libCq CMS for java.old / src / org / cresques / io / raster / IRaster.java @ 2249

History | View | Annotate | Download (2.54 KB)

1
/*
2
 * Created on 17-feb-2004
3
 *
4
 * To change the template for this generated file go to
5
 * Window>Preferences>Java>Code Generation>Code and Comments
6
 */
7
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
8
 *
9
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
10
 *
11
 * This program is free software; you can redistribute it and/or
12
 * modify it under the terms of the GNU General Public License
13
 * as published by the Free Software Foundation; either version 2
14
 * of the License, or (at your option) any later version.
15
 *
16
 * This program is distributed in the hope that it will be useful,
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 * GNU General Public License for more details.
20
 *
21
 * You should have received a copy of the GNU General Public License
22
 * along with this program; if not, write to the Free Software
23
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
24
 *
25
 * For more information, contact:
26
 *
27
 *  Generalitat Valenciana
28
 *   Conselleria d'Infraestructures i Transport
29
 *   Av. Blasco Ib??ez, 50
30
 *   46010 VALENCIA
31
 *   SPAIN
32
 *
33
 *      +34 963862235
34
 *   gvsig@gva.es
35
 *      www.gvsig.gva.es
36
 *
37
 *    or
38
 *
39
 *   IVER T.I. S.A
40
 *   Salamanca 50
41
 *   46005 Valencia
42
 *   Spain
43
 *
44
 *   +34 963163400
45
 *   dac@iver.es
46
 */
47
package org.cresques.io.raster;
48

    
49
import java.awt.image.DataBuffer;
50

    
51
/**
52
 * Raster con acceso a los elementos individuales (pixeles o datos de celda).
53
 * @author Luis W. Sevilla (sevilla_lui@gva.es)
54
 */
55
public interface IRaster {
56
        public final static int TYPE_UNDEFINED        = DataBuffer.TYPE_UNDEFINED;
57
        public final static int TYPE_BYTE                = DataBuffer.TYPE_BYTE;
58
        public final static int TYPE_SHORT                = DataBuffer.TYPE_SHORT;
59
        public final static int TYPE_USHORT         = DataBuffer.TYPE_USHORT;
60
        public final static int TYPE_INT                = DataBuffer.TYPE_INT;
61
        public final static int TYPE_FLOAT                = DataBuffer.TYPE_FLOAT;
62
        public final static int TYPE_DOUBLE                = DataBuffer.TYPE_DOUBLE;
63
        
64
        public final static int        TYPE_IMAGE                = -1;
65

    
66
        public int getWidth();
67
        public int getHeight();
68
        public int getBandNr();
69
        
70
        /**
71
         * Devuelve el tipo de datos del raster
72
         * @see java.awt.image.DataBuffer
73
         */
74
        public int getDataType();
75
        
76
        public void getElemShort(int x, int y, int [] px);
77

    
78
        public void getElemInt(int x, int y, int [] px);
79

    
80
        /**
81
         * Obtiene el valor del raster en la coordenada que se le pasa.
82
         * Devuelve un int.
83
         * @param x        coordenada X
84
         * @param y coordenada Y
85
         * @return
86
         */
87
        public int getElemInt(int x, int y, int band);
88
}