Revision 210 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/buffer/DefaultRasterQuery.java
DefaultRasterQuery.java | ||
---|---|---|
21 | 21 |
*/ |
22 | 22 |
package org.gvsig.raster.impl.buffer; |
23 | 23 |
|
24 |
import org.gvsig.fmap.dal.coverage.grid.render.TileListener; |
|
24 | 25 |
import org.gvsig.fmap.dal.coverage.store.RasterQuery; |
25 | 26 |
import org.gvsig.tools.persistence.PersistentState; |
26 | 27 |
import org.gvsig.tools.persistence.exception.PersistenceException; |
... | ... | |
36 | 37 |
public static final int TYPE_COORDS_SIZE = 2; |
37 | 38 |
public static final int TYPE_PX = 3; |
38 | 39 |
public static final int TYPE_PX_SIZE = 4; |
40 |
public static final int TYPE_COORDS_SIZE_TILED = 5; |
|
39 | 41 |
|
40 | 42 |
private int type = 0; |
41 | 43 |
|
... | ... | |
72 | 74 |
*/ |
73 | 75 |
private double noDataValueToFill = -99999; |
74 | 76 |
|
77 |
private int frameWidthPx = 0; |
|
78 |
private TileListener listener = null; |
|
79 |
|
|
75 | 80 |
/* |
76 | 81 |
* (non-Javadoc) |
77 | 82 |
* @see org.gvsig.fmap.dal.coverage.buffer.RasterQuery#setAreaOfInterest(double, double, double, double) |
... | ... | |
101 | 106 |
|
102 | 107 |
/* |
103 | 108 |
* (non-Javadoc) |
109 |
* @see org.gvsig.fmap.dal.coverage.store.RasterQuery#setAreaOfInterest(double, double, double, double, int, int, org.gvsig.fmap.dal.coverage.grid.render.TileListener, int) |
|
110 |
*/ |
|
111 |
public void setAreaOfInterest(double ulx, double uly, double lrx, double lry, |
|
112 |
int bufWidth, int bufHeight, TileListener listener, int frameWidthPx) { |
|
113 |
this.ulx = ulx; |
|
114 |
this.uly = uly; |
|
115 |
this.lrx = lrx; |
|
116 |
this.lry = lry; |
|
117 |
this.bufWidth = bufWidth; |
|
118 |
this.bufHeight = bufHeight; |
|
119 |
this.type = TYPE_COORDS_SIZE_TILED; |
|
120 |
this.frameWidthPx = frameWidthPx; |
|
121 |
this.listener = listener; |
|
122 |
} |
|
123 |
|
|
124 |
/* |
|
125 |
* (non-Javadoc) |
|
104 | 126 |
* @see org.gvsig.fmap.dal.coverage.buffer.RasterQuery#setAreaOfInterest(int, int, int, int) |
105 | 127 |
*/ |
106 | 128 |
public void setAreaOfInterest(int x, int y, int w, int h) { |
... | ... | |
306 | 328 |
public boolean isReadOnly() { |
307 | 329 |
return readOnly; |
308 | 330 |
} |
331 |
|
|
332 |
public int getFrameWidthPx() { |
|
333 |
return frameWidthPx; |
|
334 |
} |
|
309 | 335 |
|
336 |
public TileListener getTileListener() { |
|
337 |
return listener; |
|
338 |
} |
|
339 |
|
|
310 | 340 |
//**************************************************** |
311 | 341 |
//*********Implementing DataQuery methods************* |
312 | 342 |
//**************************************************** |
... | ... | |
369 | 399 |
// TODO Auto-generated method stub |
370 | 400 |
|
371 | 401 |
} |
372 |
|
|
373 | 402 |
} |
Also available in: Unified diff