Statistics
| Revision:

root / branches / simbologia / libraries / libFMap / src / com / iver / cit / gvsig / fmap / layers / RasterOperations.java @ 10450

History | View | Annotate | Download (3.75 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
         * @uml.property  name="filterStack"
68
         */
69
        public RasterFilterStack getFilterStack();
70

    
71
        /**
72
         * Asigna la pila de filtros aplicada al raster
73
         * @return
74
         * @uml.property  name="filterStack"
75
         */
76
        public void setFilterStack(RasterFilterStack stack);
77
        
78
        /**
79
         * Devuelve el RasterAdapter de la capa.
80
         *
81
         * @return RasterAdapter.
82
         */
83
        //public RasterAdapter getSource() ;
84
                
85
        /**
86
         * Inserta el RasterAdapter.
87
         * @param ra   RasterAdapter.
88
         * @uml.property  name="source"
89
         */
90
        //public void setSource(RasterAdapter ra) ;
91
        
92
        /**
93
         * Asigna la posici?n en la que se ha hecho click al mostrar
94
         * informaci?n del raster.
95
         * @param x        Posici?n en X
96
         * @param y        Posici?n en Y
97
         */
98
        public void setPos(int x, int y);
99
        
100
        /**
101
         * Asigna la posici?n en coordenadas del mundo real en la que se ha 
102
         * hecho click al mostrar informaci?n del raster.
103
         * @param x        Posici?n en X
104
         * @param y        Posici?n en Y
105
         */
106
        public void setPosWC(double x, double y);
107
        
108
        /**
109
         * Obtiene el valor del pixel del Image en la posici?n x,y
110
         * @param x Posici?n x
111
         * @param y Posici?n y
112
         * @return valor de pixel
113
         */
114
        public int[] getPixel(double wcx, double wcy);
115
        
116
        public void setTransparency(int trans);
117
        
118
        public void setBand(int flag, int nBand);
119
                
120
        /**
121
         * Obtiene atributos a partir de un georasterfile
122
         * @return
123
         */
124
        public ArrayList getAttributes();
125
                
126
        public double getMaxX();
127
        public double getMaxY();
128
        public double getMinX();
129
        public double getMinY();
130
        public double getWidth();
131
        public double getHeight();
132
        
133
        /**
134
         * Consulta si una capa est? siendo tileada o no
135
         * @return true si est? siendo tileada y false si no lo est?
136
         */
137
        public boolean isTiled();
138
        
139
        /**
140
         * Obtiene el tama?o del tile si la capa est? siendo tileada. Esta funci?n e fundamentalmente
141
         * usada por salvar a raster donde se consulta el tama?o del tile para hacer bandas de ese ancho.
142
         * @return array con dos enteros que representan el ancho y el alto del tile
143
         */
144
        public int[] getTileSize();
145
}