|
|||||||||||
| 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
|
+--com.bbn.openmap.proj.OrthographicView
Implements the OrthographicView projection.
| Nested Class Summary |
| Nested classes inherited from class com.bbn.openmap.proj.Azimuth |
Azimuth.AzimuthVar |
| Field Summary | |
protected int |
dUSX
|
protected int |
dUSY
|
static java.lang.String |
OrthographicViewName
The OrthographicView name. |
static int |
OrthographicViewType
The OrthographicView type of projection. |
protected int |
sCtrX
|
protected int |
sCtrY
|
protected LatLonPoint |
uCtr
|
protected float |
uCtrLat
|
protected float |
uCtrLon
|
protected int |
uCtrX
|
protected int |
uCtrY
|
| Fields inherited from class com.bbn.openmap.proj.Orthographic |
cosCtrLat, epsilon, hy, NORTH_BOUNDARY, OrthographicName, OrthographicType, sinCtrLat, SOUTH_BOUNDARY, 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 | |
OrthographicView(LatLonPoint center,
float scale,
int width,
int height)
Construct an OrthographicView 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. |
void |
drawBackground(java.awt.Graphics g)
Assume that the Graphics has been set with the Paint/Color needed, just render the shape of the background. |
void |
drawBackground(java.awt.Graphics2D g,
java.awt.Paint paint)
Draw the background for the projection. |
LatLonPoint |
getLowerRight()
Get the lower right (southeast) point of the projection. |
LatLonPoint |
getUpperLeft()
Get the upper left (northernmost and westernmost) point 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. |
void |
setCenter(float lat,
float lon)
Set center point of projection. |
void |
setCenter(LatLonPoint pt)
Set center point of projection. |
java.lang.String |
toString()
Return stringified description of this projection. |
| Methods inherited from class com.bbn.openmap.proj.Orthographic |
getName, hemisphere_clip, isPlotable, normalize_latitude |
| Methods inherited from class com.bbn.openmap.proj.Azimuth |
_forwardPoly, _panE, _panN, _panNE, _panNW, _panS, _panSE, _panSW, _panW, 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, 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 OrthographicViewName
public static final transient int OrthographicViewType
protected LatLonPoint uCtr
protected float uCtrLat
protected float uCtrLon
protected int sCtrX
protected int sCtrY
protected int uCtrX
protected int uCtrY
protected int dUSX
protected int dUSY
| Constructor Detail |
public OrthographicView(LatLonPoint center,
float scale,
int width,
int height)
center - LatLonPoint center of projectionscale - float scale of projectionwidth - width of screenheight - height of screen| Method Detail |
public java.lang.String toString()
toString in class OrthographicProjection.getProjectionID()
public void setCenter(float lat,
float lon)
setCenter in class Projlat - float latitude in decimal degreeslon - float longitude in decimal degreespublic void setCenter(LatLonPoint pt)
setCenter in class Projpt - LatLonPointprotected 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 Orthographic
protected java.awt.Point _forward(float phi,
float lambda,
java.awt.Point p,
Azimuth.AzimuthVar azVar)
_forward in class Orthographicphi - float latitude in radianslambda - float longitude in radiansp - PointazVar - AzimuthVar or null
public LatLonPoint inverse(int x,
int y,
LatLonPoint llp)
inverse in interface Projectioninverse in class Orthographicx - integer x coordinatey - integer y coordinatellp - LatLonPoint
Proj.inverse(Point)
public LatLonPoint inverse(java.awt.Point pt,
LatLonPoint llp)
inverse in interface Projectioninverse in class Orthographicpt - x,y Pointllp - resulting LatLonPoint
public void drawBackground(java.awt.Graphics2D g,
java.awt.Paint paint)
drawBackground in class Azimuthg - Graphics2Dpaint - java.awt.Paint to use for the backgroundpublic void drawBackground(java.awt.Graphics g)
drawBackground in class Azimuthpublic LatLonPoint getUpperLeft()
OrthographicReturns the upper left point (or closest equivalent) of the projection based on the center point and height and width of screen.
getUpperLeft in interface ProjectiongetUpperLeft in class Orthographicpublic LatLonPoint getLowerRight()
OrthographicReturns 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 ProjectiongetLowerRight in class Orthographic
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||