Revision 302
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/RasterFileDriver.java | ||
---|---|---|
1 |
/* Generated by Together */ |
|
2 |
|
|
3 |
package com.iver.cit.gvsig.fmap.drivers; |
|
4 |
|
|
5 |
import java.awt.geom.Rectangle2D; |
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
public interface RasterFileDriver { |
|
10 |
int getBandCount(); |
|
11 |
double getValueByPixel(int x, int y); |
|
12 |
double getValueByPixel(int x, int y, int band); |
|
13 |
double[] getValuesByPixel(int x, int y); |
|
14 |
Rectangle2D getFullExtent(); |
|
15 |
} |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/BaseRasterDriver.java | ||
---|---|---|
1 |
package com.iver.cit.gvsig.fmap.drivers; |
|
2 |
|
|
3 |
import java.awt.Graphics2D; |
|
4 |
import java.awt.geom.Rectangle2D; |
|
5 |
import java.awt.image.BufferedImage; |
|
6 |
|
|
7 |
import com.iver.cit.gvsig.fmap.ViewPort; |
|
8 |
import com.iver.cit.gvsig.fmap.layers.LayerOperations; |
|
9 |
import com.iver.cit.gvsig.fmap.layers.RasterOperations; |
|
10 |
import com.iver.cit.gvsig.fmap.operations.QueriedPoint; |
|
11 |
|
|
12 |
public interface BaseRasterDriver { |
|
13 |
/** |
|
14 |
* @see com.iver.cit.gvsig.fmap.layers.LayerOperations#getFullExtent() |
|
15 |
*/ |
|
16 |
public Rectangle2D getFullExtent() throws DriverIOException; |
|
17 |
|
|
18 |
/** |
|
19 |
* @see com.iver.cit.gvsig.fmap.layers.LayerOperations#draw(java.awt.image.BufferedImage, java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort) |
|
20 |
*/ |
|
21 |
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort) |
|
22 |
throws DriverIOException; |
|
23 |
|
|
24 |
/** |
|
25 |
* @see com.iver.cit.gvsig.fmap.layers.RasterOperations#queryByPoint(com.iver.cit.gvsig.fmap.operations.QueriedPoint) |
|
26 |
*/ |
|
27 |
public Object queryByPoint(QueriedPoint point); |
|
28 |
} |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/GeorreferencedRasterDriver.java | ||
---|---|---|
1 |
/* Generated by Together */ |
|
2 |
|
|
3 |
package com.iver.cit.gvsig.fmap.drivers; |
|
4 |
|
|
5 |
import java.awt.geom.Rectangle2D; |
|
6 |
|
|
7 |
import org.cresques.cts.IProjection; |
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
public interface GeorreferencedRasterDriver extends RasterDriver { |
|
13 |
/** |
|
14 |
* Obtiene la proyecci?n en la que est? el raster |
|
15 |
*/ |
|
16 |
IProjection getProjection(); |
|
17 |
|
|
18 |
/** |
|
19 |
* Obtiene la extensi?n en coordenadas del mundo real que ocupa este raster |
|
20 |
*/ |
|
21 |
Rectangle2D getFullExtent(); |
|
22 |
} |
|
0 | 23 |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/RasterDriver.java | ||
---|---|---|
1 |
/* Generated by Together */ |
|
2 |
|
|
3 |
package com.iver.cit.gvsig.fmap.drivers; |
|
4 |
|
|
5 |
import java.awt.geom.Rectangle2D; |
|
6 |
|
|
7 |
import org.cresques.cts.IProjection; |
|
8 |
public interface RasterDriver { |
|
9 |
/** |
|
10 |
* Obtiene el n?mero de bandas del raster |
|
11 |
*/ |
|
12 |
int getBandCount(); |
|
13 |
|
|
14 |
/** |
|
15 |
* Obtiene el valor que el raster tiene en la posici?n x, y del bitmap |
|
16 |
* @see com.iver.cit.gvsig.fmap.layers.RasterComplexOperations#getValueByCoords(int, int, int) |
|
17 |
*/ |
|
18 |
byte[] getPixel(int x, int y, byte[] dArray); |
|
19 |
|
|
20 |
/** |
|
21 |
* Obtiene el valor que el raster tiene en la posici?n x, y del bitmap |
|
22 |
* @see com.iver.cit.gvsig.fmap.layers.RasterComplexOperations#getValueByCoords(int, int, int) |
|
23 |
*/ |
|
24 |
int[] getPixel(int x, int y, int[] dArray); |
|
25 |
|
|
26 |
/** |
|
27 |
* Obtiene el valor que el raster tiene en la posici?n x, y del bitmap |
|
28 |
* @see com.iver.cit.gvsig.fmap.layers.RasterComplexOperations#getValueByCoords(int, int, int) |
|
29 |
*/ |
|
30 |
float[] getPixel(int x, int y, float[] dArray); |
|
31 |
|
|
32 |
/** |
|
33 |
* Obtiene el valor que el raster tiene en la posici?n x, y del mundo real para la banda que se pasa como par?metro |
|
34 |
* @see com.iver.cit.gvsig.fmap.layers.RasterComplexOperations#getValueByCoords(int, int, int) |
|
35 |
*/ |
|
36 |
double[] getPixel(int x, int y, double[] dArray); |
|
37 |
|
|
38 |
/** |
|
39 |
* Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro |
|
40 |
*/ |
|
41 |
byte getSampleByte(int x, int y, int band); |
|
42 |
|
|
43 |
/** |
|
44 |
* Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro |
|
45 |
*/ |
|
46 |
int getSampleInt(int x, int y, int band); |
|
47 |
|
|
48 |
/** |
|
49 |
* Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro |
|
50 |
*/ |
|
51 |
float getSampleFloat(int x, int y, int band); |
|
52 |
|
|
53 |
/** |
|
54 |
* Obtiene una muestra del pixel que se pasa como par?metro en la banda que se pasa como par?metro |
|
55 |
*/ |
|
56 |
double getSampleDouble(int x, int y, int band); |
|
57 |
} |
|
0 | 58 |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/NotGeorreferencedRasterDriver.java | ||
---|---|---|
1 |
/* Generated by Together */ |
|
2 |
|
|
3 |
package com.iver.cit.gvsig.fmap.drivers; |
|
4 |
|
|
5 |
import java.awt.geom.Rectangle2D; |
|
6 |
import java.io.File; |
|
7 |
|
|
8 |
import org.cresques.cts.IProjection; |
|
9 |
public interface NotGeorreferencedRasterDriver extends RasterDriver { |
|
10 |
/** |
|
11 |
* Obtiene la extensi?n en coordenadas del mundo real que ocupa este raster ley?ndo dicha informaci?n del fichero de georreferenciaci?n |
|
12 |
*/ |
|
13 |
Rectangle2D getFullExtent(File f); |
|
14 |
|
|
15 |
/** |
|
16 |
* Obtiene la proyecci?n en la que est? el raster leyendo dicha informaci?n del fichero de georreferenciaci?n que se pasa como par?metro |
|
17 |
*/ |
|
18 |
IProjection getProjection(File f); |
|
19 |
} |
|
0 | 20 |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/BasicFileRasterDriver.java | ||
---|---|---|
1 |
package com.iver.cit.gvsig.fmap.drivers; |
|
2 |
|
|
3 |
import java.awt.Graphics2D; |
|
4 |
import java.awt.geom.Rectangle2D; |
|
5 |
import java.awt.image.BufferedImage; |
|
6 |
|
|
7 |
import com.iver.cit.gvsig.fmap.ViewPort; |
|
8 |
import com.iver.cit.gvsig.fmap.layers.LayerOperations; |
|
9 |
import com.iver.cit.gvsig.fmap.layers.RasterOperations; |
|
10 |
import com.iver.cit.gvsig.fmap.operations.QueriedPoint; |
|
11 |
|
|
12 |
public interface BasicFileRasterDriver { |
|
13 |
/** |
|
14 |
* @see com.iver.cit.gvsig.fmap.layers.LayerOperations#getFullExtent() |
|
15 |
*/ |
|
16 |
public Rectangle2D getFullExtent() throws DriverIOException; |
|
17 |
|
|
18 |
/** |
|
19 |
* @see com.iver.cit.gvsig.fmap.layers.LayerOperations#draw(java.awt.image.BufferedImage, java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort) |
|
20 |
*/ |
|
21 |
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort) |
|
22 |
throws DriverIOException; |
|
23 |
|
|
24 |
/** |
|
25 |
* @see com.iver.cit.gvsig.fmap.layers.RasterOperations#queryByPoint(com.iver.cit.gvsig.fmap.operations.QueriedPoint) |
|
26 |
*/ |
|
27 |
public Object queryByPoint(QueriedPoint point); |
|
28 |
} |
|
0 | 29 |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/RasterDBDriver.java | ||
---|---|---|
18 | 18 |
} |
19 | 19 |
|
20 | 20 |
/** |
21 |
* @see com.iver.cit.gvsig.fmap.layers.RasterAdapter#queryByPoint(java.awt.geom.Point2D, double)
|
|
21 |
* @see com.iver.cit.gvsig.fmap.layers.RasterAdapter#queryByPoint(Point2D, double) |
|
22 | 22 |
*/ |
23 | 23 |
public Record queryByPoint(Point2D p, double tolerancia) throws DriverIOException { |
24 | 24 |
return null; |
Also available in: Unified diff