|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfits.AbstractFitsShape
public abstract class AbstractFitsShape
Basic implementation for FitsShape. Supports statistic and ADU
retrieval, but postpones principal axis.
| Field Summary | |
|---|---|
private List<Vector3D> |
cache
The last ADUS retrieved. |
private Shape |
generic
The normalized generic shape. |
private nom.tam.fits.ImageHDU |
hdu
The image data I am registered to. |
private AffineTransform |
last
Cache last requests for speedup. |
| Constructor Summary | |
|---|---|
protected |
AbstractFitsShape(nom.tam.fits.Fits fits,
Shape like)
Constructs a new abstract fits shape specifiying the fits object and the generic shape. |
protected |
AbstractFitsShape(nom.tam.fits.ImageHDU fits,
Shape like)
Constructs a new abstract fits shape specifiying the fits object and the generic shape. |
protected |
AbstractFitsShape(Shape like)
Constructs a new abstract fits shape specifiying the generic shape. |
| Method Summary | |
|---|---|
boolean |
contains(double x,
double y)
Passes to our generic shape. |
boolean |
contains(double x,
double y,
double w,
double h)
Passes to our generic shape. |
boolean |
contains(Point2D p)
Passes to our generic shape. |
boolean |
contains(Rectangle2D r)
Passes to our generic shape. |
List<Vector3D> |
getAdus(AffineTransform at)
Transforms the generic shape to match the FITS geometry, then greps all underlying adus whose central coordinate (image+0.5, FITS convention -0.5) lies within the shape. |
Rectangle |
getBounds()
Passes to our generic shape. |
Rectangle2D |
getBounds2D()
Passes to our generic shape. |
protected Shape |
getFitsShape(AffineTransform at)
We use the user-supplied transform to get a true shape that can be applied to ther underlying fits. |
PathIterator |
getPathIterator(AffineTransform at)
Passes to our generic shape. |
PathIterator |
getPathIterator(AffineTransform at,
double flatness)
Passes to our generic shape. |
Statistic |
getStatistic(AffineTransform at)
Generates the statistic out of the specified transform. |
boolean |
intersects(double x,
double y,
double w,
double h)
Passes to our generic shape. |
boolean |
intersects(Rectangle2D r)
Passes to our generic shape. |
void |
registerFits(nom.tam.fits.Fits i)
Registers a fits object. |
void |
registerFits(nom.tam.fits.ImageHDU i)
Registers the image data to this shape. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jfits.FitsShape |
|---|
getPrincipal, isClosed |
| Field Detail |
|---|
private nom.tam.fits.ImageHDU hdu
private Shape generic
private AffineTransform last
private List<Vector3D> cache
| Constructor Detail |
|---|
protected AbstractFitsShape(Shape like)
protected AbstractFitsShape(nom.tam.fits.Fits fits,
Shape like)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
protected AbstractFitsShape(nom.tam.fits.ImageHDU fits,
Shape like)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException| Method Detail |
|---|
public Rectangle getBounds()
getBounds in interface Shapepublic Rectangle2D getBounds2D()
getBounds2D in interface Shape
public boolean contains(double x,
double y)
contains in interface Shapepublic boolean contains(Point2D p)
contains in interface Shape
public boolean intersects(double x,
double y,
double w,
double h)
intersects in interface Shapepublic boolean intersects(Rectangle2D r)
intersects in interface Shape
public boolean contains(double x,
double y,
double w,
double h)
contains in interface Shapepublic boolean contains(Rectangle2D r)
contains in interface Shapepublic PathIterator getPathIterator(AffineTransform at)
getPathIterator in interface Shape
public PathIterator getPathIterator(AffineTransform at,
double flatness)
getPathIterator in interface Shape
public void registerFits(nom.tam.fits.Fits i)
throws nom.tam.fits.FitsException
registerFits in interface FitsShapenom.tam.fits.FitsException
public void registerFits(nom.tam.fits.ImageHDU i)
throws nom.tam.fits.FitsException
registerFits in interface FitsShapenom.tam.fits.FitsExceptionFitsShape.registerFits(Fits)
public Statistic getStatistic(AffineTransform at)
throws nom.tam.fits.FitsException
getStatistic in interface FitsShapeat - How the generic shape is transformed to FITS space.
nom.tam.fits.FitsException
public List<Vector3D> getAdus(AffineTransform at)
throws nom.tam.fits.FitsException
getAdus in interface FitsShapeat - How the generic shape is transformed to FITS space.
nom.tam.fits.FitsExceptionprotected Shape getFitsShape(AffineTransform at)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||