root / trunk / extensions / extRasterTools-SE / src / org / gvsig / fmap / raster / layers / IStatusRaster.java @ 17110
History | View | Annotate | Download (3.42 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007 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 |
package org.gvsig.fmap.raster.layers; |
20 |
|
21 |
import java.util.ArrayList; |
22 |
|
23 |
import org.gvsig.raster.dataset.NotSupportedExtensionException; |
24 |
import org.gvsig.raster.dataset.io.RasterDriverException; |
25 |
import org.gvsig.raster.datastruct.ColorTable; |
26 |
import org.gvsig.raster.grid.GridTransparency; |
27 |
import org.gvsig.raster.grid.filter.FilterTypeException; |
28 |
import org.gvsig.raster.grid.filter.RasterFilterList; |
29 |
import org.gvsig.raster.hierarchy.IRasterProperties; |
30 |
|
31 |
import com.iver.cit.gvsig.fmap.layers.XMLException; |
32 |
import com.iver.utiles.XMLEntity; |
33 |
|
34 |
public interface IStatusRaster{ |
35 |
|
36 |
/**
|
37 |
* Recupera en fichero XML algunas propiedades y filtros del raster
|
38 |
* @param xml
|
39 |
* @throws XMLException
|
40 |
*/
|
41 |
public void setXMLEntity(XMLEntity xml, IRasterProperties layer)throws XMLException; |
42 |
|
43 |
/**
|
44 |
* Salva en fichero XML algunas propiedades y filtros de raster
|
45 |
* @param xml
|
46 |
* @throws XMLException
|
47 |
*/
|
48 |
public void getXMLEntity(XMLEntity xml, boolean loadClass, IRasterProperties layer)throws XMLException; |
49 |
|
50 |
/**
|
51 |
* Aplica el estado almacenado al FLyrRaster pasado por par?metro
|
52 |
* @param adapter
|
53 |
* @throws NotSupportedExtensionException Cuando la extensi?n no est? soportada
|
54 |
* @throws RasterDriverException Cuando se produce un error en la lectura del fichero
|
55 |
*/
|
56 |
public void applyStatus(IRasterProperties layer) throws NotSupportedExtensionException, RasterDriverException, FilterTypeException ; |
57 |
|
58 |
/**
|
59 |
* Obtiene el listado de filtros para poder montar una pila
|
60 |
* despu?s de la recuperaci?n desde el XML
|
61 |
* @return
|
62 |
*/
|
63 |
public ArrayList getFilters(); |
64 |
|
65 |
/**
|
66 |
* Obtiene el orden de renderizado de bandas cargado desde el proyecto
|
67 |
* despu?s de hacer un setXMLEntity
|
68 |
* @return Lista de enteros con el orden de renderizado
|
69 |
*/
|
70 |
public int[] getRenderBands(); |
71 |
|
72 |
/**
|
73 |
* Obtiene la lista de filtros cargada desde el proyecto despu?s de hacer un
|
74 |
* setXMLEntity
|
75 |
* @return RasterFilterList
|
76 |
* @throws FilterTypeException
|
77 |
*/
|
78 |
public RasterFilterList getFilterList() throws FilterTypeException; |
79 |
|
80 |
/**
|
81 |
* Obtiene el objeto de transparencia cargado desde el proyecto despu?s de hacer un
|
82 |
* setXMLEntity
|
83 |
* @return la lista de filtros
|
84 |
*/
|
85 |
public GridTransparency getTransparency();
|
86 |
|
87 |
/**
|
88 |
* Obtiene la lista de filtros cargada desde el proyecto despu?s de hacer un
|
89 |
* setXMLEntity. No construye los filtros sino que devuelve una lista de par?metros
|
90 |
* @return RasterFilterList
|
91 |
*/
|
92 |
public ArrayList getFilterArguments(); |
93 |
|
94 |
/**
|
95 |
* Obtiene el ColorTable si hay un filtro de tabla de color en la lista
|
96 |
* @return ColorTable
|
97 |
* @throws FilterTypeException
|
98 |
*/
|
99 |
public ColorTable getColorTable() throws FilterTypeException; |
100 |
} |