svn-gvsig-desktop / tags / v1_0_2_Build_902 / libraries / libFMap / src / com / iver / cit / gvsig / fmap / layers / RasterOperations.java @ 10681
History | View | Annotate | Download (3.79 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2004 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 |
* For more information, contact:
|
20 |
*
|
21 |
* Generalitat Valenciana
|
22 |
* Conselleria d'Infraestructures i Transport
|
23 |
* Av. Blasco Ib??ez, 50
|
24 |
* 46010 VALENCIA
|
25 |
* SPAIN
|
26 |
*
|
27 |
* +34 963862235
|
28 |
* gvsig@gva.es
|
29 |
* www.gvsig.gva.es
|
30 |
*
|
31 |
* or
|
32 |
*
|
33 |
* IVER T.I. S.A
|
34 |
* Salamanca 50
|
35 |
* 46005 Valencia
|
36 |
* Spain
|
37 |
*
|
38 |
* +34 963163400
|
39 |
* dac@iver.es
|
40 |
*/
|
41 |
package com.iver.cit.gvsig.fmap.layers; |
42 |
|
43 |
import java.util.ArrayList; |
44 |
|
45 |
import org.cresques.filter.RasterFilterStack; |
46 |
|
47 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.InfoByPoint; |
48 |
|
49 |
|
50 |
/**
|
51 |
* Interfaz de operaciones sobre una capa raster.
|
52 |
* @author Nacho Brodin (brodin_ign@gva.es)
|
53 |
*/
|
54 |
public interface RasterOperations extends InfoByPoint { |
55 |
/**
|
56 |
* Asigna RGB en la posici?n en la que se ha
|
57 |
* hecho click al mostrar informaci?n del raster.
|
58 |
* @param r valor de rojo
|
59 |
* @param g valor de verde
|
60 |
* @param b valor de azul
|
61 |
*/
|
62 |
public void setRGB(int r, int g, int b); |
63 |
|
64 |
/**
|
65 |
* Obtiene la pila de filtros aplicada al raster
|
66 |
* @return
|
67 |
*/
|
68 |
public RasterFilterStack getFilterStack();
|
69 |
|
70 |
/**
|
71 |
* Asigna la pila de filtros aplicada al raster
|
72 |
* @return
|
73 |
*/
|
74 |
public void setFilterStack(RasterFilterStack stack); |
75 |
|
76 |
/**
|
77 |
* Devuelve el RasterAdapter de la capa.
|
78 |
*
|
79 |
* @return RasterAdapter.
|
80 |
*/
|
81 |
public RasterAdapter getSource() ;
|
82 |
|
83 |
/**
|
84 |
* Inserta el RasterAdapter.
|
85 |
*
|
86 |
* @param ra RasterAdapter.
|
87 |
*/
|
88 |
public void setSource(RasterAdapter ra) ; |
89 |
|
90 |
/**
|
91 |
* Asigna la posici?n en la que se ha hecho click al mostrar
|
92 |
* informaci?n del raster.
|
93 |
* @param x Posici?n en X
|
94 |
* @param y Posici?n en Y
|
95 |
*/
|
96 |
public void setPos(int x, int y); |
97 |
|
98 |
/**
|
99 |
* Asigna la posici?n en coordenadas del mundo real en la que se ha
|
100 |
* hecho click al mostrar informaci?n del raster.
|
101 |
* @param x Posici?n en X
|
102 |
* @param y Posici?n en Y
|
103 |
*/
|
104 |
public void setPosWC(double x, double y); |
105 |
|
106 |
/**
|
107 |
* Obtiene el valor del pixel del Image en la posici?n x,y
|
108 |
* @param x Posici?n x
|
109 |
* @param y Posici?n y
|
110 |
* @return valor de pixel
|
111 |
*/
|
112 |
public int[] getPixel(double wcx, double wcy); |
113 |
|
114 |
public void setTransparency(int trans); |
115 |
|
116 |
public void setBand(int flag, int nBand); |
117 |
|
118 |
/**
|
119 |
* Obtiene atributos a partir de un georasterfile
|
120 |
* @return
|
121 |
*/
|
122 |
public ArrayList getAttributes(); |
123 |
|
124 |
public double getMaxX(); |
125 |
public double getMaxY(); |
126 |
public double getMinX(); |
127 |
public double getMinY(); |
128 |
public double getWidth(); |
129 |
public double getHeight(); |
130 |
|
131 |
/**
|
132 |
* Consulta si una capa est? siendo tileada o no
|
133 |
* @return true si est? siendo tileada y false si no lo est?
|
134 |
*/
|
135 |
public boolean isTiled(); |
136 |
|
137 |
/**
|
138 |
* Obtiene el tama?o del tile si la capa est? siendo tileada. Esta funci?n e fundamentalmente
|
139 |
* usada por salvar a raster donde se consulta el tama?o del tile para hacer bandas de ese ancho.
|
140 |
* @return array con dos enteros que representan el ancho y el alto del tile
|
141 |
*/
|
142 |
public int[] getTileSize(); |
143 |
|
144 |
/**
|
145 |
* Obtiene el tipo de dato de la capa raster
|
146 |
* @return Entero que representa el tipo de dato de la capa raster.
|
147 |
*/
|
148 |
public int getDataType(); |
149 |
} |