|
||||||||||
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.Azimuth com.bbn.openmap.proj.Orthographic
public class Orthographic
Implements the Orthographic projection.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.bbn.openmap.proj.Azimuth |
---|
Azimuth.AzimuthVar |
Field Summary | |
---|---|
protected double |
cosCtrLat
|
static double |
epsilon
|
protected double |
hy
|
protected static double |
NORTH_BOUNDARY
|
static java.lang.String |
OrthographicName
The Orthographic name. |
protected double |
sinCtrLat
|
protected static double |
SOUTH_BOUNDARY
|
protected double |
wx
|
Fields inherited from class com.bbn.openmap.proj.Azimuth |
---|
clockwise, spaceColor, 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 | |
---|---|
Orthographic(LatLonPoint center,
float scale,
int width,
int height)
Construct an Orthographic projection. |
Method Summary | ||
---|---|---|
protected java.awt.geom.Point2D |
_forward(double phi,
double lambda,
java.awt.geom.Point2D 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(double phi1,
double lambda0,
double phi,
double lambda)
|
|
static boolean |
hemisphere_clip(float phi1,
float lambda0,
float phi,
float lambda)
Check if a given lat/lon is within the visible hemisphere. |
|
|
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. |
|
java.lang.String |
toString()
Return stringified description of this projection. |
Methods inherited from class com.bbn.openmap.proj.Azimuth |
---|
_forwardPoly, _forwardPoly, _panE, _panN, _panNE, _panNW, _panS, _panSE, _panSW, _panW, drawBackground, forward, forwardRaw, forwardRaw, getSpaceColor, init, isClockwiseTraversal, overNorthPole, overPoint, overSouthPole, pan, setClockwiseTraversal, setSpaceColor |
Methods inherited from class com.bbn.openmap.proj.Proj |
---|
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 |
Field Detail |
---|
public static final transient java.lang.String OrthographicName
protected double hy
protected double wx
protected double cosCtrLat
protected double sinCtrLat
public static final transient double epsilon
protected static final double NORTH_BOUNDARY
protected static final double 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 screenMethod 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" parameters used in the forward() and inverse() calls.
computeParameters
in class Azimuth
public double normalizeLatitude(double lat)
normalizeLatitude
in class GeoProj
lat
- float latitude in radians
public static final boolean hemisphere_clip(float phi1, float lambda0, float phi, float lambda)
phi1
- latitudelambda0
- longitudephi
- latitudelambda
- longitude
public static final boolean hemisphere_clip(double phi1, double lambda0, double phi, double lambda)
public boolean isPlotable(double lat, double lon)
A point is plot-able if it is within the visible hemisphere.
isPlotable
in interface Projection
isPlotable
in class Proj
lat
- float latitude in decimal degreeslon
- float longitude in decimal degrees
protected java.awt.geom.Point2D _forward(double phi, double lambda, java.awt.geom.Point2D p, Azimuth.AzimuthVar azVar)
_forward
in class Azimuth
phi
- double latitude in radianslambda
- double longitude in radiansp
- Point2DazVar
- AzimuthVar or null
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 LatLonPoint getUpperLeft()
Returns the upper left point (or closest equivalent) of the projection based on the center point and height and width of screen.
getUpperLeft
in interface Projection
getUpperLeft
in class Proj
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.
getLowerRight
in interface Projection
getLowerRight
in class Proj
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 |