|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.bbn.openmap.proj.Proj
|
+--com.bbn.openmap.proj.Cylindrical
|
+--com.bbn.openmap.proj.LLXY
Implements the LLXY projection, which is basically something where the lat/lon and pixel ratios are the same.
| Field Summary | |
protected float |
cLat
|
protected float |
cLon
|
protected int |
hy
|
static java.lang.String |
LLXYName
The LLXY name. |
static int |
LLXYType
The LLXY type of projection. |
protected float |
ppd
Pixel per degree |
protected int |
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 | |
LLXY(LatLonPoint center,
float scale,
int width,
int height)
Construct a LLXY projection. |
|
LLXY(LatLonPoint center,
float scale,
int width,
int height,
int type)
|
|
| 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. |
java.lang.String |
getName()
Get the name string of the projection. |
double |
getXPixConstant()
Returns the x pixel constant of the projection. |
double |
getYPixConstant()
Returns the y pixel constant of the projection. |
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. |
boolean |
isPlotable(float lat,
float lon)
Checks if a LatLonPoint is plot-able. |
float |
normalize_latitude(float lat)
Sets radian latitude to something sane. |
java.lang.String |
toString()
Return stringified description of this projection. |
| Methods inherited from class com.bbn.openmap.proj.Cylindrical |
_forwardPoly, drawBackground, drawBackground, 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, 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 |
| Methods inherited from interface com.bbn.openmap.proj.Projection |
forward, forward, forwardArc, forwardCircle, forwardLine, forwardPoly, forwardRaster, forwardRaw, forwardRect, getCenter, getHeight, getLowerRight, getMaxScale, getMinScale, getProjectionID, getProjectionType, getScale, getScale, getUpperLeft, getWidth, inverse, inverse, isPlotable, makeClone, pan, pan |
| Field Detail |
public static final transient java.lang.String LLXYName
public static final transient int LLXYType
protected int hy
protected int wx
protected float cLon
protected float cLat
protected float ppd
| Constructor Detail |
public LLXY(LatLonPoint center,
float scale,
int width,
int height)
center - LatLonPoint center of projectionscale - float scale of projectionwidth - width of screenheight - height of screen
public LLXY(LatLonPoint center,
float scale,
int width,
int height,
int type)
| Method Detail |
public java.lang.String toString()
toString in class CylindricalProjection.getProjectionID()protected void computeParameters()
computeParameters in class Cylindricalpublic float normalize_latitude(float lat)
normalize_latitude in class Projlat - float latitude in radians
LatLonPoint.normalize_latitude(float)
public boolean isPlotable(float lat,
float lon)
isPlotable in interface Projectionlat - float latitude in decimal degreeslon - float longitude in decimal degrees
public java.awt.Point forward(LatLonPoint pt,
java.awt.Point p)
forward in interface Projectionpt - LatLonPointp - Point retval
public java.awt.Point forward(float lat,
float lon,
java.awt.Point p)
forward in interface Projectionlat - 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 Projectionlat - float latitude in radianslon - float longitude in radiansp - Resulting XY PointisRadian - bogus argument indicating that lat,lon
arguments are in radians
Projection.forward(float,float,Point)
public LatLonPoint inverse(java.awt.Point pt,
LatLonPoint llp)
inverse in interface Projectionpt - x,y Pointllp - resulting LatLonPoint
public LatLonPoint inverse(int x,
int y,
LatLonPoint llp)
inverse in interface Projectionx - integer x coordinatey - integer y coordinatellp - LatLonPoint
Proj.inverse(Point)public java.lang.String getName()
getName in interface ProjectiongetName in class Cylindricalpublic double getXPixConstant()
getXPixConstant in interface EqualArcpublic double getYPixConstant()
getYPixConstant in interface EqualArc
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||