|
||||||||||
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.GeoProj com.bbn.openmap.proj.Cylindrical com.bbn.openmap.proj.LLXY
public class LLXY
Implements the LLXY projection, which is basically something where the lat/lon and pixel ratios are the same.
Field Summary | |
---|---|
protected double |
cLat
|
protected double |
cLon
|
protected double |
cLonRad
|
static double |
epsilon
|
protected double |
hy
|
static java.lang.String |
LLXYName
The LLXY name. |
protected double |
ppd
Pixel per degree |
protected double |
wx
|
Fields inherited from class com.bbn.openmap.proj.Cylindrical |
---|
half_world, world |
Fields inherited from class com.bbn.openmap.proj.GeoProj |
---|
DATELINE, mercator, NORTH_POLE, NUM_DEFAULT_CIRCLE_VERTS, NUM_DEFAULT_GREAT_SEGS, pixelsPerMeter, planetPixelCircumference, planetPixelRadius, planetRadius, scaled_radius, SOUTH_POLE, XSCALE_THRESHOLD, XTHRESHOLD |
Fields inherited from class com.bbn.openmap.proj.Proj |
---|
centerX, centerY, height, maxscale, MIN_HEIGHT, MIN_WIDTH, minscale, projID, rotationAngle, scale, ucuom, width |
Constructor Summary | |
---|---|
LLXY(LatLonPoint center,
float scale,
int width,
int height)
Construct a LLXY projection. |
Method Summary | ||
---|---|---|
protected void |
computeParameters()
Called when some fundamental parameters change. |
|
static LLXY |
convertProjection(Projection proj)
|
|
java.awt.geom.Point2D |
forward(double lat,
double lon,
java.awt.geom.Point2D p,
boolean isRadian)
Forward projects lat,lon into XY space and returns a Point2D. |
|
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. |
|
|
inverse(double x,
double y,
T llp)
Inverse project x,y coordinates into a LatLonPoint. |
|
boolean |
isPlotable(double lat,
double lon)
Checks if a LatLonPoint is plot-able. |
|
double |
normalizeLatitude(double lat)
Sets radian latitude to something sane. |
|
double |
normalizeLatitudeDeg(double lat)
|
|
java.lang.String |
toString()
Return stringified description of this projection. |
Methods inherited from class com.bbn.openmap.proj.Cylindrical |
---|
_forwardPoly, _forwardPoly, dumpPoly, dumpPoly, forwardRaw, forwardRaw, getLowerRight, getUpperLeft, init |
Methods inherited from class com.bbn.openmap.proj.Proj |
---|
drawBackground, drawBackground, equals, forward, forward, forward, forwardLine, forwardPoly, forwardPoly, forwardRect, forwardShape, getHeight, getMaxScale, getMinScale, getProjectionID, getRotationAngle, getScale, getWidth, hashCode, inverse, inverseShape, makeClone, panE, panE, panN, panN, panNE, panNE, panNW, panNW, panS, panS, panSE, panSE, panSW, panSW, panW, panW, setCenter, setHeight, setMaxScale, setMinScale, setParms, setProjectionID, setRotationAngle, setScale, setWidth |
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, forward, forward, forward, forward, forwardLine, forwardPoly, forwardPoly, forwardRaw, forwardRaw, forwardRect, forwardShape, getCenter, getCenter, getHeight, getLowerRight, getMaxScale, getMinScale, getProjectionID, getRotationAngle, getScale, getScale, getUcuom, getUpperLeft, getWidth, inverse, inverse, inverse, inverseShape, isPlotable, makeClone, pan, pan |
Field Detail |
---|
public static final transient java.lang.String LLXYName
public static final transient double epsilon
protected double hy
protected double wx
protected double cLon
protected double cLonRad
protected double cLat
protected double 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 screenMethod Detail |
---|
public java.lang.String toString()
toString
in class Cylindrical
Projection.getProjectionID()
protected void computeParameters()
computeParameters
in class Cylindrical
public double normalizeLatitude(double lat)
normalizeLatitude
in class GeoProj
lat
- float latitude in radians
public double normalizeLatitudeDeg(double lat)
public boolean isPlotable(double lat, double lon)
isPlotable
in interface Projection
isPlotable
in class Proj
lat
- float latitude in decimal degreeslon
- float longitude in decimal degrees
public java.awt.geom.Point2D forward(double lat, double lon, java.awt.geom.Point2D p, boolean isRadian)
forward
in class GeoProj
lat
- float latitude in radianslon
- float longitude in radiansp
- Resulting XY Point2DisRadian
- bogus argument indicating that lat,lon arguments are in
radians
public <T extends java.awt.geom.Point2D> T inverse(double x, double y, T llp)
inverse
in interface Projection
inverse
in class Proj
x
- integer x coordinatey
- integer y coordinatellp
- LatLonPoint
Proj.inverse(Point2D)
public java.lang.String getName()
getName
in interface Projection
getName
in class Cylindrical
public double getXPixConstant()
getXPixConstant
in interface EqualArc
public double getYPixConstant()
getYPixConstant
in interface EqualArc
public static LLXY convertProjection(Projection proj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |