com.ctreber.acearth.projection
Class ProjectionOrtho

java.lang.Object
  extended by com.ctreber.acearth.projection.Projection
      extended by com.ctreber.acearth.projection.ProjectionOrtho

public class ProjectionOrtho
extends Projection

Orthographic projection (show Earth as a ball).

© 2002 Christian Treber, [email protected]

Author:
Christian Treber, [email protected]

Constructor Summary
ProjectionOrtho()
           
 
Method Summary
 Coordinate getLocation(int pX, int pY)
          Translate screen point into coordinate on Earth.
 double inverseProjectX(double pX)
           
 double inverseProjectY(double pY)
           
 boolean isVisible(Point3D pPoint)
          All of Earth is visible.
 double projectX(double pX, double pZ)
          Project 3D point on x axis.
 double projectY(double pY)
          Project 3D point on y axis.
protected  void setScale()
          The scale is not from -PI to PI but from -1 to 1 in this case (the range of x, y, z of the points).
 
Methods inherited from class com.ctreber.acearth.projection.Projection
finalize, finalizeX, finalizeY, getScale, getViewPos, initTransformTable, inverseFinalizeX, inverseFinalizeY, isWithinImage, project2D, rotate, rotateReverse, setImageHeight, setImageWidth, setShiftX, setShiftY, setViewMagnification, setViewPos, setViewRotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectionOrtho

public ProjectionOrtho()
Method Detail

isVisible

public boolean isVisible(Point3D pPoint)

All of Earth is visible.

Specified by:
isVisible in class Projection
Parameters:
pPoint -
Returns:

getLocation

public Coordinate getLocation(int pX,
                              int pY)
Description copied from class: Projection

Translate screen point into coordinate on Earth.

Specified by:
getLocation in class Projection
Returns:

projectX

public double projectX(double pX,
                       double pZ)
Description copied from class: Projection

Project 3D point on x axis.

Specified by:
projectX in class Projection
Returns:
Longitude, not in rad but from -1 to 1.

inverseProjectX

public double inverseProjectX(double pX)
Specified by:
inverseProjectX in class Projection

projectY

public double projectY(double pY)
Description copied from class: Projection

Project 3D point on y axis.

Specified by:
projectY in class Projection
Returns:
Latitude, not in rad but from -1 to 1.

inverseProjectY

public double inverseProjectY(double pY)
Specified by:
inverseProjectY in class Projection

setScale

protected void setScale()

The scale is not from -PI to PI but from -1 to 1 in this case (the range of x, y, z of the points).

Specified by:
setScale in class Projection


Copyright © 2014. All Rights Reserved.