svn-gvsig-desktop / branches / org.gvsig.desktop-2018a / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.api / src / main / java / org / gvsig / fmap / dal / raster / BandDescriptor.java @ 43876
History | View | Annotate | Download (3.37 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 |
|
24 |
package org.gvsig.fmap.dal.raster; |
25 |
|
26 |
import java.util.Iterator; |
27 |
|
28 |
import org.gvsig.raster.lib.buffer.api.BufferManager; |
29 |
import org.gvsig.raster.lib.buffer.api.NoData; |
30 |
import org.gvsig.tools.dispose.Disposable; |
31 |
import org.gvsig.tools.lang.Cloneable; |
32 |
import org.gvsig.tools.persistence.Persistent; |
33 |
|
34 |
/**
|
35 |
* This class describes the available {@link BandAttributeDescriptor} of a band.
|
36 |
*
|
37 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
|
38 |
*
|
39 |
*/
|
40 |
public interface BandDescriptor extends Iterable<BandAttributeDescriptor>, Persistent, Cloneable, Disposable { |
41 |
|
42 |
/**
|
43 |
* Gets the store that the band belongs.
|
44 |
* @return
|
45 |
*/
|
46 |
public RasterStore getStore();
|
47 |
|
48 |
/**
|
49 |
* Gets band of this descriptor.
|
50 |
*
|
51 |
* @return Band
|
52 |
*/
|
53 |
public int getBand(); |
54 |
|
55 |
/**
|
56 |
* Gets the {@link BandAttributeDescriptor} by index.
|
57 |
*
|
58 |
* @param index
|
59 |
* Index of {@link BandAttributeDescriptor}
|
60 |
* @return BandAttributeDescriptor The {@link BandAttributeDescriptor}
|
61 |
* located at index. If there are not
|
62 |
* {@link BandAttributeDescriptor} at index, null will be returned.
|
63 |
*/
|
64 |
public BandAttributeDescriptor get(int index); |
65 |
|
66 |
/**
|
67 |
* Gets the {@link BandAttributeDescriptor} by name.
|
68 |
*
|
69 |
* @param name
|
70 |
* Name of {@link BandAttributeDescriptor}
|
71 |
* @return BandAttributeDescriptor The {@link BandAttributeDescriptor}
|
72 |
* located at index. If there are not
|
73 |
* {@link BandAttributeDescriptor} whit the name, null will be returned.
|
74 |
*/
|
75 |
public BandAttributeDescriptor get(String name); |
76 |
|
77 |
/**
|
78 |
* Number of {@link BandAttributeDescriptor}.
|
79 |
*
|
80 |
* @return size Number of band attribute descriptor.
|
81 |
*/
|
82 |
public int size(); |
83 |
|
84 |
/**
|
85 |
* @return Returns an iterator over the elements in this list in proper
|
86 |
* sequence.
|
87 |
*/
|
88 |
public Iterator<BandAttributeDescriptor> iterator(); |
89 |
|
90 |
/**
|
91 |
* @return
|
92 |
*/
|
93 |
public NoData getNoData();
|
94 |
|
95 |
/**
|
96 |
* @param noData
|
97 |
*/
|
98 |
public void setNoData(NoData noData); |
99 |
|
100 |
|
101 |
/**
|
102 |
* Gets the dataType.
|
103 |
*
|
104 |
* The possible data types are defined in {@link BufferManager}.
|
105 |
*
|
106 |
* The data type of the band can't be changed after being created.
|
107 |
*
|
108 |
* @return the data type
|
109 |
*/
|
110 |
public int getDataType(); |
111 |
|
112 |
/**
|
113 |
* @return
|
114 |
*/
|
115 |
public String getName(); |
116 |
|
117 |
/**
|
118 |
* @return
|
119 |
*/
|
120 |
public String getDescription(); |
121 |
|
122 |
|
123 |
|
124 |
} |