gistoolkit.projection.ellipsoid.transform
Class GeocentricTranslation

java.lang.Object
  extended bygistoolkit.projection.ellipsoid.transform.EllipsoidTransform
      extended bygistoolkit.projection.ellipsoid.transform.GeocentricTranslation

public class GeocentricTranslation
extends EllipsoidTransform

The vast majority of the transforms are simple geocentric translations. This class will accomodate those translations.

Author:
bitterstorm

Nested Class Summary
(package private)  class GeocentricTranslation.EditPanel
           
 
Constructor Summary
GeocentricTranslation()
          Creates new GeocentricTranslation
GeocentricTranslation(Ellipsoid inFromEllipsoid, Ellipsoid inToEllipsoid, double inXTranslation, double inYTranslation, double inZTranslation)
          Creates new GeocentricTranslation with the given ellipsoids, and translation parameters.
 
Method Summary
protected  void doForward(Point inPoint)
          Transform the coordinates in the forward direction
protected  void doReverse(Point inPoint)
          Transform the coordinates in the reverse direction
 TransformEditPanel getEditPanel()
          Create an edit panel to allow the user to edit this transform
 double getXTranslation()
          Return the translation in the X direction
 double getYTranslation()
          Return the translation in the Y direction
 double getZTranslation()
          Return the translation in the Z direction
 void setParameter(java.lang.String inName, java.lang.String inValue)
          Set the given parameter to the given value
 void setXTranslation(double inXTranslation)
          Set the translation in the X direction
 void setYTranslation(double inYTranslation)
          Set the translation in the Y direction
 void setZTranslation(double inZTranslation)
          Set the translation in the Z direction
 
Methods inherited from class gistoolkit.projection.ellipsoid.transform.EllipsoidTransform
forward, getFromEllipsoid, getIsReversed, getName, getToEllipsoid, reverse, setFromEllipsoid, setIsReversed, setName, setToEllipsoid, toCartesian, toPolar, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeocentricTranslation

public GeocentricTranslation()
Creates new GeocentricTranslation


GeocentricTranslation

public GeocentricTranslation(Ellipsoid inFromEllipsoid,
                             Ellipsoid inToEllipsoid,
                             double inXTranslation,
                             double inYTranslation,
                             double inZTranslation)
Creates new GeocentricTranslation with the given ellipsoids, and translation parameters.

Method Detail

setXTranslation

public void setXTranslation(double inXTranslation)
Set the translation in the X direction


getXTranslation

public double getXTranslation()
Return the translation in the X direction


setYTranslation

public void setYTranslation(double inYTranslation)
Set the translation in the Y direction


getYTranslation

public double getYTranslation()
Return the translation in the Y direction


setZTranslation

public void setZTranslation(double inZTranslation)
Set the translation in the Z direction


getZTranslation

public double getZTranslation()
Return the translation in the Z direction


doForward

protected void doForward(Point inPoint)
Transform the coordinates in the forward direction

Specified by:
doForward in class EllipsoidTransform

doReverse

protected void doReverse(Point inPoint)
Transform the coordinates in the reverse direction

Specified by:
doReverse in class EllipsoidTransform

setParameter

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

Specified by:
setParameter in class EllipsoidTransform

getEditPanel

public TransformEditPanel getEditPanel()
Create an edit panel to allow the user to edit this transform

Overrides:
getEditPanel in class EllipsoidTransform