svn-gvsig-desktop / trunk / libraries / libRaster / src / org / gvsig / raster / grid / IWritableGrid.java @ 24945
History | View | Annotate | Download (2.64 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2006 IVER T.I. and Generalitat Valenciana.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*/
|
19 |
package org.gvsig.raster.grid; |
20 |
|
21 |
import org.gvsig.raster.buffer.BufferFactory; |
22 |
|
23 |
/**
|
24 |
* Interfaz que deben implementar los grid en los que se puede escribir datos.
|
25 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
26 |
*
|
27 |
*/
|
28 |
public interface IWritableGrid{ |
29 |
|
30 |
public GridExtent getGridExtent();
|
31 |
|
32 |
public void assign(byte value)throws GridException; |
33 |
|
34 |
public void assign(short value)throws GridException; |
35 |
|
36 |
public void assign(int value)throws GridException; |
37 |
|
38 |
public void assign(float value)throws GridException; |
39 |
|
40 |
public void assign(double value)throws GridException; |
41 |
|
42 |
public void assign(BufferFactory dataSource)throws GridException; |
43 |
|
44 |
public void assign(Grid driver)throws GridException; |
45 |
|
46 |
public void addToCellValue(int x, int y, byte value) throws GridException; |
47 |
|
48 |
public void addToCellValue(int x, int y, short value) throws GridException; |
49 |
|
50 |
public void addToCellValue(int x, int y, int value) throws GridException; |
51 |
|
52 |
public void addToCellValue(int x, int y, float value) throws GridException; |
53 |
|
54 |
public void addToCellValue(int x, int y, double value) throws GridException; |
55 |
|
56 |
public void assignNoData(); |
57 |
|
58 |
public void setCellValue(int x, int y, byte value)throws OutOfGridException; |
59 |
|
60 |
public void setCellValue(int x, int y, short value)throws OutOfGridException; |
61 |
|
62 |
public void setCellValue(int x, int y, int value)throws OutOfGridException; |
63 |
|
64 |
public void setCellValue(int x, int y, float value)throws OutOfGridException; |
65 |
|
66 |
public void setCellValue(int x, int y, double value)throws OutOfGridException; |
67 |
|
68 |
public void add(Grid driver) throws GridException; |
69 |
|
70 |
public void multiply(double dValue) throws GridException; |
71 |
|
72 |
/**
|
73 |
* Asigna el valor que indica que una celda no tiene datos para el buffer
|
74 |
* @param dNoDataValue Valor NoData
|
75 |
*/
|
76 |
public void setNoDataValue(double dNoDataValue); |
77 |
|
78 |
public void setNoData(int x, int y); |
79 |
} |