jsky.coords
Interface WorldCoordinateConverter

All Known Subinterfaces:
CoordinateConverter
All Known Implementing Classes:
ImageCoordinateConverter, WCSTransform

public interface WorldCoordinateConverter

This defines the interface for converting between image and world coordinates.

Version:
$Revision: 1.1 $
Author:
Allan Brighton

Method Summary
 double getEquinox()
          Return the equinox used for coordinates (usually the equionx of the image)
 double getHeight()
          Return the image height in pixels.
 double getHeightInDeg()
          return the height in deg
 java.awt.geom.Point2D.Double getImageCenter()
          Return the image center coordinates in pixels (image coordinates).
 java.awt.geom.Point2D.Double getWCSCenter()
          Return the center RA,Dec coordinates in degrees.
 double getWidth()
          Return the image width in pixels.
 double getWidthInDeg()
          return the width in deg
 void imageToWorldCoords(java.awt.geom.Point2D.Double p, boolean isDistance)
          Convert the given image coordinates to world coordinates degrees in the equinox of the current image.
 boolean isWCS()
          Return true if world coordinates conversion is available.
 void worldToImageCoords(java.awt.geom.Point2D.Double p, boolean isDistance)
          Convert the given world coordinates (degrees, in the equinox of the current image) to image coordinates.
 

Method Detail

isWCS

boolean isWCS()
Return true if world coordinates conversion is available. This method should be called to check before calling any of the world coordinates conversion methods.


getEquinox

double getEquinox()
Return the equinox used for coordinates (usually the equionx of the image)


imageToWorldCoords

void imageToWorldCoords(java.awt.geom.Point2D.Double p,
                        boolean isDistance)
Convert the given image coordinates to world coordinates degrees in the equinox of the current image.

Parameters:
p - The point to convert.
isDistance - True if p should be interpreted as a distance instead of a point.

worldToImageCoords

void worldToImageCoords(java.awt.geom.Point2D.Double p,
                        boolean isDistance)
Convert the given world coordinates (degrees, in the equinox of the current image) to image coordinates.

Parameters:
p - The point to convert.
isDistance - True if p should be interpreted as a distance instead of a point.

getWCSCenter

java.awt.geom.Point2D.Double getWCSCenter()
Return the center RA,Dec coordinates in degrees.


getWidthInDeg

double getWidthInDeg()
return the width in deg


getHeightInDeg

double getHeightInDeg()
return the height in deg


getImageCenter

java.awt.geom.Point2D.Double getImageCenter()
Return the image center coordinates in pixels (image coordinates).


getWidth

double getWidth()
Return the image width in pixels.


getHeight

double getHeight()
Return the image height in pixels.