Revision 58
org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.api/src/main/java/org/gvsig/fmap/dal/coverage/store/props/Transparency.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
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., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
package org.gvsig.fmap.dal.coverage.store.props; |
|
23 |
|
|
24 |
import java.util.ArrayList; |
|
25 |
|
|
26 |
import org.gvsig.fmap.dal.coverage.dataset.Buffer; |
|
27 |
import org.gvsig.fmap.dal.coverage.datastruct.TransparencyRange; |
|
28 |
|
|
29 |
|
|
30 |
/** |
|
31 |
* Interfaz que representa la transparencia. |
|
32 |
* |
|
33 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
|
34 |
*/ |
|
35 |
public interface Transparency { |
|
36 |
/** |
|
37 |
* Asigna la informaci?n de si existe o no banda de transparencia cuando este |
|
38 |
* objeto va asociado a un dataset. Si tiene este tipo de banda en cada |
|
39 |
* dibujado se cargar? la informaci?n de m?scara de transparencia en el la |
|
40 |
* variable mask. |
|
41 |
* @param true si existe banda de transparencia y false si no lo es. |
|
42 |
*/ |
|
43 |
public void setTransparencyBand(int alphaBandNumber); |
|
44 |
|
|
45 |
/** |
|
46 |
* Mezcla un objeto Transparency con el actual |
|
47 |
* @param ts objeto TransparencyStatus |
|
48 |
*/ |
|
49 |
public Transparency merge(Transparency transp); |
|
50 |
|
|
51 |
/** |
|
52 |
* Obtiene el grado de opacidad de todo el raster |
|
53 |
* @return valor del grado de opacidad. |
|
54 |
*/ |
|
55 |
public int getOpacity(); |
|
56 |
|
|
57 |
/** |
|
58 |
* Obtiene la m?scara asociada |
|
59 |
* @return M?scara de transparencia |
|
60 |
*/ |
|
61 |
public Buffer getAlphaBand(); |
|
62 |
|
|
63 |
/** |
|
64 |
* Obtiene la banda de transpareci si existe o -1 si no existe. |
|
65 |
* @return n?mero de banda de transparencia o -1 si no existe. |
|
66 |
*/ |
|
67 |
public int getAlphaBandNumber(); |
|
68 |
|
|
69 |
/** |
|
70 |
* Obtiene los rangos de pixels que son transparentes en el raster. |
|
71 |
* @return Rangos de transparencias a aplicar |
|
72 |
*/ |
|
73 |
public ArrayList<TransparencyRange> getTransparencyRange(); |
|
74 |
|
|
75 |
/** |
|
76 |
* Obtiene el valor noData |
|
77 |
* @return |
|
78 |
*/ |
|
79 |
public double getNoData(); |
|
80 |
|
|
81 |
/** |
|
82 |
* Obtiene la informaci?n de si existe o no la posibilidad de aplicar valore no data |
|
83 |
* como transparentes. Para ello tiene que estar activo su uso y el buffer debe contener datos |
|
84 |
* @return true si puede aplicarse noData y false si no se puede |
|
85 |
*/ |
|
86 |
public boolean isNoDataActive(); |
|
87 |
|
|
88 |
/** |
|
89 |
* Obtiene el ?rea de datos |
|
90 |
* @return M?scara de transparencia |
|
91 |
*/ |
|
92 |
public Buffer getDataBuffer(); |
|
93 |
} |
|
0 | 94 |
Also available in: Unified diff