object SkyPic
This singleton object provides utilities for creating and manipulating images that represent views of a night sky.
- Alphabetic
- By Inheritance
- SkyPic
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def create(skyData: StarMap, bgSize: Int): gui.Pic
Given a StarMap that details what is visible in the sky, produces a Pic that represents that information as an image.
Given a StarMap that details what is visible in the sky, produces a Pic that represents that information as an image. The background of the image is a
Black
square of the given size. Each star and constellation in the sky appear against that background.- skyData
the contents of the night sky that are to be represented as an image
- bgSize
the width and height, in pixels, of the desired square image
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def placeConstellation(skyPic: o1.Pic, constellation: Constellation): o1.Pic
Given an image of the sky and a star, returns a version of the original image with a constellation drawn on top.
Given an image of the sky and a star, returns a version of the original image with a constellation drawn on top.
A constellation is depicted using a combination of red circles and yellow lines. At each star that belongs to the constellation, a red circle with a diameter of 4 pixels is added. A yellow line is then drawn between each pair of connected stars. The positions of the stars within the image are determined as in placeStar.
- def placeStar(skyPic: o1.Pic, star: Star): gui.Pic
Given an image of the sky and a star, returns a version of the original image with an image of the star placed on top.
Given an image of the sky and a star, returns a version of the original image with an image of the star placed on top. That is, forms an image of the star and places it against the given (larger) image in a
Pos
that corresponds to the star's StarCoords.The star is depicted as a
White
circle whose diameter is12.0 / (M + 2)
, whereM
is the star’s magnitude. Its position within the resulting image is determined by Star.posIn. The given star must have a magnitude greater than -2.For example, say the background image is 400 by 400 pixels, and the given star has the coords (0.5,0.0) and a magnitude of -0.5. The returned image will then consist of the given background image with white circle of radius 4 placed upon it at (300,200).
- skyPic
an image to place the star upon
- star
a star (of magnitude > -2) that should be depicted against the given image
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString: String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.