Statistics
| Revision:

gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.api / src / main / java / org / gvsig / fmap / dal / coverage / datastruct / DatasetBand.java @ 237

History | View | Annotate | Download (3.31 KB)

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.datastruct;
23

    
24

    
25

    
26
/**
27
 * Interfaz que representa a una banda de un fichero.
28
 * @author Nacho Brodin (nachobrodin@gmail.com)
29
 */
30
public interface DatasetBand {
31
        
32
        
33
        /**
34
         * Resetea la asignaci?n de dibujado de las bandas de la imagen
35
         * sobre el DataImage cuando se hace un update para esta banda.
36
         */
37
        public void clearDrawableBands();
38

    
39
        //******************************
40
        //Setters and Getters
41
        //******************************
42
        
43
        /**
44
         * Obtiene las banda del RasterBuf sobre la que se pinta
45
         * este objeto banda
46
         * @return bandas del RasterBuf
47
         */
48
        public int[] getBufferBandListToDraw();
49
        
50
        /**
51
         * Obtiene las banda del RasterBuf sobre la que se pinta
52
         * este objeto banda
53
         * @return bandas del RasterBuf
54
         */
55
        public int[] getLocalBufferBandListToDraw();
56

    
57
        
58
        /**
59
         * Dice si la banda se est? dibujando en el buffers de salida.
60
         * @return true si la banda se est? dibujando y false si no se est? haciendo
61
         */
62
        public boolean isDrawing();
63
                
64
        /**
65
         * Asigna una banda del RasterBuf sobre la que se pinta
66
         * este objeto banda
67
         * @param rasterBufBandToDraw banda del RasterBuf
68
         */
69
        public void setPositionToDrawInBuffer(int rasterBufBandToDraw);
70
        
71
        /**
72
         * Obtiene el nombre del fichero al que pertenece la banda
73
         * @return String con el nombre del fichero al 
74
         * que pertenece la banda
75
         */
76
        public String getFileName();
77

    
78
        /**
79
         * Asigna el nombre del fichero al que pertenece la banda
80
         * @param fileName String con el nombre del fichero al 
81
         * que pertenece la banda
82
         */
83
        public void setFileName(String fileName);
84

    
85
        /**
86
         * Obtiene la posici?n de la banda en el fichero
87
         * @return entero con la posici?n de la banda en el fichero
88
         */
89
        public int getPosition();
90

    
91
        /**
92
         * Asigna la posici?n de la banda en el fichero
93
         * @param position Posici?n de la banda en el fichero
94
         */
95
        public void setPosition(int position);
96

    
97
        /**
98
         * Obtiene el tipo de dato de la banda
99
         * @return entero con el tipo de dato 
100
         */
101
        public int getDataType();
102

    
103
        /**
104
         * Asigna el tipo de dato de la banda
105
         * @param datatype entero con el tipo de dato de la banda
106
         */
107
        public void setDataType(int dataType);
108
        
109
        
110
        /**
111
         * Asigna un nombre de fichero adicional al principal. Esto es util para
112
         * mosaicos de raster donde una banda est? compuesta por multiples ficheros.
113
         */
114
        public void setAdditionalName(String fileName);
115
        
116
        /**
117
         * Obtiene la lista de nombres de fichero adicionales.
118
         * @return String[]
119
         */
120
        public String[] getAdditionalName();
121
}