gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.api / src / main / java / org / gvsig / fmap / dal / coverage / datastruct / Band.java @ 2443
History | View | Annotate | Download (2.45 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
package org.gvsig.fmap.dal.coverage.datastruct; |
23 |
|
24 |
import org.gvsig.fmap.dal.coverage.dataset.Buffer; |
25 |
import org.gvsig.tools.dispose.Disposable; |
26 |
|
27 |
/**
|
28 |
*
|
29 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
30 |
*
|
31 |
*/
|
32 |
public interface Band extends Disposable { |
33 |
public final static int TYPE_UNDEFINED = Buffer.TYPE_UNDEFINED; |
34 |
public final static int TYPE_BYTE = Buffer.TYPE_BYTE; |
35 |
public final static int TYPE_SHORT = Buffer.TYPE_SHORT; |
36 |
public final static int TYPE_USHORT = Buffer.TYPE_USHORT; |
37 |
public final static int TYPE_INT = Buffer.TYPE_INT; |
38 |
public final static int TYPE_FLOAT = Buffer.TYPE_FLOAT; |
39 |
public final static int TYPE_DOUBLE = Buffer.TYPE_DOUBLE; |
40 |
public final static int TYPE_IMAGE = -1; |
41 |
|
42 |
/**
|
43 |
* Ancho de la banda
|
44 |
* @return Entero con el ancho de la banda
|
45 |
*/
|
46 |
public int getWidth(); |
47 |
|
48 |
/**
|
49 |
* Alto de la banda
|
50 |
* @return Entero con el alto de la banda
|
51 |
*/
|
52 |
public int getHeight(); |
53 |
|
54 |
/**
|
55 |
* Obtiene el tipo de dato. Los tipos de dato posibles est?n definidos en IRaster.
|
56 |
* @return tipo de datos
|
57 |
*/
|
58 |
public int getDataType(); |
59 |
|
60 |
/**
|
61 |
* Obtiene una linea de la banda
|
62 |
* @return
|
63 |
*/
|
64 |
public Object getLine(int line); |
65 |
|
66 |
/**
|
67 |
* Asigna una linea de la banda
|
68 |
* @param line N?mero de l?nea
|
69 |
* @param value Valor representado por un array del tipo de dato correspondiente
|
70 |
*/
|
71 |
public void setLine(int line, Object value); |
72 |
|
73 |
/**
|
74 |
* Obtiene el buffer de datos de la banda
|
75 |
* @return Array bidimensional del tipo de dato correspondiente si es un buffer en memoria
|
76 |
*
|
77 |
*/
|
78 |
public Object getBuf(); |
79 |
|
80 |
} |