Statistics
| Revision:

gvsig-raster / org.gvsig.raster / branches / org.gvsig.raster.2.4 / org.gvsig.raster / org.gvsig.raster.tilecache / org.gvsig.raster.tilecache.provider / src / main / java / org / gvsig / raster / tilecache / provider / TileStructImage.java @ 8788

History | View | Annotate | Download (2.25 KB)

1
package org.gvsig.raster.tilecache.provider;
2

    
3
import org.gvsig.fmap.dal.exception.DataException;
4
import org.gvsig.fmap.dal.exception.InitializeException;
5
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException;
6
import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
7
import org.gvsig.fmap.geom.exception.CreateEnvelopeException;
8
import org.gvsig.fmap.geom.primitive.Envelope;
9
import org.gvsig.raster.lib.buffer.api.Band;
10
import org.gvsig.raster.lib.buffer.api.TileStruct;
11
import org.gvsig.raster.lib.buffer.api.exceptions.BufferException;
12
import org.gvsig.tools.dynobject.exception.DynMethodException;
13

    
14
public interface TileStructImage {
15

    
16
    /**
17
     * @param pixelSize
18
     * @return The appropiate zoom level for the pizelSize
19
     */
20
    public abstract int getZoomLvlForPixelSize(double pixelSize);
21

    
22
    /**
23
     * Get band from the required tile.
24
     * Return null on fails.
25
     *
26
     * @param bandNumber
27
     * @param zoomLevel
28
     * @param structRow
29
     * @param structCol
30
     * @return Band
31
     */
32
    public abstract Band fetchTile(int bandNumber, int zoomLevel, int structRow, int structCol);
33

    
34
    /**
35
     * @return the band number
36
     */
37
    public abstract int getBandNumber();
38

    
39
    /**
40
     * @return the data types
41
     */
42
    public abstract int[] getDataTypes();
43

    
44
    /**
45
     * @param zoomLevel
46
     * @return rows per zoom level
47
     */
48
    public abstract int getRows(int zoomLevel);
49

    
50
    /**
51
     * @param zoomLevel
52
     * @return columns per zoom level
53
     */
54
    public abstract int getColumns(int zoomLevel);
55

    
56
    /**
57
     * @return envelope per zoom level
58
     */
59
    public abstract Envelope getEnvelope();
60

    
61
    /**
62
     * @return the rows number per tile
63
     */
64
    public abstract int getRowsPerTile();
65

    
66
    /**
67
     * @return the columns number per tile
68
     */
69
    public abstract int getColumnsPerTile();
70

    
71
    /**
72
     * @return the provider name
73
     */
74
    public abstract String getProviderName();
75

    
76
    /**
77
     * @return the color interpretation
78
     */
79
    public abstract Object getColorInterpretation();
80

    
81
    /**
82
     * @return the color table
83
     */
84
    public abstract Object getColorTable();
85

    
86
    /**
87
     * @return the legend
88
     */
89
    public abstract Object getLegend();
90

    
91
    public abstract TileStruct getTileStruct();
92

    
93
}