org.stellarium.astro
Class HipStar

java.lang.Object
  extended by org.stellarium.StelObject
      extended by org.stellarium.StelObjectBase
          extended by org.stellarium.astro.HipStar
All Implemented Interfaces:
java.lang.Comparable<HipStar>

public class HipStar
extends StelObjectBase
implements java.lang.Comparable<HipStar>

Version:
0.8.2
Author:
Fred Simon

Nested Class Summary
(package private) static class HipStar.CommonNamesManager
           
(package private) static class HipStar.DoubleFlagManager
           
static class HipStar.EnglishNameComparator
           
(package private) static interface HipStar.FlagManager
           
static class HipStar.MagnitudeComparator
           
(package private) static interface HipStar.NamesManager
           
static class HipStar.ScientificNameComparator
           
(package private) static class HipStar.ScientificNamesManager
           
static class HipStar.SpectralType
           
(package private) static class HipStar.VariableFlagManager
           
 
Nested classes/interfaces inherited from class org.stellarium.StelObject
StelObject.TYPE
 
Field Summary
(package private) static SColor circleColor
           
(package private)  java.lang.String commonNameI18
          Common Name of the star
(package private)  float distance
          Distance from Earth in light years
(package private)  boolean doubleStar
          double star flag
private static char ENDL
           
(package private)  java.lang.String englishCommonName
          English Common Name of the star
(package private) static ToneReproductor eye
           
(package private) static boolean flagSciNames
           
(package private) static boolean gravityLabel
           
(package private)  int hp
          Hipparcos number
(package private) static SColor labelColor
           
(package private)  float mag
          Apparent magnitude
(package private) static double namesBrightness
           
(package private) static Projector proj
           
(package private) static double RADIUS_STAR
           
(package private)  java.lang.String sciName
          Scientific name
(package private) static SFontIfc starFontIfc
           
(package private) static double starMagScale
           
(package private) static double starScale
           
(package private)  double term1
          Optimization term
(package private) static double twinkleAmount
           
(package private)  HipStar.SpectralType type
          Spectral type coded as number in [0..12]
(package private)  boolean variableStar
          not implemented yet
(package private)  javax.vecmath.Point3d XYZ
          Cartesian position
 
Fields inherited from class org.stellarium.StelObjectBase
DEFAULT_COLOR
 
Constructor Summary
HipStar()
           
 
Method Summary
 int compareTo(HipStar o)
           
(package private)  void draw(javax.vecmath.Point3d XY)
           
(package private)  boolean drawName(javax.vecmath.Point3d XY)
           
(package private)  void drawPoint(javax.vecmath.Point3d XY)
           
 boolean equals(java.lang.Object o)
           
 javax.vecmath.Point3d getEarthEquPos(NavigatorIfc nav)
          Get position in earth equatorial frame
 java.lang.String getEnglishName()
          Return object's name
 int getHPNumber()
           
 java.lang.String getInfoString(NavigatorIfc nav)
          Write I18n information about the object in wstring.
 float getMag(NavigatorIfc nav)
           
 java.lang.String getNameI18n()
           
 javax.vecmath.Point3d getObsJ2000Pos(NavigatorIfc nav)
          observer centered J2000 coordinates TODO: Fred Should be abstract method no?
 SColor getRGB()
          Get object main color, used to display infos
 java.lang.String getShortInfoString(NavigatorIfc nav)
          The returned wstring can typically be used for object labeling in the sky
 char getSpectralType()
           
 StelObject.TYPE getType()
          Tree.Return object's type
 int hashCode()
           
(package private)  boolean read(HipData data)
          Read datas in binary catalog and compute x,y,z; The aliasing bug on some architecture has been fixed by Rainer Canavan on 26/11/2003 Really ?
 void setCircleColor(SColor v)
           
 void setLabelColor(SColor v)
           
 void translateNames(Translator trans)
           
 
Methods inherited from class org.stellarium.StelObjectBase
deleteTextures, drawPointer, getBrightestStarInConstellation, getCloseFOV, getMag, getOnScreenSize, getParentSatellitesFOV, getSatellitesFOV, initTextures, release, retain, update
 
