public class ImageryCaptureTask extends TileCaptureTask
Modifier and Type | Class and Description |
---|---|
static interface |
ImageryCaptureTask.Callback |
static interface |
ImageryCaptureTask.ProgressCallback |
Modifier and Type | Field and Description |
---|---|
protected TileCaptureBounds |
_bounds |
protected ImageryCaptureTask.Callback |
_callback |
protected Dataset |
_dataset |
protected int |
_fullHeight |
protected int |
_fullWidth |
protected java.io.File |
_outFile |
protected ImageryCaptureParams |
_params |
protected ImageryCaptureTask.ProgressCallback |
_progressCallback |
protected int |
_tileCount |
_tileCapture
Constructor and Description |
---|
ImageryCaptureTask(TileCapture tileCap,
ImageryCaptureParams params,
ImageryCaptureTask.Callback cb) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
doInBackground(TileCaptureParams... params) |
boolean |
onCaptureTile(android.graphics.Bitmap tile,
int tileNum,
int tileColumn,
int tileRow)
Tile has been captured
|
void |
onPostExecute(java.lang.Boolean result) |
boolean |
onStartCapture(int tileCount,
int tw,
int th,
int fw,
int fh)
Capture process started - this is where you would create your
destination file based on the arguments provided
|
void |
setProgressCallback(ImageryCaptureTask.ProgressCallback cb) |
protected void |
writeTile(android.graphics.Bitmap tile,
int tileColumn,
int tileRow) |
protected final ImageryCaptureParams _params
protected final ImageryCaptureTask.Callback _callback
protected ImageryCaptureTask.ProgressCallback _progressCallback
protected int _tileCount
protected Dataset _dataset
protected java.io.File _outFile
protected TileCaptureBounds _bounds
protected int _fullWidth
protected int _fullHeight
public ImageryCaptureTask(TileCapture tileCap, ImageryCaptureParams params, ImageryCaptureTask.Callback cb)
public void setProgressCallback(ImageryCaptureTask.ProgressCallback cb)
public java.lang.Boolean doInBackground(TileCaptureParams... params)
doInBackground
in class TileCaptureTask
public boolean onStartCapture(int tileCount, int tw, int th, int fw, int fh)
TileCapture.Callback
tileCount
- The total number of tiles being capturedtw
- Tile width in pixelsth
- Tile height in pixelsfw
- Full capture width in pixelsfh
- Full capture height in pixelspublic boolean onCaptureTile(android.graphics.Bitmap tile, int tileNum, int tileColumn, int tileRow)
TileCapture.Callback
tile
- Tile bitmaptileNum
- The tile number (out of the total number of tiles)tileColumn
- Tile columntileRow
- Tile rowpublic void onPostExecute(java.lang.Boolean result)
onPostExecute
in class android.os.AsyncTask<TileCaptureParams,java.lang.Integer,java.lang.Boolean>
protected void writeTile(android.graphics.Bitmap tile, int tileColumn, int tileRow)