Statistics
| Revision:

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 / BufferManager.java @ 5441

History | View | Annotate | Download (2.86 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 java.awt.image.DataBuffer;
26
import java.io.File;
27

    
28

    
29
/**
30
 * @author fdiaz
31
 *
32
 */
33
public interface BufferManager {
34

    
35
    public final static int TYPE_UNDEFINED                 = DataBuffer.TYPE_UNDEFINED;
36
    public final static int TYPE_BYTE                      = DataBuffer.TYPE_BYTE;
37
    public final static int TYPE_SHORT                     = DataBuffer.TYPE_SHORT;
38
    public final static int TYPE_USHORT                    = DataBuffer.TYPE_USHORT;
39
    public final static int TYPE_INT                       = DataBuffer.TYPE_INT;
40
    public final static int TYPE_FLOAT                     = DataBuffer.TYPE_FLOAT;
41
    public final static int TYPE_DOUBLE                    = DataBuffer.TYPE_DOUBLE;
42

    
43
    /**
44
     * Creates a NoData object.
45
     * @param value
46
     * @param defaultValue
47
     *
48
     * @return
49
     */
50
    public NoData createNoData(Number value, Number defaultValue);
51

    
52
    /**
53
     * Creates a Band.
54
     * If pageManager is null, the band will be in memory,
55
     * else, the band will be paginated.
56
     *
57
     * @param dataType
58
     * @param width
59
     * @param height
60
     * @param nodata
61
     * @param pageManager
62
     * @return a Band
63
     */
64
    public Band createBand(int dataType, int width, int height, NoData nodata, BandPageManager pageManager);
65

    
66
    /**
67
     * @param width
68
     * @param height
69
     * @param bandDataTypes
70
     * @return
71
     */
72
    public Buffer createMemoryBuffer(int width, int height, int[] bandDataTypes);
73

    
74
    /**
75
     * @param width
76
     * @param height
77
     * @param bandDataTypes
78
     * @param pageManager
79
     * @return
80
     */
81
    public Buffer createPaginatedBuffer(int width, int height, int[] bandDataTypes, BandPageManager pageManager);
82

    
83
    /**
84
     * @param file
85
     * @param width
86
     * @param height
87
     * @param dataType
88
     * @return
89
     */
90
    public BandPageManager createSimpleBandPageManager(File file, int width, int height, int dataType);
91

    
92

    
93
}