|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectview.TwoDimensionPixel
view.AzimuthalProjection
public abstract class AzimuthalProjection
Abstract base class for sphere to planar projections. This class is only
used for azimuthal projection, i.e. projections with a defined center of
projection. The simpliest application is the orthonormal projection.
The coordinate system used on the sphere is the longitude/latitude system,
commonly used in astronomy and geography.
The method invert returns the longitude in zero index, latitude
follows. getPoint and getError also expects longitude
as the first argument.
| Field Summary | |
|---|---|
private boolean |
CenValid
Center of projection set. |
protected double |
CosLat
|
protected double |
CosLong
Trignomotric functions of the projection center. |
protected boolean |
Distort
Distortion allowed. |
protected double |
LatC
Center of projection. |
protected double |
LongC
Center of projection. |
protected static String |
Name
Name of projection. |
protected double |
SinLat
|
protected double |
SinLong
Trignomotric functions of the projection center. |
private boolean |
TriValid
Trignomotric functions of the projection center set. |
protected double |
XConvert
Conversion factor to pixels in x. |
protected double |
YConvert
Conversion factor to pixels in y. |
| Constructor Summary | |
|---|---|
AzimuthalProjection(double longc,
double latc)
Constructs a new AzimuthalProjection with given projectional center. |
|
AzimuthalProjection(double longsin,
double longcos,
double latsin,
double latcos)
Constructs a new AzimuthalProjection with given sines and cosines of the center of projection. |
|
| Method Summary | |
|---|---|
protected void |
calcCen()
Calculates the values of the central longitude and latitude. |
abstract double |
calcLambda(double x,
double y)
Calculates the spherical longitude from planar coordinates. |
abstract double |
calcPhi(double x,
double y)
Calculates the spherical latitude from planar coordinates. |
protected void |
calcTri()
Calculates the values of the sines and cosines of the central longitude and latitude. |
abstract double |
calcX(double lambda,
double phi)
Calculates the planar x coordinate from the spherical coordinates. |
abstract double |
calcY(double lambda,
double phi)
Calculates the planar y coordinate from the spherical coordinates. |
boolean |
equals(Object that)
Tests, if two AzimuthalProjections are equal. |
double |
getCentralLatitude()
Returns the latitude of the center of projection. |
double |
getCentralLongitude()
Returns the longitude of the center of projection. |
double |
getXMax()
Returns the maximal x coordinate served by this AzimuthalProjection. |
double |
getYMax()
Returns the maximal y coordinate served by this AzimuthalProjection. |
boolean |
setConversion(double xconv,
double yconv)
Sets the conversion factors. |
void |
setDistortion(boolean distort)
Enables or disables distortion. |
String |
toString()
Converts this AzimuthalProjection into a String. |
| Methods inherited from class view.TwoDimensionPixel |
|---|
getError, getPoint, invert |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface view.ScreenPixel |
|---|
getError, getPoint, update |
| Field Detail |
|---|
protected double LongC
protected double LatC
private boolean CenValid
protected double SinLong
protected double CosLong
protected double SinLat
protected double CosLat
private boolean TriValid
protected double XConvert
protected double YConvert
protected boolean Distort
protected static String Name
| Constructor Detail |
|---|
public AzimuthalProjection(double longc,
double latc)
longc - Longitude of projection center, in radians.latc - Latitude of projection center, in radians.
public AzimuthalProjection(double longsin,
double longcos,
double latsin,
double latcos)
longsin - Sine of the longitude of the projection center.longcos - Cosine of the longitude of the projection center.latsin - Sine of the latitude of the projection center.latcos - Cosine of the latitude of the projection center.| Method Detail |
|---|
protected void calcTri()
public double getCentralLongitude()
public double getCentralLatitude()
protected void calcCen()
public boolean setConversion(double xconv,
double yconv)
xconv - The absolute maximum of all valid x-coordinatesyconv - The absolute maximum of all valid y-coordinatespublic double getXMax()
public double getYMax()
public void setDistortion(boolean distort)
distort - True, if distortion is allowed.
public abstract double calcX(double lambda,
double phi)
lambda - The longitude in radians.phi - The latitude in radians.
public abstract double calcY(double lambda,
double phi)
lambda - The longitude in radians.phi - The latitude in radians.
public abstract double calcLambda(double x,
double y)
x - The planar x coordinatey - The planar y coordinate
public abstract double calcPhi(double x,
double y)
x - The planar x coordinatey - The planar y coordinatepublic boolean equals(Object that)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||