public class Orthographic extends Projection
Constructor and Description |
---|
Orthographic()
Constructor for default orthographic projection
|
Orthographic(GeoCoord center)
Constructor for an orthographic projection centered on the specified
center point
|
Modifier and Type | Method and Description |
---|---|
GeoCoord |
getCoord(java.awt.Point point)
Get the geographic coordinate which projects to the given screen
coordinate.
|
java.awt.Shape |
getWorldShape()
Get the world shape for this projection.
|
java.awt.Point |
project(GeoCoord coord)
Project a geographic coordinate into screen coordinates
|
java.awt.Point[] |
project(GeoCoord[] coords)
Project a series of geographic coordinate into screen coordinates
|
protected void |
rescale()
Rescales the projection.
|
getGeoBounds, getGeoid, getProjCenter, getViewBounds, setGeoBounds, setGeoid, setProjCenter, setViewBounds, toString
public Orthographic()
public Orthographic(GeoCoord center)
center
- Projection center point.public GeoCoord getCoord(java.awt.Point point) throws ProjectionException
getCoord
in class Projection
point
- a point in screen coordinatesProjectionException
- if the reverse projection cannot be
performedpublic java.awt.Shape getWorldShape()
getWorldShape
in class Projection
public java.awt.Point project(GeoCoord coord) throws ProjectionException
project
in class Projection
coord
- the geographic coordinateProjectionException
- if the projection cannot be performedpublic java.awt.Point[] project(GeoCoord[] coords)
project
in class Projection
coords
- the geographic coordinatesprotected void rescale()
rescale
in class Projection