gistoolkit.projection.ellipsoid.transform
Class EllipsoidTransform

java.lang.Object
  extended bygistoolkit.projection.ellipsoid.transform.EllipsoidTransform
Direct Known Subclasses:
GeocentricTranslation, LatitudeTranslation, LongitudeRotation, NoTransform, PositionVectorTransform

public abstract class EllipsoidTransform
extends java.lang.Object

Super class for all EllipsoidConversion routines.


Constructor Summary
EllipsoidTransform()
          Creates new EllipsoidConversion
EllipsoidTransform(Ellipsoid inFromEllipsoid, Ellipsoid inToEllipsoid)
          Create new Ellipsoid from the given ellipsoids
 
Method Summary
protected abstract  void doForward(Point inPoint)
          Convert the coordinates of the given point from reference to the From ellipsoid to reference to the To ellipsoid.
protected abstract  void doReverse(Point inPoint)
          Convert the coordinates of the given point from reference to the To ellipsoid to reference to the From ellipsoid.
 void forward(Point inPoint)
          Convert the coordinates of the given point from reference to the From ellipsoid to reference to the To ellipsoid.
 TransformEditPanel getEditPanel()
          Get the edit panel for this transform, if there is not one, then just return null (the default)
 Ellipsoid getFromEllipsoid()
          Retrieve the Ellipsoid to convert from
 boolean getIsReversed()
          Get the Reversed flag
 java.lang.String getName()
          Get the name of the transform
 Ellipsoid getToEllipsoid()
          Retrieve the Ellipsoid to convert to
 void reverse(Point inPoint)
          Convert the coordinates of the given point from reference to the To ellipsoid to reference to the From ellipsoid.
 void setFromEllipsoid(Ellipsoid inEllipsoid)
          Set the Ellipsoid to convert from
 void setIsReversed(boolean inIsReversed)
          Set the Reversed flag
protected  void setName(java.lang.String inName)
          Set the name of the transform
abstract  void setParameter(java.lang.String inName, java.lang.String inValue)
          Set the given parameter to the given value
 void setToEllipsoid(Ellipsoid inEllipsoid)
          Set the Ellipsoid to convert to
static void toCartesian(Ellipsoid inEllipsoid, Point inPoint, CartesianPoint inCartesianPoint)
          Convert the given point from polar coordinates on the given from ellipsoid to cartesizn coordinates.
static void toPolar(Ellipsoid inEllipsoid, CartesianPoint inCartesianPoint, Point inPoint)
          Convert the given point from it's Cartesian representation to a point on the given TO ellipsoid
 java.lang.String toString()
          To appear in a combo box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EllipsoidTransform

public EllipsoidTransform()
Creates new EllipsoidConversion


EllipsoidTransform

public EllipsoidTransform(Ellipsoid inFromEllipsoid,
                          Ellipsoid inToEllipsoid)
Create new Ellipsoid from the given ellipsoids

Method Detail

setName

protected void setName(java.lang.String inName)
Set the name of the transform


getName

public java.lang.String getName()
Get the name of the transform


toString

public java.lang.String toString()
To appear in a combo box.


setFromEllipsoid

public void setFromEllipsoid(Ellipsoid inEllipsoid)
Set the Ellipsoid to convert from


getFromEllipsoid

public Ellipsoid getFromEllipsoid()
Retrieve the Ellipsoid to convert from


setToEllipsoid

public void setToEllipsoid(Ellipsoid inEllipsoid)
Set the Ellipsoid to convert to


getToEllipsoid

public Ellipsoid getToEllipsoid()
Retrieve the Ellipsoid to convert to


forward

public final void forward(Point inPoint)
Convert the coordinates of the given point from reference to the From ellipsoid to reference to the To ellipsoid.


reverse

public final void reverse(Point inPoint)
Convert the coordinates of the given point from reference to the To ellipsoid to reference to the From ellipsoid.


doForward

protected abstract void doForward(Point inPoint)
Convert the coordinates of the given point from reference to the From ellipsoid to reference to the To ellipsoid.


doReverse

protected abstract void doReverse(Point inPoint)
Convert the coordinates of the given point from reference to the To ellipsoid to reference to the From ellipsoid.


setParameter

public abstract void setParameter(java.lang.String inName,
                                  java.lang.String inValue)
Set the given parameter to the given value


getEditPanel

public TransformEditPanel getEditPanel()
Get the edit panel for this transform, if there is not one, then just return null (the default)


setIsReversed

public void setIsReversed(boolean inIsReversed)
Set the Reversed flag


getIsReversed

public boolean getIsReversed()
Get the Reversed flag


toCartesian

public static void toCartesian(Ellipsoid inEllipsoid,
                               Point inPoint,
                               CartesianPoint inCartesianPoint)
Convert the given point from polar coordinates on the given from ellipsoid to cartesizn coordinates.


toPolar

public static void toPolar(Ellipsoid inEllipsoid,
                           CartesianPoint inCartesianPoint,
                           Point inPoint)
Convert the given point from it's Cartesian representation to a point on the given TO ellipsoid