Revision 2328 org.gvsig.raster/branches/org.gvsig.raster_dataaccess_refactoring/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/grid/filter/segmentation/FirstDerivativeListManager.java

View differences:

FirstDerivativeListManager.java
26 26

  
27 27
import org.gvsig.fmap.dal.coverage.datastruct.Params;
28 28
import org.gvsig.fmap.dal.coverage.exception.FilterTypeException;
29
import org.gvsig.fmap.dal.coverage.grid.AbstractRasterFilterManager;
29 30
import org.gvsig.fmap.dal.coverage.grid.RasterFilter;
30 31
import org.gvsig.fmap.dal.coverage.grid.RasterFilterList;
31
import org.gvsig.fmap.dal.coverage.grid.RasterFilterListManager;
32 32
import org.gvsig.raster.impl.grid.filter.RasterFilterListManagerImpl;
33 33
import org.gvsig.raster.impl.store.ParamImpl;
34
import org.gvsig.tools.ToolsLocator;
35
import org.gvsig.tools.extensionpoint.ExtensionPoint;
36
import org.gvsig.tools.extensionpoint.ExtensionPointManager;
37 34
/**
38 35
 * Gestor de la pila de filtros para el filtro de primera derivada.
39 36
 *
40 37
 * @author Diego Guerrero Sevilla  <diego.guerrero@uclm.es>
41 38
 */
42
public class FirstDerivativeListManager implements RasterFilterListManager {
43
	protected RasterFilterList			filterList				= null;
44

  
39
public class FirstDerivativeListManager extends AbstractRasterFilterManager {
40
	private static String   ID = "FirstDerivative";
41
	
45 42
	/**
46 43
	 * Default constructor. Sets the filter list.
47 44
	 * @param filterList
48 45
	 */
49 46
	public FirstDerivativeListManager(RasterFilterList filterList) {
50
		this.filterList = filterList;
47
		super(filterList);
51 48
	}
52 49
	
50
	public String getManagerID() {
51
		return ID;
52
	}
53

  
54
	public static void register() {
55
		AbstractRasterFilterManager.register(ID, FirstDerivativeListManager.class);
56
	}
57
	
53 58
	/**
54 59
	 * Constructor. Asigna la lista de filtros y el manager.
55 60
	 * @param filterListManager
56 61
	 */
57 62
	public FirstDerivativeListManager(RasterFilterListManagerImpl filterListManager) {
58
		this.filterList = filterListManager.getFilterList();
63
		super(filterListManager.getFilterList());
59 64
	}
60

  
61
	/**
62
	 * Registra FirstDerivativeListManager en los puntos de extension de RasterFilter
63
	 */
64
	public static void register() {
65
		ExtensionPointManager extensionPoints = ToolsLocator.getExtensionPointManager();
66
		ExtensionPoint point = extensionPoints.get("RasterFilter");
67
		point.append("FirstDerivative", "", FirstDerivativeListManager.class);
68
	}
69 65
	
70 66
	public boolean isDataTypeSupported(int dataType) {
71 67
		return true;
......
99 95
			filter.addParam("compare", new Boolean(compare));
100 96
			filter.addParam("filterName", new String(Name));
101 97
			filter.setName(Name);
102
			filterList.add(filter);
98
			getFilterList().add(filter);
103 99
		}
104 100
	}
105 101

  
......
190 186
		}
191 187
		return null;
192 188
	}
193
	
194
	public RasterFilterList getFilterList() {
195
		return filterList;
196
	}
197
	
198
	public void setFilterList(RasterFilterList filterList) {
199
		this.filterList = filterList;
200
	}
201 189
}

Also available in: Unified diff