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 6340 dmartinezizquierdo
package org.gvsig.raster.tilecache.provider;
2
3
import org.gvsig.fmap.dal.exception.DataException;
4 6385 fdiaz
import org.gvsig.fmap.dal.exception.InitializeException;
5
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException;
6 6340 dmartinezizquierdo
import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
7 6488 fdiaz
import org.gvsig.fmap.geom.exception.CreateEnvelopeException;
8 6340 dmartinezizquierdo
import org.gvsig.fmap.geom.primitive.Envelope;
9
import org.gvsig.raster.lib.buffer.api.Band;
10 6509 fdiaz
import org.gvsig.raster.lib.buffer.api.TileStruct;
11 6385 fdiaz
import org.gvsig.raster.lib.buffer.api.exceptions.BufferException;
12 6420 fdiaz
import org.gvsig.tools.dynobject.exception.DynMethodException;
13 6342 fdiaz
14 6516 fdiaz
public interface TileStructImage {
15 6340 dmartinezizquierdo
16 6342 fdiaz
    /**
17
     * @param pixelSize
18
     * @return The appropiate zoom level for the pizelSize
19
     */
20 6516 fdiaz
    public abstract int getZoomLvlForPixelSize(double pixelSize);
21 6340 dmartinezizquierdo
22 6342 fdiaz
    /**
23 6654 fdiaz
     * Get band from the required tile.
24
     * Return null on fails.
25
     *
26 6506 fdiaz
     * @param bandNumber
27 6342 fdiaz
     * @param zoomLevel
28 6654 fdiaz
     * @param structRow
29
     * @param structCol
30 6385 fdiaz
     * @return Band
31 6342 fdiaz
     */
32 6654 fdiaz
    public abstract Band fetchTile(int bandNumber, int zoomLevel, int structRow, int structCol);
33 6340 dmartinezizquierdo
34 6342 fdiaz
    /**
35
     * @return the band number
36
     */
37 6654 fdiaz
    public abstract int getBandNumber();
38 6340 dmartinezizquierdo
39 6342 fdiaz
    /**
40
     * @return the data types
41
     */
42 6654 fdiaz
    public abstract int[] getDataTypes();
43 6340 dmartinezizquierdo
44 6342 fdiaz
    /**
45
     * @param zoomLevel
46
     * @return rows per zoom level
47
     */
48 6516 fdiaz
    public abstract int getRows(int zoomLevel);
49 6340 dmartinezizquierdo
50 6342 fdiaz
    /**
51
     * @param zoomLevel
52
     * @return columns per zoom level
53
     */
54 6516 fdiaz
    public abstract int getColumns(int zoomLevel);
55 6340 dmartinezizquierdo
56 6342 fdiaz
    /**
57 6403 fdiaz
     * @return envelope per zoom level
58 6342 fdiaz
     */
59 6516 fdiaz
    public abstract Envelope getEnvelope();
60 6340 dmartinezizquierdo
61 6342 fdiaz
    /**
62
     * @return the rows number per tile
63
     */
64 6516 fdiaz
    public abstract int getRowsPerTile();
65 6340 dmartinezizquierdo
66 6342 fdiaz
    /**
67
     * @return the columns number per tile
68
     */
69 6516 fdiaz
    public abstract int getColumnsPerTile();
70 6340 dmartinezizquierdo
71 6342 fdiaz
    /**
72
     * @return the provider name
73
     */
74 6516 fdiaz
    public abstract String getProviderName();
75 6340 dmartinezizquierdo
76 6420 fdiaz
    /**
77
     * @return the color interpretation
78
     */
79 6654 fdiaz
    public abstract Object getColorInterpretation();
80 6420 fdiaz
81
    /**
82
     * @return the color table
83
     */
84 6654 fdiaz
    public abstract Object getColorTable();
85 6420 fdiaz
86
    /**
87
     * @return the legend
88
     */
89 6654 fdiaz
    public abstract Object getLegend();
90 6420 fdiaz
91 6516 fdiaz
    public abstract TileStruct getTileStruct();
92 6385 fdiaz
93 6340 dmartinezizquierdo
}