Methods inherited from class org.stellarium.StelObject
getUninitializedObject
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENDL

private static final char ENDL
See Also:
Constant Field Values

RADIUS_STAR

static final double RADIUS_STAR
See Also:
Constant Field Values

twinkleAmount

static double twinkleAmount

starScale

static double starScale

starMagScale

static double starMagScale

namesBrightness

static double namesBrightness

eye

static ToneReproductor eye

proj

static Projector proj

gravityLabel

static boolean gravityLabel

circleColor

static SColor circleColor

labelColor

static SColor labelColor

starFontIfc

static SFontIfc starFontIfc

flagSciNames

static boolean flagSciNames

hp

int hp
Hipparcos number


mag

float mag
Apparent magnitude


doubleStar

boolean doubleStar
double star flag


variableStar

boolean variableStar
not implemented yet


XYZ

javax.vecmath.Point3d XYZ
Cartesian position


term1

double term1
Optimization term


englishCommonName

java.lang.String englishCommonName
English Common Name of the star


commonNameI18

java.lang.String commonNameI18
Common Name of the star


sciName

java.lang.String sciName
Scientific name


type

HipStar.SpectralType type
Spectral type coded as number in [0..12]


distance

float distance
Distance from Earth in light years

Constructor Detail

HipStar

public HipStar()
Method Detail

getInfoString

public java.lang.String getInfoString(NavigatorIfc nav)
Description copied from class: StelObject
Write I18n information about the object in wstring.

Specified by:
getInfoString in class StelObject

getNameI18n

public java.lang.String getNameI18n()
Overrides:
getNameI18n in class StelObjectBase

getEnglishName

public java.lang.String getEnglishName()
Description copied from class: StelObjectBase
Return object's name

Overrides:
getEnglishName in class StelObjectBase

getShortInfoString

public java.lang.String getShortInfoString(NavigatorIfc nav)
Description copied from class: StelObject
The returned wstring can typically be used for object labeling in the sky

Specified by:
getShortInfoString in class StelObject

getSpectralType

public char getSpectralType()

getRGB

public SColor getRGB()
Description copied from class: StelObjectBase
Get object main color, used to display infos

Overrides:
getRGB in class StelObjectBase

read

boolean read(HipData data)
       throws java.io.IOException
Read datas in binary catalog and compute x,y,z; The aliasing bug on some architecture has been fixed by Rainer Canavan on 26/11/2003 Really ? -- JB, 20060607

Parameters:
data - the raw data from the ctatlog file
Returns:
If the read succeeded
Throws:
java.io.IOException

draw

void draw(javax.vecmath.Point3d XY)

drawPoint

void drawPoint(javax.vecmath.Point3d XY)

drawName

boolean drawName(javax.vecmath.Point3d XY)

getType

public StelObject.TYPE getType()
Description copied from class: StelObjectBase
Tree.Return object's type

Specified by:
getType in class StelObjectBase

getEarthEquPos

public javax.vecmath.Point3d getEarthEquPos(NavigatorIfc nav)
Description copied from class: StelObjectBase
Get position in earth equatorial frame

Overrides:
getEarthEquPos in class StelObjectBase

getObsJ2000Pos

public javax.vecmath.Point3d getObsJ2000Pos(NavigatorIfc nav)
Description copied from class: StelObjectBase
observer centered J2000 coordinates TODO: Fred Should be abstract method no?

Overrides:
getObsJ2000Pos in class StelObjectBase

getMag

public float getMag(NavigatorIfc nav)
Overrides:
getMag in class StelObjectBase
Returns:
object's magnitude

getHPNumber

public int getHPNumber()

setLabelColor

public void setLabelColor(SColor v)

setCircleColor

public void setCircleColor(SColor v)

translateNames

public void translateNames(Translator trans)

compareTo

public int compareTo(HipStar o)
Specified by:
compareTo in interface java.lang.Comparable<HipStar>

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object