public class ImageryCapturePP extends CapturePP
Modifier and Type | Field and Description |
---|---|
protected TileCaptureBounds |
_bounds |
protected ImageryCaptureParams |
_capParams |
protected GeoPoint |
_center |
protected java.lang.String |
_dateStamp |
protected float |
_drawRes |
protected DatasetProjection2 |
_imprecise |
protected double |
_imprHeight |
protected double |
_imprWidth |
protected java.lang.String |
_location |
protected double |
_mapRange |
protected MapView |
_mapView |
protected android.content.SharedPreferences |
_prefs |
protected double |
_scaleFull |
protected double |
_scaleSeg |
protected PointD |
_scratchPoint |
protected TileCapture |
_tileCap |
protected java.lang.String |
_title |
protected double |
_unwrap |
_borderWidth, _can, _dashStyle, _dotStyle, _dp, _fontSize, _height, _iconSize, _labelSize, _lineWeight, _mapRes, _mapScale, _paint, _path, _pdFontSize, _pdLabelSize, _width, DEFAULT_MIN_RENDER_SCALE
Constructor and Description |
---|
ImageryCapturePP(MapView mapView,
TileCapture tc,
ImageryCaptureParams cp) |
Modifier and Type | Method and Description |
---|---|
android.graphics.Bitmap |
createBitmap(android.graphics.Bitmap src) |
android.graphics.Bitmap |
createPreview(TiledCanvas tc)
Create a preview bitmap for an imagery tileset
|
boolean |
drawElements(android.graphics.Canvas can)
Draw overlays on map imagery
|
android.graphics.PointF |
forward(GeoPoint gp) |
GeoBounds |
getBounds() |
java.lang.String |
getDateStamp()
Get the date stamp from when the capture was taken
|
Span |
getDisplayUnit() |
float |
getHeight() |
java.lang.String |
getLocation()
Get the location of the capture
|
double |
getMapRange()
Get the full map range
|
double |
getMapScaleDisplay()
Get the map scale display size
|
double |
getMapScaleSegment()
Get the scale bar segment interval
|
float |
getResolution() |
int |
getThemeColor(int color)
Convert color to a theme color
|
float |
getWidth() |
protected void |
setDrawingParameters(android.graphics.Canvas can) |
void |
setDrawRes(int drawRes) |
void |
setInfo(java.lang.String title,
java.lang.String location,
java.lang.String dateStamp)
Set the 3 fields to be shown in the info box
By default these values are obtained during setup()
|
void |
setMapScale(double fullSize,
double segSize)
Set the 2 fields used to draw the map scale bar
|
boolean |
snapToGrid() |
void |
writeKML(GeoPoint[] c,
java.lang.String fName,
java.io.File docKml)
Write document KML
|
void |
writeKML(java.lang.String fName,
java.io.File docKml) |
dp, dr, drawLabel, drawLabel, getCanvas, getDashed, getDisplayPoint, getDotted, getFontSize, getIconSize, getLabelSize, getLineWeight, getMapResolution, getPaint, getPath, inside, loadBitmap, resetPaint, shouldDrawLabel, shouldDrawLabel, toInt
protected final MapView _mapView
protected final android.content.SharedPreferences _prefs
protected final TileCapture _tileCap
protected final ImageryCaptureParams _capParams
protected final TileCaptureBounds _bounds
protected final GeoPoint _center
protected final DatasetProjection2 _imprecise
protected final PointD _scratchPoint
protected float _drawRes
protected java.lang.String _title
protected java.lang.String _location
protected java.lang.String _dateStamp
protected double _scaleFull
protected double _scaleSeg
protected double _mapRange
protected double _imprWidth
protected double _imprHeight
protected double _unwrap
public ImageryCapturePP(MapView mapView, TileCapture tc, ImageryCaptureParams cp)
public java.lang.String getDateStamp()
public java.lang.String getLocation()
public double getMapScaleDisplay()
public double getMapScaleSegment()
public double getMapRange()
public Span getDisplayUnit()
public boolean snapToGrid()
public void setInfo(java.lang.String title, java.lang.String location, java.lang.String dateStamp)
title
- Survey namedateStamp
- Date of capturelocation
- Location of surveypublic void setMapScale(double fullSize, double segSize)
fullSize
- Size of the scale barsegSize
- Size of each segment (red/white interleave)public android.graphics.Bitmap createPreview(TiledCanvas tc)
tc
- Tiled canvas pointing to the captured imagerypublic android.graphics.Bitmap createBitmap(android.graphics.Bitmap src)
public void setDrawRes(int drawRes)
public float getResolution()
getResolution
in class CapturePP
public boolean drawElements(android.graphics.Canvas can)
drawElements
in class CapturePP
can
- Canvas to draw toprotected void setDrawingParameters(android.graphics.Canvas can)
public android.graphics.PointF forward(GeoPoint gp)
public int getThemeColor(int color)
getThemeColor
in class CapturePP
color
- Original colorpublic void writeKML(GeoPoint[] c, java.lang.String fName, java.io.File docKml)
c
- Coordinate quad to usefName
- File namedocKml
- Document KML filepublic void writeKML(java.lang.String fName, java.io.File docKml)