org.stellarium
Class StelObjectBase

java.lang.Object
  extended by org.stellarium.StelObject
      extended by org.stellarium.StelObjectBase
Direct Known Subclasses:
Constellation, HipStar, Nebula, Planet, Telescope

public abstract class StelObjectBase
extends StelObject

Version:
21 aout 2006 09:09:18
Author:
Jerome Beau

Nested Class Summary
 
Nested classes/interfaces inherited from class org.stellarium.StelObject
StelObject.StelObjectUninitialized, StelObject.TYPE
 
Field Summary
static SColor DEFAULT_COLOR
           
private static int localTime
           
private static STexture pointerNebula
           
private static STexture pointerPlanet
           
private static STexture pointerStar
           
private static STexture pointerTelescope
           
 
Fields inherited from class org.stellarium.StelObject
uninitialized_object
 
Constructor Summary
StelObjectBase()
           
 
Method Summary
static void deleteTextures()
           
 void drawPointer(int deltaTime, Projector prj, NavigatorIfc nav)
          Draw a nice animated pointer around the object
 StelObject getBrightestStarInConstellation()
           
 double getCloseFOV(NavigatorIfc nav)
          Tree.Return the best FOV in degree to use for a close view of the object
 javax.vecmath.Point3d getEarthEquPos(NavigatorIfc nav)
          Get position in earth equatorial frame
 java.lang.String getEnglishName()
          Return object's name
 float getMag()
          Method overloading for default null navigator.
 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?
protected  float getOnScreenSize(Projector prj, NavigatorIfc nav)
           
 double getParentSatellitesFOV(NavigatorIfc nav)
           
 SColor getRGB()
          Get object main color, used to display infos
 double getSatellitesFOV(NavigatorIfc nav)
           
abstract  StelObject.TYPE getType()
          Tree.Return object's type
static void initTextures()
           
 void release()
           
 void retain()
           
 void update()
           
 
Methods inherited from class org.stellarium.StelObject
getInfoString, getShortInfoString, getUninitializedObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localTime

private static int localTime

pointerStar

private static STexture pointerStar

pointerPlanet

private static STexture pointerPlanet

pointerNebula

private static STexture pointerNebula

pointerTelescope

private static STexture pointerTelescope

DEFAULT_COLOR

public static final SColor DEFAULT_COLOR
Constructor Detail

StelObjectBase

public StelObjectBase()
Method Detail

retain

public void retain()

release

public void release()

update

public void update()
Overrides:
update in class StelObject

drawPointer

public void drawPointer(int deltaTime,
                        Projector prj,
                        NavigatorIfc nav)
Draw a nice animated pointer around the object

Specified by:
drawPointer in class StelObject
Parameters:
deltaTime - The delta time
prj - The projector
nav - The navigator

getType

public abstract StelObject.TYPE getType()
Tree.Return object's type

Specified by:
getType in class StelObject

getEnglishName

public java.lang.String getEnglishName()
Return object's name

Specified by:
getEnglishName in class StelObject

getNameI18n

public java.lang.String getNameI18n()
Specified by:
getNameI18n in class StelObject

getEarthEquPos

public javax.vecmath.Point3d getEarthEquPos(NavigatorIfc nav)
Get position in earth equatorial frame

Specified by:
getEarthEquPos in class StelObject

getObsJ2000Pos

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

Specified by:
getObsJ2000Pos in class StelObject

getMag

public float getMag(NavigatorIfc nav)
Specified by:
getMag in class StelObject
Returns:
object's magnitude

getMag

public float getMag()
Method overloading for default null navigator.

Returns:
object's magnitude

getRGB

public SColor getRGB()
Get object main color, used to display infos

Specified by:
getRGB in class StelObject

getBrightestStarInConstellation

public StelObject getBrightestStarInConstellation()

getCloseFOV

public double getCloseFOV(NavigatorIfc nav)
Tree.Return the best FOV in degree to use for a close view of the object

Overrides:
getCloseFOV in class StelObject

getSatellitesFOV

public double getSatellitesFOV(NavigatorIfc nav)
Overrides:
getSatellitesFOV in class StelObject

getParentSatellitesFOV

public double getParentSatellitesFOV(NavigatorIfc nav)
Specified by:
getParentSatellitesFOV in class StelObject

getOnScreenSize

protected float getOnScreenSize(Projector prj,
                                NavigatorIfc nav)
Overrides:
getOnScreenSize in class StelObject

initTextures

public static void initTextures()
                         throws StellariumException
Throws:
StellariumException

deleteTextures

public static void deleteTextures()