public interface CoordinateConverter extends WorldCoordinateConverter
Modifier and Type | Field and Description |
---|---|
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)
|
Modifier and Type | Method and Description |
---|---|
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.
|
getEquinox, getHeight, getHeightInDeg, getImageCenter, getWCSCenter, getWidth, getWidthInDeg, imageToWorldCoords, isWCS, worldToImageCoords
static final int IMAGE
static final int SCREEN
static final int CANVAS
static final int USER
static final int WORLD
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.Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.