org.stellarium
Class Observator

java.lang.Object
  extended by org.stellarium.Observator

public class Observator
extends java.lang.Object

Version:
0.8.2
Author:
Jerome Beau, Fred Simon

Field Summary
(package private)  int altitude
          Altitude in meter
private  double endAltitude
           
private  double endLatitude
           
private  double endLongitude
           
private  boolean flagMoveTo
          for changing position
(package private)  java.lang.String landscapeName
           
(package private)  double latitude
          Latitude in degree
(package private)  double longitude
          Longitude in degree
private  double moveToCoef
           
private  double moveToMult
           
private  java.lang.String name
          Position name
private  Planet planet
           
private  SolarSystem solarSystem
           
private  double startAltitude
           
private  double startLatitude
           
private  double startLongitude
           
 
Constructor Summary
Observator(SolarSystem someSolarSystem)
           
 
Method Summary
 int getAltitude()
           
(package private)  javax.vecmath.Point3d getCenterVsop87Pos()
           
(package private)  double getDistanceFromCenter()
           
 Planet getHomePlanet()
           
 java.lang.String getHomePlanetEnglishName()
           
 java.lang.String getHomePlanetNameI18n()
           
 java.lang.String getLandscapeName()
           
 double getLatitude()
           
 double getLongitude()
           
 java.lang.String getName()
           
 javax.vecmath.Matrix4d getRotEquatorialToVsop87()
           
(package private)  javax.vecmath.Matrix4d getRotLocalToEquatorial(double jd)
           
 void load(IniFileParser conf, java.lang.String section)
           
(package private)  void load(java.lang.String file, java.lang.String section)
           
 void moveTo(double latitude, double longitude, double altitude, int duration, java.lang.String _name)
          Move gradually to a new observation location
 void save(IniFileParser conf, java.lang.String section)
           
 void setAltitude(int a)
           
 void setConf(IniFileParser conf, java.lang.String section)
          change settings but don't write to files
(package private)  boolean setHomePlanet(java.lang.String englishName)
           
(package private)  void setLandscapeName(java.lang.String s)
           
 void setLatitude(double l)
           
 void setLongitude(double l)
           
(package private)  void update(int deltaTime)
          for moving observator position gradually
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

solarSystem

private final SolarSystem solarSystem

name

private java.lang.String name
Position name


planet

private Planet planet

longitude

double longitude
Longitude in degree


latitude

double latitude
Latitude in degree


altitude

int altitude
Altitude in meter


landscapeName

java.lang.String landscapeName

flagMoveTo

private boolean flagMoveTo
for changing position


startLatitude

private double startLatitude

endLatitude

private double endLatitude

startLongitude

private double startLongitude

endLongitude

private double endLongitude

startAltitude

private double startAltitude

endAltitude

private double endAltitude

moveToCoef

private double moveToCoef

moveToMult

private double moveToMult
Constructor Detail

Observator

Observator(SolarSystem someSolarSystem)
Method Detail

getCenterVsop87Pos

javax.vecmath.Point3d getCenterVsop87Pos()

getDistanceFromCenter

double getDistanceFromCenter()

getRotLocalToEquatorial

javax.vecmath.Matrix4d getRotLocalToEquatorial(double jd)

getRotEquatorialToVsop87

public javax.vecmath.Matrix4d getRotEquatorialToVsop87()

load

void load(java.lang.String file,
          java.lang.String section)
    throws StellariumException
Throws:
StellariumException

setHomePlanet

boolean setHomePlanet(java.lang.String englishName)

load

public void load(IniFileParser conf,
                 java.lang.String section)

save

public void save(IniFileParser conf,
                 java.lang.String section)
          throws StellariumException
Throws:
StellariumException

setConf

public void setConf(IniFileParser conf,
                    java.lang.String section)
change settings but don't write to files


moveTo

public void moveTo(double latitude,
                   double longitude,
                   double altitude,
                   int duration,
                   java.lang.String _name)
Move gradually to a new observation location

Parameters:
latitude -
longitude -
altitude -
duration -

getName

public java.lang.String getName()

getHomePlanetEnglishName

public java.lang.String getHomePlanetEnglishName()

getHomePlanetNameI18n

public java.lang.String getHomePlanetNameI18n()

update

void update(int deltaTime)
for moving observator position gradually

Parameters:
deltaTime -

getHomePlanet

public Planet getHomePlanet()

setLatitude

public void setLatitude(double l)

getLatitude

public double getLatitude()

setLongitude

public void setLongitude(double l)

getLongitude

public double getLongitude()

setAltitude

public void setAltitude(int a)

getAltitude

public int getAltitude()

setLandscapeName

void setLandscapeName(java.lang.String s)

getLandscapeName

public java.lang.String getLandscapeName()