|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CoordinateConverter
This interface may be implemented by classes that display images and can convert between different coordinate systems, optionally including world coordinates. Methods are available for converting between the following coordinate systems:
Field Summary | |
---|---|
static int |
CANVAS
Constant for canvas coordinates |
static int |
IMAGE
Constant for image coordinates |
static int |
SCREEN
Constant for screen coordinates |
static int |
USER
Constant for user coordinates |
static int |
WORLD
Constant for world coordinates (deg, in the equinox of the image) |
Method Summary | |
---|---|
void |
canvasToImageCoords(Point2D.Double p,
boolean isDistance)
Convert the given canvas coordinates to image coordinates. |
void |
canvasToScreenCoords(Point2D.Double p,
boolean isDistance)
Convert the given canvas coordinates to screen coordinates. |
void |
canvasToUserCoords(Point2D.Double p,
boolean isDistance)
Convert the given canvas coordinates to user coordinates. |
void |
canvasToWorldCoords(Point2D.Double p,
boolean isDistance)
Convert the given canvas coordinates to world coordinates degrees in the equinox of the current image. |
void |
convertCoords(Point2D.Double p,
int inType,
int outType,
boolean isDistance)
Convert the given coordinates from inType to outType. |
void |
imageToCanvasCoords(Point2D.Double p,
boolean isDistance)
Convert the given image coordinates to canvas coordinates. |
void |
imageToScreenCoords(Point2D.Double p,
boolean isDistance)
Convert the given image coordinates to screen coordinates. |
void |
imageToUserCoords(Point2D.Double p,
boolean isDistance)
Convert the given image coordinates to user coordinates. |
void |
screenToCanvasCoords(Point2D.Double p,
boolean isDistance)
Convert the given screen coordinates to canvas coordinates. |
void |
screenToImageCoords(Point2D.Double p,
boolean isDistance)
Convert the given screen coordinates to image coordinates. |
void |
screenToUserCoords(Point2D.Double p,
boolean isDistance)
Convert the given screen coordinates to user coordinates. |
void |
screenToWorldCoords(Point2D.Double p,
boolean isDistance)
Convert the given screen coordinates to world coordinates degrees in the equinox of the current image. |
void |
userToCanvasCoords(Point2D.Double p,
boolean isDistance)
Convert the given user coordinates to canvas coordinates. |
void |
userToImageCoords(Point2D.Double p,
boolean isDistance)
Convert the given user coordinates to image coordinates. |
void |
userToScreenCoords(Point2D.Double p,
boolean isDistance)
Convert the given user coordinates to screen coordinates. |
void |
userToWorldCoords(Point2D.Double p,
boolean isDistance)
Convert the given user coordinates to world coordinates degrees in the equinox of the current image. |
void |
worldToCanvasCoords(Point2D.Double p,
boolean isDistance)
Convert the given world coordinates (degrees, in the equinox of the current image) to canvas coordinates. |
void |
worldToScreenCoords(Point2D.Double p,
boolean isDistance)
Convert the given world coordinates (degrees, in the equinox of the current image) to screen coordinates. |
void |
worldToUserCoords(Point2D.Double p,
boolean isDistance)
Convert the given world coordinates (degrees, in the equinox of the current image) to user coordinates. |
Methods inherited from interface jsky.coords.WorldCoordinateConverter |
---|
getEquinox, getHeight, getHeightInDeg, getImageCenter, getWCSCenter, getWidth, getWidthInDeg, imageToWorldCoords, isWCS, worldToImageCoords |
Field Detail |
---|
static final int IMAGE
static final int SCREEN
static final int CANVAS
static final int USER
static final int WORLD
Method Detail |
---|
void convertCoords(Point2D.Double p, int inType, int outType, boolean isDistance)
p
- The point to convert.inType
- the type of the input coordinatesoutType
- the type of the output coordinatesisDistance
- True if p should be interpreted as a distance instead
of a point.void canvasToImageCoords(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 canvasToUserCoords(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 userToImageCoords(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 userToCanvasCoords(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 imageToCanvasCoords(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 imageToUserCoords(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 canvasToScreenCoords(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 screenToCanvasCoords(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 screenToImageCoords(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 imageToScreenCoords(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 screenToUserCoords(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 userToScreenCoords(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 screenToWorldCoords(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 canvasToWorldCoords(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 userToWorldCoords(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 worldToCanvasCoords(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 worldToScreenCoords(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 worldToUserCoords(Point2D.Double p, boolean isDistance)
p
- The point to convert.isDistance
- True if p should be interpreted as a distance instead
of a point.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |