|
|||||||||||
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.Azimuth | +--com.bbn.openmap.proj.Orthographic
Implements the Orthographic projection.
Nested Class Summary |
Nested classes inherited from class com.bbn.openmap.proj.Azimuth |
Azimuth.AzimuthVar |
Field Summary | |
protected float |
cosCtrLat
|
static float |
epsilon
|
protected int |
hy
|
protected static float |
NORTH_BOUNDARY
|
static java.lang.String |
OrthographicName
The Orthographic name. |
static int |
OrthographicType
The Orthographic type of projection. |
protected float |
sinCtrLat
|
protected static float |
SOUTH_BOUNDARY
|
protected int |
wx
|
Fields inherited from class com.bbn.openmap.proj.Azimuth |
clockwise, spaceColor, 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 | |
Orthographic(LatLonPoint center,
float scale,
int width,
int height)
Construct an Orthographic projection. |
|
Orthographic(LatLonPoint center,
float scale,
int width,
int height,
int type)
Construct an Orthographic projection. |
Method Summary | |
protected java.awt.Point |
_forward(float phi,
float lambda,
java.awt.Point p,
Azimuth.AzimuthVar azVar)
Forward project a point. |
protected void |
computeParameters()
Called when some fundamental parameters change. |
LatLonPoint |
getLowerRight()
Get the lower right (southeast) point of the projection. |
java.lang.String |
getName()
Get the name string of the projection. |
LatLonPoint |
getUpperLeft()
Get the upper left (northernmost and westernmost) point of the projection. |
static boolean |
hemisphere_clip(float phi1,
float lambda0,
float phi,
float lambda)
Check if a given lat/lon is within the visible hemisphere. |
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.Azimuth |
_forwardPoly, _panE, _panN, _panNE, _panNW, _panS, _panSE, _panSW, _panW, drawBackground, drawBackground, forward, forward, forward, forwardRaw, isClockwiseTraversal, overNorthPole, overPoint, overSouthPole, pan, setClockwiseTraversal |
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 |
Field Detail |
public static final transient java.lang.String OrthographicName
public static final transient int OrthographicType
protected int hy
protected int wx
protected float cosCtrLat
protected float sinCtrLat
public static final transient float epsilon
protected static final transient float NORTH_BOUNDARY
protected static final transient float SOUTH_BOUNDARY
Constructor Detail |
public Orthographic(LatLonPoint center, float scale, int width, int height)
center
- LatLonPoint center of projectionscale
- float scale of projectionwidth
- width of screenheight
- height of screenpublic Orthographic(LatLonPoint center, float scale, int width, int height, int type)
center
- LatLonPoint center of projectionscale
- float scale of projectionwidth
- width of screenheight
- height of screentype
- subclass's typeMethod Detail |
public java.lang.String toString()
toString
in class Azimuth
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 Azimuth
public float normalize_latitude(float lat)
normalize_latitude
in class Proj
lat
- float latitude in radians
LatLonPoint.normalize_latitude(float)
public static final boolean hemisphere_clip(float phi1, float lambda0, float phi, float lambda)
phi1
- latitudelambda0
- longitudephi
- latitudelambda
- longitude
public boolean isPlotable(float lat, float lon)
A point is plot-able if it is within the visible hemisphere.
lat
- float latitude in decimal degreeslon
- float longitude in decimal degrees
protected java.awt.Point _forward(float phi, float lambda, java.awt.Point p, Azimuth.AzimuthVar azVar)
_forward
in class Azimuth
phi
- float latitude in radianslambda
- float longitude in radiansp
- PointazVar
- AzimuthVar or null
public LatLonPoint inverse(int x, int y, LatLonPoint llp)
x
- integer x coordinatey
- integer y coordinatellp
- LatLonPoint
Proj.inverse(Point)
public LatLonPoint inverse(java.awt.Point pt, LatLonPoint llp)
pt
- x,y Pointllp
- resulting LatLonPoint
public LatLonPoint getUpperLeft()
Returns the upper left point (or closest equivalent) of the projection based on the center point and height and width of screen.
public LatLonPoint getLowerRight()
Returns the lower right point (or closest equivalent) of the projection based on the center point and height and width of screen.
This is trivial for most cylindrical projections, but much more complicated for azimuthal projections.
public java.lang.String getName()
getName
in interface Projection
getName
in class Azimuth
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |