astro
Class Aperture.Pixel

java.lang.Object
  extended by java.awt.geom.RectangularShape
      extended by java.awt.geom.Rectangle2D
          extended by java.awt.geom.Rectangle2D.Double
              extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D
Rectangle2D.Double, Rectangle2D.Float
 
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.
 
Fields inherited from class java.awt.geom.Rectangle2D.Double
x, y
 
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
private Aperture.Pixel(Point2D center, double w, double h, int level)
          Constructs a new pixel.
 
Method Summary
private  int getSplitLevel()
          Returns the split level of this pixel.
private  Aperture.Pixel[] split()
          Spilts this pixel into sub-pixels.
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

Aperture.Pixel

private Aperture.Pixel(Point2D center,
                       double w,
                       double h,
                       int level)
Constructs a new pixel.

Method Detail

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.