ilog.views.maps.projection
Class IlvOrthographicProjection

java.lang.Object
  extended by ilog.views.maps.projection.IlvProjection
      extended by ilog.views.maps.projection.IlvOrthographicProjection
All Implemented Interfaces:
IlvPersistentObject, Serializable

public class IlvOrthographicProjection
extends IlvProjection

This class defines the Orthographic projection. This projection is used to represent the globe as a perspective projection from infinite distance.

This projection applies to spherical ellipsoids only, and implements an inverse function.

This projection is neither equal area nor conformal.

Since:
JViews 3.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ilog.views.maps.projection.IlvProjection
CONFORMAL, EQUAL_AREA, NONE
 
Constructor Summary
IlvOrthographicProjection()
          Initializes a new instance of the class IlvOrthographicProjection.
IlvOrthographicProjection(IlvInputStream stream)
          Reads a new IlvOrthographicProjection from the specified stream.
IlvOrthographicProjection(IlvOrthographicProjection source)
          Creates a new IlvGnomonicProjection by copying an existing one.
 
Method Summary
 IlvProjection copy()
          Copies the projection.
 void setLLCenter(double lon, double lat)
          Specifies the central meridian and the central parallel associated with the projection.
protected  void sForward(IlvCoordinate ll)
          Implements the projection for a sphere.
protected  void sInverse(IlvCoordinate xy)
          Implements the inverse projection for a sphere.
 String toString()
          Converts the projection to a string with Evenden's format.
 void write(IlvOutputStream stream)
          Writes this projection to the specified stream.
 
Methods inherited from class ilog.views.maps.projection.IlvProjection
addDescription, adjustLongitude, eForward, eInverse, equals, forward, forward, getCentralMeridian, getCentralParallel, getDatum, getEllipsoid, getFalseEasting, getFalseNorthing, GetProjection, getProperty, getUnit, getXYOffset, inverse, inverse, inverse, isEllipsoidEnabled, isGeocentric, isInverseEnabled, isUsingLongitudeReduction, setCentralMeridian, setCentralParallel, setDatum, setEllipsoid, setFalseEasting, setFalseNorthing, setGeocentric, setUnit, setUsingLongitudeReduction, setXYOffset
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvOrthographicProjection

public IlvOrthographicProjection()
Initializes a new instance of the class IlvOrthographicProjection.


IlvOrthographicProjection

public IlvOrthographicProjection(IlvOrthographicProjection source)
Creates a new IlvGnomonicProjection by copying an existing one.

Parameters:
source - The projection that is copied.

IlvOrthographicProjection

public IlvOrthographicProjection(IlvInputStream stream)
                          throws IlvReadFileException
Reads a new IlvOrthographicProjection from the specified stream.

Throws:
IlvReadFileException
Since:
JViews 5.0
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes this projection to the specified stream.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvProjection
Parameters:
stream - The output stream.
Throws:
IOException - thrown when an exception occurs during the write operation for this object.
Since:
JViews 5.0

copy

public IlvProjection copy()
Copies the projection.

Specified by:
copy in class IlvProjection
Returns:
A copy of the projection.

setLLCenter

public void setLLCenter(double lon,
                        double lat)
Specifies the central meridian and the central parallel associated with the projection. By default, the central parallel and the central meridian are set to 0.

Overrides:
setLLCenter in class IlvProjection
Parameters:
lon - The central meridian in radians.
lat - The central parallel in radians.
See Also:
IlvProjectionUtil.DegreeToRadian(double), IlvProjectionUtil.DMSToRadian(java.lang.String)

sForward

protected void sForward(IlvCoordinate ll)
                 throws IlvToleranceConditionException
Implements the projection for a sphere.

Specified by:
sForward in class IlvProjection
Parameters:
ll - The longitude/latitude coordinates in radians (x = longitude, y = latitude).
Throws:
IlvToleranceConditionException - If the values are not within the tolerated limits.

sInverse

protected void sInverse(IlvCoordinate xy)
                 throws IlvToleranceConditionException
Implements the inverse projection for a sphere.

Overrides:
sInverse in class IlvProjection
Parameters:
xy - The Cartesian coordinates.
Throws:
IlvToleranceConditionException - If the values not are within the tolerated limits.
See Also:
IlvProjection.inverse(ilog.views.IlvPoint), IlvProjection.isInverseEnabled()

toString

public String toString()
Converts the projection to a string with Evenden's format.

Overrides:
toString in class Object
Since:
JViews 7.5


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.