gvsig-raster / org.gvsig.raster / branches / org.gvsig.raster.2.4 / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.buffer / org.gvsig.raster.lib.buffer.api / src / main / java / org / gvsig / raster / lib / buffer / api / NoData.java @ 5441
History | View | Annotate | Download (2.88 KB)
1 |
/* gvSIG. Desktop Geographic Information System.
|
---|---|
2 |
*
|
3 |
* Copyright ? 2007-2016 gvSIG Association
|
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., 51 Franklin Street, Fifth Floor, Boston,
|
18 |
* MA 02110-1301, USA.
|
19 |
*
|
20 |
* For any additional information, do not hesitate to contact us
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
22 |
*/
|
23 |
package org.gvsig.raster.lib.buffer.api; |
24 |
|
25 |
import org.gvsig.tools.lang.Cloneable; |
26 |
|
27 |
|
28 |
/**
|
29 |
* @author fdiaz
|
30 |
*
|
31 |
*/
|
32 |
public interface NoData extends Cloneable, Comparable<NoData>{ |
33 |
|
34 |
/**
|
35 |
* Gets a unique value for nodata. It doesn't take into account if the raster has
|
36 |
* several bands. Returns the same value for all of them.
|
37 |
* @return the noData
|
38 |
*/
|
39 |
public Number getValue(); |
40 |
|
41 |
/**
|
42 |
* Sets a unique value for nodata. It doesn't take into account if the raster has
|
43 |
* several bands. Assigns the same value for all of them.
|
44 |
* @param noData the noData to set
|
45 |
*/
|
46 |
public void setValue(Number noData); |
47 |
|
48 |
/**
|
49 |
* Returns true if getValue is defined and false if is null
|
50 |
* @return true if getValue is defined and false if is null
|
51 |
*/
|
52 |
public boolean isDefined(); |
53 |
|
54 |
/**
|
55 |
* Clear the nodata value.
|
56 |
*/
|
57 |
public void clear(); |
58 |
|
59 |
/**
|
60 |
* Restores native value. The native is the original value
|
61 |
* saved in the head of the file or its metadata. This value
|
62 |
* has to be assign when NoData object is initialize.
|
63 |
*/
|
64 |
public void restore(); |
65 |
|
66 |
/**
|
67 |
* The native is the original value
|
68 |
* saved in the head of the file or its metadata. This value
|
69 |
* has to be assign when NoData object is initialize
|
70 |
* @return the noData
|
71 |
*/
|
72 |
public Number getDefaultValue(); |
73 |
|
74 |
//FIXME: to SPI
|
75 |
|
76 |
|
77 |
// /**
|
78 |
// * The native is the original value
|
79 |
// * saved in the head of the file or its metadata. This value
|
80 |
// * has to be assign when NoData object is initialize.
|
81 |
// * @param nativeNoDataValue
|
82 |
// */
|
83 |
// public void setDefaultValue(Number value);
|
84 |
|
85 |
/**
|
86 |
* Gets the NoData data type
|
87 |
* @return the data type
|
88 |
*/
|
89 |
public int getDataType(); |
90 |
|
91 |
/**
|
92 |
*
|
93 |
* @param obj
|
94 |
* @return
|
95 |
*/
|
96 |
@Override
|
97 |
public boolean equals(Object obj); |
98 |
|
99 |
|
100 |
/**
|
101 |
* Copy from noData parameter
|
102 |
*
|
103 |
* @param noData
|
104 |
*/
|
105 |
public void copyFrom(NoData noData); |
106 |
|
107 |
} |