|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.pdx.starview.imaging.ImageMap
Used to generate images of the sky based on image-size/locaiton specs, and azimuth/altutdes of objects in the sky.
Constructor Summary | |
ImageMap(int w,
int h,
SVAngle CenterAz,
SVAngle CenterAlt,
SVAngle imageAngle)
Used to create images of the sky based on azimuth and altitude of the objects in the sky, and based on what direction your looking. |
Method Summary | |
void |
drawStar(int posX,
int posY,
int size)
Deprecated. |
void |
drawStar(SVAngle CurrentAz,
SVAngle CurrentAlt)
Deprecated. |
void |
drawStar(SVAngle objectAzIn,
SVAngle objectAltIn,
SVSkyObject objectInfo)
Draws a point in the sky where a star or planet will be. |
java.awt.image.BufferedImage |
getBufferedImage()
|
java.awt.Graphics2D |
getGraphics2D()
|
void |
writeFile(java.io.File outfile)
Saves the image to a PNG file. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ImageMap(int w, int h, SVAngle CenterAz, SVAngle CenterAlt, SVAngle imageAngle)
w
- Width of image to be createdh
- Height of image to be createed.CenterAz
- The center azimuth of the angle.CenterAlt
- The center altitude of the angle.imageAngle
- The angular width that the image should cover.Method Detail |
public java.awt.Graphics2D getGraphics2D()
public java.awt.image.BufferedImage getBufferedImage()
public void writeFile(java.io.File outfile) throws java.lang.Exception
outfile
- The filename to save it to.
java.lang.Exception
public void drawStar(int posX, int posY, int size)
public void drawStar(SVAngle CurrentAz, SVAngle CurrentAlt) throws java.lang.Exception
CurrentAz
- Azimuth of point to be drawnCurrentAlt
- Altitude of point to be drawn
java.lang.Exception
public void drawStar(SVAngle objectAzIn, SVAngle objectAltIn, SVSkyObject objectInfo) throws java.lang.Exception
objectInfo
- Indicator of color and size of object to be drawn
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |