Packages

o

o1.stars.io

SkyPic

object SkyPic

This singleton object provides utilities for creating and manipulating images that represent views of a night sky.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SkyPic
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. 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

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. 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.

  16. 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 is 12.0 / (M + 2), where M 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

  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString: String
    Definition Classes
    AnyRef → Any
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. 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.

Inherited from AnyRef

Inherited from Any

Ungrouped