Revision 2438 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.api/src/main/java/org/gvsig/fmap/dal/coverage/grid/RasterFilter.java
RasterFilter.java | ||
---|---|---|
25 | 25 |
import java.util.TreeMap; |
26 | 26 |
|
27 | 27 |
import org.gvsig.fmap.dal.coverage.datastruct.Params; |
28 |
import org.gvsig.fmap.dal.coverage.exception.FilterAddException; |
|
28 | 29 |
import org.gvsig.fmap.dal.coverage.exception.ProcessInterruptedException; |
29 | 30 |
|
30 | 31 |
/** |
... | ... | |
33 | 34 |
* |
34 | 35 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
35 | 36 |
*/ |
36 |
@SuppressWarnings("unchecked") |
|
37 | 37 |
public interface RasterFilter { |
38 |
public static String RESULT_BUFFER = "raster"; |
|
39 |
public static String RESULT_TRANSPARENCY = "transparency"; |
|
40 |
|
|
38 | 41 |
/** |
39 | 42 |
* Acciones a realizar antes de la ejecuci?n del filtro |
40 | 43 |
*/ |
41 |
public void pre(); |
|
44 |
public void pre() throws FilterAddException;
|
|
42 | 45 |
|
43 | 46 |
/** |
44 | 47 |
* Ejecuci?n de la funci?n process de todo el filtro. |
45 | 48 |
* @throws ProcessInterruptedException |
46 | 49 |
* |
47 | 50 |
*/ |
48 |
public void execute() throws ProcessInterruptedException; |
|
51 |
public void execute() throws ProcessInterruptedException, FilterAddException;
|
|
49 | 52 |
|
50 | 53 |
/** |
51 | 54 |
* Procesa la posici?n x,y del raster |
... | ... | |
58 | 61 |
* Acciones a realizar despu?s de la ejecuci?n del filtro |
59 | 62 |
*/ |
60 | 63 |
public void post(); |
64 |
|
|
65 |
/** |
|
66 |
* Returns true if this filter is to conver the input buffer to RGB. This kind |
|
67 |
* of filters will be in the top of the stack because all others need as input |
|
68 |
* a RGB data buffer |
|
69 |
* @return |
|
70 |
*/ |
|
71 |
public boolean isToConvertToRGB(); |
|
61 | 72 |
|
62 | 73 |
/** |
63 | 74 |
* Par?metros pasados al filtro en forma de nombre de par?metro y objeto que |
... | ... | |
113 | 124 |
* Obtiene el TreeMap con los par?metros del entorno |
114 | 125 |
* @return TreeMap |
115 | 126 |
*/ |
116 |
public TreeMap getEnv(); |
|
127 |
public TreeMap<String, Object> getEnv();
|
|
117 | 128 |
|
118 | 129 |
/** |
119 | 130 |
* Asigna el TreeMap con los par?metros del entorno |
120 | 131 |
* @param env |
121 | 132 |
*/ |
122 |
public void setEnv(TreeMap env); |
|
133 |
public void setEnv(TreeMap<String, Object> env);
|
|
123 | 134 |
|
124 | 135 |
/** |
125 | 136 |
* Obtiene un par?metro a partir de la clave |
... | ... | |
132 | 143 |
* Gets the param list |
133 | 144 |
* @return |
134 | 145 |
*/ |
135 |
public Hashtable getParams(); |
|
146 |
public Hashtable<String, Object> getParams();
|
|
136 | 147 |
|
137 | 148 |
/** |
138 | 149 |
* Gets the param list |
139 | 150 |
* @param params |
140 | 151 |
*/ |
141 |
public void setParams(Hashtable params); |
|
152 |
public void setParams(Hashtable<String, Object> params);
|
|
142 | 153 |
|
143 | 154 |
/** |
144 | 155 |
* Devolver? un booleano indicando si es visible o no en el panel de filtros. |
Also available in: Unified diff