Statistics
| Revision:

svn-gvsig-desktop / branches / CqCMSDvp / libraries / libCq CMS for java.old / src / org / cresques / io / raster / IRasterFilter.java @ 2312

History | View | Annotate | Download (2.02 KB)

1
/*
2
 * Cresques Mapping Suite. Graphic Library for constructing mapping applications.
3
 * 
4
 * Copyright (C) 2004-5. 
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
19
 *
20
 * For more information, contact:
21
 * 
22
 * cresques@gmail.com
23
 */
24
package org.cresques.io.raster;
25

    
26

    
27
/**
28
 * @author Luis W. Sevilla (sevilla_lui@gva.es)
29
 * @author Nacho Brodin (brodin_ign@gva.es)
30
 */
31
public interface IRasterFilter {
32
        
33
        /**
34
         * Acciones a realizar antes de la ejecuci?n del filtro
35
         *
36
         */
37
        public void pre();
38
        
39
        /**
40
         * Ejecuci?n. 
41
         *
42
         */
43
        public void execute();
44
        
45
        /**
46
         * Procesa la posici?n x,y de la imagen
47
         * @param x posici?n X
48
         * @param y posici?n Y
49
         */
50
        public void process(int x, int y);
51
        
52
        /**
53
         * Acciones a realizar despu?s de la ejecuci?n del filtro 
54
         *
55
         */
56
        public void post();
57
        
58
        /**
59
         * Par?metros obligatorios:
60
         *         inRaster (IRaster)
61
         * par?metros obligatorios (si se da el caso)
62
         *         previousFilter (IRasterFilter)
63
         * 
64
         * @param name
65
         * @param value
66
         */
67
        public void addParam(String name, Object value);
68
        /**
69
         * Devuelve los resultados despues de la ejecuci?n del filtro.
70
         * @param name
71
         * @return
72
         */
73
        public Object getResult(String name);
74
        
75
        /**
76
         * Obtiene el tipo de datos de entrada al filtro
77
         * @return Tipo de dato
78
         */
79
        public int getInRasterDataType();
80
        
81
        /**
82
         * Obtiene el tipo de datos de salida del filtro
83
         * @return Tipo de dato
84
         */
85
        public int getOutRasterDataType();
86
}