|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.proj.Proj
com.bbn.openmap.proj.Cylindrical
com.bbn.openmap.proj.Mercator
com.bbn.openmap.proj.MercatorView
Implements the MercatorView projection.
Field Summary | |
protected int |
dUSX
|
protected int |
dUSY
|
static java.lang.String |
MercatorViewName
The MercatorView name. |
static int |
MercatorViewType
The MercatorView type of projection. |
protected int |
sCtrX
|
protected int |
sCtrY
|
protected LatLonPoint |
uCtr
|
protected float |
uCtrLat
|
protected float |
uCtrLon
|
protected int |
uCtrX
|
protected int |
uCtrY
|
Fields inherited from class com.bbn.openmap.proj.Mercator |
asinh_of_tanCtrLat, epsilon, hy, MAX_RHUMB_SEGS, MercatorName, MercatorType, tanCtrLat, wx |
Fields inherited from class com.bbn.openmap.proj.Cylindrical |
half_world, world |
Fields inherited from class com.bbn.openmap.proj.Proj |
ctrLat, ctrLon, DATELINE, height, maxscale, mercator, MIN_HEIGHT, MIN_WIDTH, minscale, NORTH_POLE, NUM_DEFAULT_CIRCLE_VERTS, NUM_DEFAULT_GREAT_SEGS, pixelsPerMeter, planetPixelCircumference, planetPixelRadius, planetRadius, projID, scale, scaled_radius, SOUTH_POLE, type, width, XSCALE_THRESHOLD, XTHRESHOLD |
Constructor Summary | |
MercatorView(LatLonPoint center,
float scale,
int width,
int height)
Construct a MercatorView projection. |
Method Summary | |
protected void |
computeParameters()
Called when some fundamental parameters change. |
java.awt.Point |
forward(float lat,
float lon,
java.awt.Point p)
Forward projects a lat,lon coordinates. |
java.awt.Point |
forward(float lat,
float lon,
java.awt.Point p,
boolean isRadian)
Forward projects lat,lon into XY space and returns a Point. |
java.awt.Point |
forward(LatLonPoint pt,
java.awt.Point p)
Projects a point from Lat/Lon space to X/Y space. |
LatLonPoint |
inverse(int x,
int y,
LatLonPoint llp)
Inverse project x,y coordinates into a LatLonPoint. |
LatLonPoint |
inverse(java.awt.Point pt,
LatLonPoint llp)
Inverse project a Point. |
java.lang.String |
toString()
Return stringified description of this projection. |
Methods inherited from class com.bbn.openmap.proj.Mercator |
getName, isPlotable, normalize_latitude, rhumbProject, rhumbStep |
Methods inherited from class com.bbn.openmap.proj.Cylindrical |
_forwardPoly, drawBackground, drawBackground, dumpPoly, forwardRaw, getLowerRight, getUpperLeft, pan |
Methods inherited from class com.bbn.openmap.proj.Proj |
clone, doPolyDispatch, equals, forward, forward, forwardArc, forwardArc, forwardArc, forwardCircle, forwardCircle, forwardCircle, forwardGreatPoly, forwardLine, forwardLine, forwardPoly, forwardPoly, forwardRaster, forwardRect, forwardRect, forwardRect, forwardRhumbPoly, getCenter, getHeight, getMaxScale, getMinScale, getPlanetPixelCircumference, getPlanetPixelRadius, getPlanetRadius, getPPM, getProjectionID, getProjectionType, getScale, getScale, getWidth, hashCode, init, inverse, inverse, isComplicatedLineType, isPlotable, makeClone, pan, panE, panE, panN, panN, panNE, panNE, panNW, panNW, panS, panS, panSE, panSE, panSW, panSW, panW, panW, setCenter, setCenter, setHeight, setMaxScale, setMinScale, setParms, setPlanetRadius, setPPM, setProjectionID, setScale, setWidth, wrap_longitude |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final transient java.lang.String MercatorViewName
public static final transient int MercatorViewType
protected LatLonPoint uCtr
protected float uCtrLat
protected float uCtrLon
protected int sCtrX
protected int sCtrY
protected int uCtrX
protected int uCtrY
protected int dUSX
protected int dUSY
Constructor Detail |
public MercatorView(LatLonPoint center, float scale, int width, int height)
center
- LatLonPoint center of projectionscale
- float scale of projectionwidth
- width of screenheight
- height of screenMethod Detail |
public java.lang.String toString()
toString
in class Mercator
Projection.getProjectionID()
protected void computeParameters()
Each projection will decide how to respond to this change. For instance, they may need to recalculate "constant" paramters used in the forward() and inverse() calls.
computeParameters
in class Mercator
public java.awt.Point forward(LatLonPoint pt, java.awt.Point p)
forward
in interface Projection
forward
in class Mercator
pt
- LatLonPointp
- Point retval
public java.awt.Point forward(float lat, float lon, java.awt.Point p)
forward
in interface Projection
forward
in class Mercator
lat
- raw latitude in decimal degreeslon
- raw longitude in decimal degreesp
- Resulting XY Point
public java.awt.Point forward(float lat, float lon, java.awt.Point p, boolean isRadian)
forward
in interface Projection
forward
in class Mercator
lat
- float latitude in radianslon
- float longitude in radiansp
- Resulting XY PointisRadian
- bogus argument indicating that lat,lon
arguments are in radians
public LatLonPoint inverse(java.awt.Point pt, LatLonPoint llp)
inverse
in interface Projection
inverse
in class Mercator
pt
- x,y Pointllp
- resulting LatLonPoint
public LatLonPoint inverse(int x, int y, LatLonPoint llp)
inverse
in interface Projection
inverse
in class Mercator
x
- integer x coordinatey
- integer y coordinatellp
- LatLonPoint
Proj.inverse(Point)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |