|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthealpix.core.NestedFace
A class representing a face in Healpix - this is abstract faces are either Northern, Southern or Equatorial. This represents the Nested Scheme.
Field Summary | |
protected NestedFace[] |
adjacent
|
protected int |
face
|
protected int |
npface
|
protected int |
nside
|
protected int |
offset
offset number of pixels before this faces e.g. |
Constructor Summary | |
protected |
NestedFace(int facenum,
NestedMap map)
Constructor - can not be called directly use getFace |
Method Summary | |
NestedFace[] |
adjacentFaces()
Faces which are adjacent to the given face - There are 6. |
NestedFace[] |
adjacentFaces(java.awt.Point p)
Faces which are adjacent to the given point in the given face - this is none if its in side a face but you should not be calling this in that case |
protected static NestedFace[] |
assemble(NestedFace[] inp,
int i1,
int i2)
Conveinence function to select items from an array |
protected static NestedFace[] |
assemble(NestedFace[] inp,
int i1,
int i2,
int i3)
Conveinence function to select items from an array |
int[][] |
box(int pix,
int nspix,
int wepix)
Get pixelnumbers of the neighours of a pixel in this face. |
abstract NestedFace[] |
eCornerNeigh()
|
abstract NestedFace |
eFaceNeigh()
|
abstract NestedFace |
eTipNeigh()
|
int |
faceNum()
|
protected void |
fillBoxECorner(int[][] theBox,
int xd,
int yd)
Take a chunk of pixel numebrs from a face on East corner. |
protected void |
fillBoxNCorner(int[][] theBox,
int xd,
int yd)
Take a chunk of pixel numebrs from a face on North corner. |
protected void |
fillBoxNE(int[][] theBox,
int ymin,
int ymax,
int bx,
int by)
Take a chunk of pixel numebrs from a face on the North East. |
protected void |
fillBoxNW(int[][] theBox,
int xmin,
int xmax,
int bx,
int by)
Take a chunk of pixel numebrs from a face on the North West .ximn and xmax are the Healpix X values to look for. |
protected void |
fillBoxSCorner(int[][] theBox,
int xd,
int yd)
Take a chunk of pixel numbers from a face on South corner. |
protected void |
fillBoxSE(int[][] theBox,
int xmin,
int xmax,
int bx,
int by)
Take a chunk of pixel numebrs from a face on the South East.ximn and xmax are the Healpix X values to look for. |
protected void |
fillBoxSW(int[][] theBox,
int ymin,
int ymax,
int bx,
int by)
Take a chunk of pixel numebrs from a face on the South West . |
void |
fillBoxVal(int[][] theBox,
int val,
int xmin,
int ymin,
int xd,
int yd)
Put givin value in a square of the 2'd array starting at xmin,yim for xd,yd elements. |
protected void |
fillBoxWCorner(int[][] theBox,
int xd,
int yd)
Take a chunk of pixel numebrs from a face on West corner. |
protected abstract void |
findAdjacentFaces()
actually find the faces if - will be called from adjacentfaces as required, this should populate adjacent. |
static NestedFace |
getFace(int facenum,
NestedMap imap)
Faces are constructed according to number, this get method is a factory for the correct type of face |
int[] |
internalNeigh(java.awt.Point p)
Pixels which are adjacent to the given point inside this face returns an array of pixel numbers |
abstract NestedFace[] |
nCornerNeigh()
|
int[] |
neighbours(int pix)
|
int[] |
neighbours(java.awt.Point p)
Pixels which are adjacent to the given point in this face returns an array of pixel numbers |
abstract NestedFace |
nFaceNeigh()
|
abstract NestedFace |
nTipNeigh()
|
java.awt.Point |
pix2xy(int pix)
Convert a pix number to x,y within the face |
abstract int[] |
pixEcorner()
Neighbours of the pixel in the east corner |
int[] |
pixEside(int x)
Pixels borderinng the pixel on the (south)east face. |
int[] |
pixNcorner()
Neighbours of the pixel in the north corner |
int[] |
pixNside(int y)
Pixels borderinng the pixel on the nortth(east )face. |
int[] |
pixScorner()
Neighbours of the pixel in the south corner |
int[] |
pixSside(int y)
Pixels borderinng the pixel on the south(west) face. |
abstract int[] |
pixWcorner()
Neighbours of the pixel in the west corner |
int[] |
pixWside(int x)
Pixels borderinng the pixel on the (north)west face. |
abstract NestedFace[] |
sCornerNeigh()
|
abstract NestedFace |
sFaceNeigh()
|
abstract NestedFace |
sTipNeigh()
|
abstract NestedFace[] |
wCornerNeigh()
|
abstract NestedFace |
wFaceNeigh()
|
abstract NestedFace |
wTipNeigh()
|
int |
xy2pix(int x,
int y)
Convert an x and y to a pix number within the face |
int |
xy2pix(java.awt.Point p)
Convert an x and y to a pix number within the face |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int face
protected int nside
protected int npface
protected int offset
protected NestedFace[] adjacent
Constructor Detail |
protected NestedFace(int facenum, NestedMap map)
Method Detail |
public static NestedFace getFace(int facenum, NestedMap imap) throws java.lang.Exception
java.lang.Exception
public NestedFace[] adjacentFaces() throws java.lang.Exception
java.lang.Exception
public NestedFace[] adjacentFaces(java.awt.Point p) throws java.lang.Exception
java.lang.Exception
public int[] internalNeigh(java.awt.Point p) throws java.lang.Exception
java.lang.Exception
public int[] neighbours(java.awt.Point p) throws java.lang.Exception
java.lang.Exception
protected static NestedFace[] assemble(NestedFace[] inp, int i1, int i2)
protected static NestedFace[] assemble(NestedFace[] inp, int i1, int i2, int i3)
public abstract NestedFace[] nCornerNeigh() throws java.lang.Exception
java.lang.Exception
public abstract NestedFace[] sCornerNeigh() throws java.lang.Exception
java.lang.Exception
public abstract NestedFace[] wCornerNeigh() throws java.lang.Exception
java.lang.Exception
public abstract NestedFace[] eCornerNeigh() throws java.lang.Exception
java.lang.Exception
public abstract NestedFace nFaceNeigh() throws java.lang.Exception
java.lang.Exception
public abstract NestedFace sFaceNeigh() throws java.lang.Exception
java.lang.Exception
public abstract NestedFace wFaceNeigh() throws java.lang.Exception
java.lang.Exception
public abstract NestedFace eFaceNeigh() throws java.lang.Exception
java.lang.Exception
public abstract NestedFace sTipNeigh() throws java.lang.Exception
java.lang.Exception
public abstract NestedFace wTipNeigh() throws java.lang.Exception
java.lang.Exception
public abstract NestedFace eTipNeigh() throws java.lang.Exception
java.lang.Exception
public abstract NestedFace nTipNeigh() throws java.lang.Exception
java.lang.Exception
protected abstract void findAdjacentFaces() throws java.lang.Exception
java.lang.Exception
public int faceNum()
public int xy2pix(java.awt.Point p) throws java.lang.Exception
java.lang.Exception
public java.awt.Point pix2xy(int pix) throws java.lang.Exception
java.lang.Exception
public int xy2pix(int x, int y) throws java.lang.Exception
java.lang.Exception
public int[] neighbours(int pix) throws java.lang.Exception
java.lang.Exception
public int[] pixScorner() throws java.lang.Exception
java.lang.Exception
public abstract int[] pixWcorner() throws java.lang.Exception
java.lang.Exception
public int[] pixNcorner() throws java.lang.Exception
java.lang.Exception
public abstract int[] pixEcorner() throws java.lang.Exception
java.lang.Exception
public int[] pixSside(int y) throws java.lang.Exception
java.lang.Exception
public int[] pixNside(int y) throws java.lang.Exception
java.lang.Exception
public int[] pixWside(int x) throws java.lang.Exception
java.lang.Exception
public int[] pixEside(int x) throws java.lang.Exception
java.lang.Exception
public void fillBoxVal(int[][] theBox, int val, int xmin, int ymin, int xd, int yd)
public int[][] box(int pix, int nspix, int wepix) throws java.lang.Exception
java.lang.Exception
protected void fillBoxNE(int[][] theBox, int ymin, int ymax, int bx, int by) throws java.lang.Exception
java.lang.Exception
protected void fillBoxSE(int[][] theBox, int xmin, int xmax, int bx, int by) throws java.lang.Exception
java.lang.Exception
protected void fillBoxNW(int[][] theBox, int xmin, int xmax, int bx, int by) throws java.lang.Exception
java.lang.Exception
protected void fillBoxSW(int[][] theBox, int ymin, int ymax, int bx, int by) throws java.lang.Exception
java.lang.Exception
protected void fillBoxECorner(int[][] theBox, int xd, int yd) throws java.lang.Exception
java.lang.Exception
protected void fillBoxWCorner(int[][] theBox, int xd, int yd) throws java.lang.Exception
java.lang.Exception
protected void fillBoxNCorner(int[][] theBox, int xd, int yd) throws java.lang.Exception
java.lang.Exception
protected void fillBoxSCorner(int[][] theBox, int xd, int yd) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |