|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.geoloc.ProjectionImpl
ucar.unidata.geoloc.projection.ProjectionAdapter
public class ProjectionAdapter
Adapts a Projection interface into a subclass of ProjectionImpl, so we can assume a Projection is a ProjectionImpl without loss of generality.
Projection,
ProjectionImpl,
Serialized Form| Field Summary |
|---|
| Fields inherited from class ucar.unidata.geoloc.ProjectionImpl |
|---|
ATTR_NAME, atts, defaultMapArea, EARTH_RADIUS, INDEX_LAT, INDEX_LON, INDEX_X, INDEX_Y, isLatLon, name, PI, PI_OVER_2, PI_OVER_4, TOLERANCE |
| Constructor Summary | |
|---|---|
ProjectionAdapter(Projection proj)
Create a new ProjectionImpl from a Projection |
|
| Method Summary | |
|---|---|
ProjectionImpl |
constructCopy()
copy constructor - avoid clone !! |
boolean |
crossSeam(ProjectionPoint pt1,
ProjectionPoint pt2)
Does the line between these two points cross the projection "seam". |
boolean |
equals(java.lang.Object p)
Check for equality with the object in question |
static ProjectionImpl |
factory(Projection proj)
Create a ProjectionImpl from the projection |
java.lang.String |
getClassName()
Get the class name |
ProjectionRect |
getDefaultMapArea()
Get a reasonable bounding box for this projection. |
ProjectionPoint |
latLonToProj(LatLonPoint latlon,
ProjectionPointImpl result)
Convert a LatLonPoint to projection coordinates |
java.lang.String |
paramsToString()
Get the parameters as a String |
LatLonPoint |
projToLatLon(ProjectionPoint world,
LatLonPointImpl result)
Convert projection coordinates to a LatLonPoint Note: a new object is not created on each call for the return value. |
| Methods inherited from class ucar.unidata.geoloc.ProjectionImpl |
|---|
addParameter, addParameter, addParameter, clone, getDefaultMapAreaLL, getHeader, getLatLonBoundingBox, getName, getProjectionParameters, getProjectionTypeLabel, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, setDefaultMapArea, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectionAdapter(Projection proj)
proj - projection to use| Method Detail |
|---|
public static ProjectionImpl factory(Projection proj)
proj - projection
public ProjectionImpl constructCopy()
constructCopy in class ProjectionImplpublic java.lang.String getClassName()
getClassName in interface ProjectiongetClassName in class ProjectionImplpublic java.lang.String paramsToString()
paramsToString in interface ProjectionparamsToString in class ProjectionImplpublic boolean equals(java.lang.Object p)
equals in interface Projectionequals in class ProjectionImplp - object in question
public ProjectionPoint latLonToProj(LatLonPoint latlon,
ProjectionPointImpl result)
latLonToProj in interface ProjectionlatLonToProj in class ProjectionImpllatlon - convert from these lat, lon coordinatesresult - the object to write to
public LatLonPoint projToLatLon(ProjectionPoint world,
LatLonPointImpl result)
projToLatLon in interface ProjectionprojToLatLon in class ProjectionImplworld - convert from these projection coordinatesresult - the object to write to
public boolean crossSeam(ProjectionPoint pt1,
ProjectionPoint pt2)
crossSeam in interface ProjectioncrossSeam in class ProjectionImplpt1 - the line goes between these two pointspt2 - the line goes between these two points
public ProjectionRect getDefaultMapArea()
getDefaultMapArea in interface ProjectiongetDefaultMapArea in class ProjectionImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||