public class Orthographic extends Azimuth
Azimuth.AzimuthVar
Modifier and Type | Field and Description |
---|---|
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 |
clockwise, spaceColor, world
DATELINE, mercator, NORTH_POLE, NUM_DEFAULT_CIRCLE_VERTS, NUM_DEFAULT_GREAT_SEGS, pixelsPerMeter, planetPixelCircumference, planetPixelRadius, planetRadius, scaled_radius, SOUTH_POLE, XSCALE_THRESHOLD, XTHRESHOLD
Constructor and Description |
---|
Orthographic(LatLonPoint center,
float scale,
int width,
int height)
Construct an Orthographic projection.
|
Modifier and Type | Method and Description |
---|---|
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.
|
<T extends java.awt.geom.Point2D> |
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.
|
_forwardPoly, _forwardPoly, _panE, _panN, _panNE, _panNW, _panS, _panSE, _panSW, _panW, drawBackground, forward, forwardRaw, forwardRaw, getSpaceColor, init, isClockwiseTraversal, overNorthPole, overPoint, overSouthPole, pan, setClockwiseTraversal, setSpaceColor
assertLatLonPoint, clone, doPolyDispatch, doPolyDispatch, forward, forward, forward, forward, forwardArc, forwardArc, forwardArc, forwardCircle, forwardCircle, forwardCircle, forwardGreatPoly, forwardGreatPoly, forwardLine, forwardLine, forwardLLPoly, forwardPoly, forwardPoly, forwardRect, forwardRect, forwardRect, forwardRhumbPoly, forwardRhumbPoly, getCenter, getCenter, getGCTForProjection, getPlanetPixelCircumference, getPlanetPixelRadius, getPlanetRadius, getPPM, getReferenceLon, getScale, getUcuom, inverse, inverse, isComplicatedLineType, isPlotable, normalize_latitude, normalizeLatitude, pan, setCenter, setCenter, setCenter, setPlanetRadius, setPPM, setUcuom, wrap_longitude, wrapLongitude, wrapLongitude, wrapLongitudeDeg
drawBackground, equals, forward, forward, forward, forwardLine, forwardPoly, forwardPoly, forwardRect, forwardShape, getHeight, getMaxScale, getMinScale, getProjectionID, getScale, getWidth, hashCode, inverse, isPlotable, makeClone, panE, panE, panN, panN, panNE, panNE, panNW, panNW, panS, panS, panSE, panSE, panSW, panSW, panW, panW, setCenter, setHeight, setMaxScale, setMinScale, setParms, setProjectionID, setScale, setWidth
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
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 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 radianspublic static final boolean hemisphere_clip(float phi1, float lambda0, float phi, float lambda)
phi1
- latitudelambda0
- longitudephi
- latitudelambda
- longitudepublic 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.
lat
- float latitude in decimal degreeslon
- float longitude in decimal degreesprotected java.awt.geom.Point2D _forward(double phi, double lambda, java.awt.geom.Point2D p, Azimuth.AzimuthVar azVar)
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
- LatLonPointProj.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
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details