|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorldCoordinateConverter
This defines the interface for converting between image and world coordinates.
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 |
---|
boolean isWCS()
double getEquinox()
void imageToWorldCoords(java.awt.geom.Point2D.Double p, boolean isDistance)
p
- The point to convert.isDistance
- True if p should be interpreted as a distance instead
of a point.void worldToImageCoords(java.awt.geom.Point2D.Double p, boolean isDistance)
p
- The point to convert.isDistance
- True if p should be interpreted as a distance instead
of a point.java.awt.geom.Point2D.Double getWCSCenter()
double getWidthInDeg()
double getHeightInDeg()
java.awt.geom.Point2D.Double getImageCenter()
double getWidth()
double getHeight()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |