root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / layers / RasterOperations.java @ 2859
History | View | Annotate | Download (3.37 KB)
1 | 1100 | fjp | /* 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 | 228 | fernando | package com.iver.cit.gvsig.fmap.layers; |
42 | |||
43 | 2396 | nacho | import java.util.ArrayList; |
44 | |||
45 | 2623 | nacho | import org.cresques.io.raster.RasterFilterStack; |
46 | |||
47 | 2850 | nacho | import com.iver.cit.gvsig.fmap.ViewPort; |
48 | 1680 | luisw | import com.iver.cit.gvsig.fmap.layers.layerOperations.InfoByPoint; |
49 | 228 | fernando | |
50 | 1034 | vcaballero | |
51 | /**
|
||
52 | * Interfaz de operaciones sobre una capa raster.
|
||
53 | 2623 | nacho | * @author Nacho Brodin (brodin_ign@gva.es)
|
54 | 1034 | vcaballero | */
|
55 | 1680 | luisw | public interface RasterOperations extends InfoByPoint { |
56 | 2396 | nacho | /**
|
57 | * Asigna RGB en la posici?n en la que se ha
|
||
58 | * hecho click al mostrar informaci?n del raster.
|
||
59 | * @param r valor de rojo
|
||
60 | * @param g valor de verde
|
||
61 | * @param b valor de azul
|
||
62 | */
|
||
63 | public void setRGB(int r, int g, int b); |
||
64 | |||
65 | /**
|
||
66 | 2623 | nacho | * Obtiene la pila de filtros aplicada al raster
|
67 | * @return
|
||
68 | */
|
||
69 | public RasterFilterStack getFilterStack();
|
||
70 | |||
71 | /**
|
||
72 | * Asigna la pila de filtros aplicada al raster
|
||
73 | * @return
|
||
74 | */
|
||
75 | public void setFilterStack(RasterFilterStack stack); |
||
76 | |||
77 | /**
|
||
78 | 2396 | nacho | * Devuelve el RasterAdapter de la capa.
|
79 | *
|
||
80 | * @return RasterAdapter.
|
||
81 | */
|
||
82 | public RasterAdapter getSource() ;
|
||
83 | |||
84 | /**
|
||
85 | * Inserta el RasterAdapter.
|
||
86 | *
|
||
87 | * @param ra RasterAdapter.
|
||
88 | */
|
||
89 | public void setSource(RasterAdapter ra) ; |
||
90 | |||
91 | /**
|
||
92 | * Asigna la posici?n en la que se ha hecho click al mostrar
|
||
93 | * informaci?n del raster.
|
||
94 | * @param x Posici?n en X
|
||
95 | * @param y Posici?n en Y
|
||
96 | */
|
||
97 | public void setPos(int x, int y); |
||
98 | |||
99 | /**
|
||
100 | * Asigna la posici?n en coordenadas del mundo real en la que se ha
|
||
101 | * hecho click al mostrar informaci?n del raster.
|
||
102 | * @param x Posici?n en X
|
||
103 | * @param y Posici?n en Y
|
||
104 | */
|
||
105 | public void setPosWC(double x, double y); |
||
106 | |||
107 | /**
|
||
108 | * Obtiene el valor del pixel del Image en la posici?n x,y
|
||
109 | * @param x Posici?n x
|
||
110 | * @param y Posici?n y
|
||
111 | * @return valor de pixel
|
||
112 | */
|
||
113 | public int[] getPixel(double wcx, double wcy); |
||
114 | |||
115 | 2623 | nacho | public void setTransparency(int trans); |
116 | |||
117 | public void setBand(int flag, int nBand); |
||
118 | |||
119 | 2396 | nacho | /**
|
120 | * Obtiene atributos a partir de un georasterfile
|
||
121 | * @return
|
||
122 | */
|
||
123 | public ArrayList getAttributes(); |
||
124 | |||
125 | 2850 | nacho | /**
|
126 | * Asigna el extent de la vista para colocar imagenes sin georeferenciar
|
||
127 | * @param extent
|
||
128 | */
|
||
129 | public void setTempExtent(ViewPort vp); |
||
130 | |||
131 | 2396 | nacho | public double getMaxX(); |
132 | public double getMaxY(); |
||
133 | public double getMinX(); |
||
134 | public double getMinY(); |
||
135 | public double getWidth(); |
||
136 | public double getHeight(); |
||
137 | 228 | fernando | } |