svn-gvsig-desktop / tags / Root_piloto3d / libraries / libCq CMS for java.old / src / org / cresques / filter / IRasterFilter.java @ 9537
History | View | Annotate | Download (2.16 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.filter; |
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 |
* Acciones a realizar antes de la ejecuci?n del filtro
|
34 |
*
|
35 |
*/
|
36 |
public void pre(); |
37 |
|
38 |
/**
|
39 |
* Ejecuci?n.
|
40 |
*
|
41 |
*/
|
42 |
public void execute(); |
43 |
|
44 |
/**
|
45 |
* Procesa la posici?n x,y de la imagen
|
46 |
* @param x posici?n X
|
47 |
* @param y posici?n Y
|
48 |
*/
|
49 |
public void process(int x, int y); |
50 |
|
51 |
/**
|
52 |
* Acciones a realizar despu?s de la ejecuci?n del filtro
|
53 |
*
|
54 |
*/
|
55 |
public void post(); |
56 |
|
57 |
/**
|
58 |
* Par?metros obligatorios:
|
59 |
* inRaster (IRaster)
|
60 |
* par?metros obligatorios (si se da el caso)
|
61 |
* previousFilter (IRasterFilter)
|
62 |
*
|
63 |
* @param name
|
64 |
* @param value
|
65 |
*/
|
66 |
public void addParam(String name, Object value); |
67 |
|
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 |
} |