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 @ 5450

History | View | Annotate | Download (2.75 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
/**
31
 * @author fdiaz
32
 *
33
 */
34
public interface BufferManager {
35

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

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

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

    
68
    /**
69
     * @param rows
70
     * @param columns
71
     * @param bandDataTypes
72
     * @param pageManager
73
     * @return Buffer
74
     */
75
    public Buffer createBuffer(int rows, int columns, int[] bandDataTypes, BandPageManager pageManager);
76

    
77

    
78
    /**
79
     * @param file
80
     * @param rows
81
     * @param columns
82
     * @param dataType
83
     * @return BandPageManager
84
     */
85
    public BandPageManager createSimpleBandPageManager(File file, int rows, int columns, int dataType);
86

    
87

    
88
}