Statistics
| Revision:

root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / layers / RasterOperations.java @ 10977

History | View | Annotate | Download (3.64 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 5979 nacho
import org.cresques.filter.RasterFilterStack;
45 1680 luisw
import com.iver.cit.gvsig.fmap.layers.layerOperations.InfoByPoint;
46 228 fernando
47 1034 vcaballero
/**
48
 * Interfaz de operaciones sobre una capa raster.
49 2623 nacho
 * @author Nacho Brodin (brodin_ign@gva.es)
50 1034 vcaballero
 */
51 1680 luisw
public interface RasterOperations extends InfoByPoint {
52 2396 nacho
        /**
53
         * Asigna RGB en la posici?n en la que se ha
54
         * hecho click al mostrar informaci?n del raster.
55
         * @param r        valor de rojo
56
         * @param g        valor de verde
57
         * @param b        valor de azul
58
         */
59
        public void setRGB(int r, int g, int b);
60
61
        /**
62 2623 nacho
         * Obtiene la pila de filtros aplicada al raster
63
         * @return
64
         */
65
        public RasterFilterStack getFilterStack();
66
67
        /**
68
         * Asigna la pila de filtros aplicada al raster
69
         * @return
70
         */
71
        public void setFilterStack(RasterFilterStack stack);
72
73
        /**
74 2396 nacho
         * Devuelve el RasterAdapter de la capa.
75
         *
76
         * @return RasterAdapter.
77
         */
78 10105 nacho
        //public RasterAdapter getSource() ;
79 2396 nacho
80
        /**
81
         * Inserta el RasterAdapter.
82
         *
83
         * @param ra RasterAdapter.
84
         */
85 10105 nacho
        //public void setSource(RasterAdapter ra) ;
86 2396 nacho
87
        /**
88
         * Asigna la posici?n en la que se ha hecho click al mostrar
89
         * informaci?n del raster.
90
         * @param x        Posici?n en X
91
         * @param y        Posici?n en Y
92
         */
93
        public void setPos(int x, int y);
94
95
        /**
96
         * Asigna la posici?n en coordenadas del mundo real en la que se ha
97
         * hecho click al mostrar informaci?n del raster.
98
         * @param x        Posici?n en X
99
         * @param y        Posici?n en Y
100
         */
101
        public void setPosWC(double x, double y);
102
103
        /**
104
         * Obtiene el valor del pixel del Image en la posici?n x,y
105
         * @param x Posici?n x
106
         * @param y Posici?n y
107
         * @return valor de pixel
108
         */
109
        public int[] getPixel(double wcx, double wcy);
110
111 2623 nacho
        public void setTransparency(int trans);
112
113
        public void setBand(int flag, int nBand);
114
115 2396 nacho
        /**
116
         * Obtiene atributos a partir de un georasterfile
117
         * @return
118
         */
119
        public ArrayList getAttributes();
120 3084 nacho
121 2396 nacho
        public double getMaxX();
122
        public double getMaxY();
123
        public double getMinX();
124
        public double getMinY();
125
        public double getWidth();
126
        public double getHeight();
127 6007 nacho
128
        /**
129
         * Consulta si una capa est? siendo tileada o no
130
         * @return true si est? siendo tileada y false si no lo est?
131
         */
132
        public boolean isTiled();
133
134
        /**
135
         * Obtiene el tama?o del tile si la capa est? siendo tileada. Esta funci?n e fundamentalmente
136
         * usada por salvar a raster donde se consulta el tama?o del tile para hacer bandas de ese ancho.
137
         * @return array con dos enteros que representan el ancho y el alto del tile
138
         */
139
        public int[] getTileSize();
140 228 fernando
}