|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjview.AbstractFormattingTransform
jview.JFitsCanvas.PixelCoordinate
private class JFitsCanvas.PixelCoordinate
This class converts normalized coordinates into true CCD pixel values. It is used for the standard user transformation with the applied fits data offset and binning, as the Array transformation, where we want to get the x and y indices of the pixel arrays, it is used without binning and offset. Binning is treated in a way the, e.g. for a single pixel in the fits frame you get two pixel in user space for a binning factor of two.
| Field Summary | |
|---|---|
private double |
mult
In user transform, this is one, in array transform zero. |
private double |
off
In user transform this is zero, in array transform one. |
| Constructor Summary | |
|---|---|
private |
JFitsCanvas.PixelCoordinate()
Pixel coordinate always formats the user space in integers. |
private |
JFitsCanvas.PixelCoordinate(boolean ignorewindow)
Pixel coordinate always formats the user space in integers. |
| Method Summary | |
|---|---|
Format |
estimateX(double dx)
From the step-size in user space, estimate a format. |
Format |
estimateY(double dy)
From the step-size in user space, estimate a format. |
private DecimalFormat |
integerFormat(double pixmag)
|
Point2D |
toNormalizedDistance(VectorG ul,
VectorG dist)
Converts a pixel distance to a normalized distance. |
Point2D |
toNormalizedSpace(VectorG user)
Converts user coordinates to normalized space. |
VectorG |
toUserDistance(Rectangle2D norm)
Converts a distance in normalized space to s distance in user space. |
VectorG |
toUserSpace(Point2D norm)
Converts the normalized coordinates to user space. |
void |
useEstimatedFormats(Rectangle2D view,
int sx,
int sy)
Does nothing, except if viewport is so small that we want to show non-integer pixel. |
| Methods inherited from class jview.AbstractFormattingTransform |
|---|
deltaFormatUserSpaceX, deltaFormatUserSpaceY, formatUserCoordinates, formatUserSpaceX, formatUserSpaceY, getFormatUserX, getFormatUserY, setDeltaFormatUserX, setDeltaFormatUserY, setFormatUserX, setFormatUserY |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private double mult
private double off
| Constructor Detail |
|---|
private JFitsCanvas.PixelCoordinate()
private JFitsCanvas.PixelCoordinate(boolean ignorewindow)
| Method Detail |
|---|
public VectorG toUserSpace(Point2D norm)
norm - A pixel in normalized coordinates.
public Point2D toNormalizedSpace(VectorG user)
user - A vector of user coordinates.
public VectorG toUserDistance(Rectangle2D norm)
public Point2D toNormalizedDistance(VectorG ul,
VectorG dist)
public void useEstimatedFormats(Rectangle2D view,
int sx,
int sy)
useEstimatedFormats in interface FormattedTransforminguseEstimatedFormats in class AbstractFormattingTransformpublic Format estimateX(double dx)
FormattedTransforming
public Format estimateY(double dy)
FormattedTransforming
private DecimalFormat integerFormat(double pixmag)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||