astro
Class Aperture.Pixel
java.lang.Object
java.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Double
astro.Aperture.Pixel
- All Implemented Interfaces:
- Shape, Serializable, Cloneable
- Enclosing class:
- Aperture
private class Aperture.Pixel
- extends Rectangle2D.Double
A subpixel of the CCD-pixel.
|
Field Summary |
private double |
height
Height of the pixel. |
private int |
split
Current splitting level. |
private double |
width
Width of the pixel. |
private Point2D |
xy
Center of the pixel. |
|
Constructor Summary |
private |
Aperture.Pixel(Point2D center,
double w,
double h,
int level)
Constructs a new pixel. |
| Methods inherited from class java.awt.geom.Rectangle2D.Double |
createIntersection, createUnion, getBounds2D, getHeight, getWidth, getX, getY, isEmpty, outcode, setRect, setRect, toString |
| Methods inherited from class java.awt.geom.Rectangle2D |
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union |
| Methods inherited from class java.awt.geom.RectangularShape |
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
xy
private Point2D xy
- Center of the pixel.
width
private double width
- Width of the pixel.
height
private double height
- Height of the pixel.
split
private int split
- Current splitting level.
Aperture.Pixel
private Aperture.Pixel(Point2D center,
double w,
double h,
int level)
- Constructs a new pixel.
getSplitLevel
private int getSplitLevel()
- Returns the split level of this pixel.
split
private Aperture.Pixel[] split()
- Spilts this pixel into sub-pixels. In principle, any splitting is
possible, but the easiest is to split the parent, i.e. this, into
four equally-sized subpixels, each with half the width and height.