|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stellarium.Navigator
public class Navigator
Nested Class Summary | |
---|---|
private class |
Navigator.AutoMove
Struct used to store data for auto mov |
Nested classes/interfaces inherited from interface org.stellarium.NavigatorIfc |
---|
NavigatorIfc.VIEWING_MODE_TYPE
|
Field Summary | |
---|---|
private javax.vecmath.Point3d
|
equVision
|
private boolean |
flagAutoMove
Define if automove is on or off |
private boolean |
flagLockEquPos
Define if the equatorial position is locked |
private boolean |
flagTracking
Define if the selected object is followed |
private double |
jDay
Curent time in Julian day |
private javax.vecmath.Point3d
|
localVision
Viewing direction in local and equatorial coordinates |
static javax.vecmath.Matrix4d
|
mat_j2000_to_vsop87
|
static javax.vecmath.Matrix4d
|
mat_vsop87_to_j2000
|
private javax.vecmath.Matrix4d
|
matEarthEquToEye
Modelview matrix for geocentric equatorial drawing |
private javax.vecmath.Matrix4d
|
matEarthEquToJ2000
|
private javax.vecmath.Matrix4d
|
matEarthEquToLocal
Transform from Observator local coordinate to Earth Equatorial |
private javax.vecmath.Matrix4d
|
matHelioToEarthEqu
Transform from Heliocentric to earth equatorial coordinate |
private javax.vecmath.Matrix4d
|
matHelioToEye
Modelview matrix for heliocentric equatorial drawing |
private javax.vecmath.Matrix4d
|
matHelioToLocal
Transform from Heliocentric to Observator local coordinate |
private javax.vecmath.Matrix4d
|
matJ2000ToEarthEqu
|
private javax.vecmath.Matrix4d
|
matJ2000ToEye
precessed version |
private javax.vecmath.Matrix4d
|
matLocalToEarthEqu
Transform from Observator local coordinate to Earth Equatorial |
private javax.vecmath.Matrix4d
|
matLocalToEye
Modelview matrix for observer local drawing |
private javax.vecmath.Matrix4d
|
matLocalToHelio
Transform from Observator local coordinate to Heliocentric |
private Navigator.AutoMove
|
move
Current auto movement |
private Observator |
position
|
private javax.vecmath.Point3d
|
precEquVision
|
private double |
timeSpeed
Positive : forward, Negative : Backward, 1 = 1sec/sec |
private NavigatorIfc.VIEWING_MODE_TYPE
|
viewingMode
defines if view corrects for horizon, or uses equatorial coordinates |
private int |
zoomingMode
0 : undefined, 1 zooming, -1 unzooming |
Fields inherited from interface org.stellarium.NavigatorIfc |
---|
JD_DAY, JD_HOUR, JD_MINUTE, JD_SECOND |
Constructor Summary | |
---|---|
Navigator(Observator obs)
|
Method Summary | |
---|---|
(package private)
javax.vecmath.Point3d |
earthEquToJ2000(javax.vecmath.Point3d v)
|
javax.vecmath.Point3d |
earthEquToLocal(javax.vecmath.Point3d v)
Transform vector from equatorial coordinate to local |
javax.vecmath.Matrix4d |
getEarthEquToEyeMat()
|
(package private)
javax.vecmath.Point3d |
getEquVision()
|
boolean |
getFlagLockEquPos()
|
boolean |
getFlagTraking()
|
javax.vecmath.Matrix4d |
getHelioToEyeMat()
Return the modelview matrix for some coordinate systems |
Planet |
getHomePlanet()
|
javax.vecmath.Matrix4d |
getJ2000ToEyeMat()
|
double |
getJDay()
|
javax.vecmath.Matrix4d |
getLocalToEyeMat()
|
(package private)
javax.vecmath.Point3d |
getLocalVision()
|
javax.vecmath.Matrix4d |
getMatVsop87ToJ2000()
|
javax.vecmath.Point3d |
getObserverHelioPos()
|
javax.vecmath.Point3d |
getPrecEquVision()
|
double |
getTimeSpeed()
|
NavigatorIfc.VIEWING_MODE_TYPE
|
getViewingMode()
|
javax.vecmath.Vector3d |
helioToEarthEqu(javax.vecmath.Vector3d v)
Transform vector from heliocentric coordinate to earth equatorial |
javax.vecmath.Point3d |
helioToEarthPosEqu(javax.vecmath.Point3d v)
Transform vector from heliocentric coordinate to false equatorial : equatorial coordinate but centered on the observer position (usefull for objects close to earth) |
(package private) void |
helioToLocal(javax.vecmath.Point3d v)
Transform vector from heliocentric coordinate to local |
javax.vecmath.Point3d |
j2000ToEarthEqu(javax.vecmath.Point3d v)
|
javax.vecmath.Point3d |
localToEarthEqu(javax.vecmath.Point3d v)
Transform point from local coordinate to equatorial |
void |
moveTo(javax.vecmath.Point3d aim,
float moveDuration)
Move to the given equatorial position |
(package private) void |
moveTo(javax.vecmath.Point3d aim,
float moveDuration, boolean localPos, int zooming)
Move to the given equatorial position |
void |
setFlagLockEquPos(boolean v)
|
void |
setFlagTraking(boolean v)
|
void |
setJDay(double jd)
Time controls |
(package private) void |
setLocalVision(javax.vecmath.Point3d pos)
|
void |
setTimeSpeed(double ts)
|
void |
setViewingMode(NavigatorIfc.VIEWING_MODE_TYPE viewMode)
Set Type of viewing mode (align with horizon or equatorial coordinates) |
(package private) void |
switchToEarthEquatorial()
|
void |
switchToHeliocentric()
Place openGL in heliocentric ecliptical coordinates |
void |
switchToLocal()
Place openGL in local viewer coordinates (Usually somewhere on earth viewing in a specific direction) |
void |
switchViewingMode()
|
(package private) void |
updateModelViewMat()
Update the modelview matrices |
(package private) void |
updateMove(double deltaAz,
double deltaAlt)
|
(package private) void |
updateTime(int deltaTime)
Increment time |
void |
updateTransformMatrices()
|
(package private) void |
updateVisionVector(int deltaTime,
StelObject selected)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final javax.vecmath.Matrix4d mat_j2000_to_vsop87
public static final javax.vecmath.Matrix4d mat_vsop87_to_j2000
private javax.vecmath.Matrix4d matHelioToLocal
private javax.vecmath.Matrix4d matLocalToHelio
private javax.vecmath.Matrix4d matLocalToEarthEqu
private javax.vecmath.Matrix4d matEarthEquToLocal
private javax.vecmath.Matrix4d matHelioToEarthEqu
private javax.vecmath.Matrix4d matEarthEquToJ2000
private javax.vecmath.Matrix4d matJ2000ToEarthEqu
private javax.vecmath.Matrix4d matLocalToEye
private javax.vecmath.Matrix4d matEarthEquToEye
private javax.vecmath.Matrix4d matJ2000ToEye
private javax.vecmath.Matrix4d matHelioToEye
private javax.vecmath.Point3d localVision
private javax.vecmath.Point3d equVision
private javax.vecmath.Point3d precEquVision
private boolean flagTracking
private boolean flagLockEquPos
private Navigator.AutoMove move
private boolean flagAutoMove
private int zoomingMode
private double timeSpeed
private double jDay
private Observator position
private NavigatorIfc.VIEWING_MODE_TYPE viewingMode
Constructor Detail |
---|
Navigator(Observator obs) throws StellariumException
StellariumException
Method Detail |
---|
public javax.vecmath.Matrix4d getMatVsop87ToJ2000()
getMatVsop87ToJ2000
in
interface NavigatorIfc
void updateVisionVector(int deltaTime, StelObject selected)
void setLocalVision(javax.vecmath.Point3d pos)
void updateMove(double deltaAz, double deltaAlt)
void updateTime(int deltaTime)
deltaTime
-
public void updateTransformMatrices()
void updateModelViewMat()
public javax.vecmath.Point3d getObserverHelioPos()
getObserverHelioPos
in
interface NavigatorIfc
public void moveTo(javax.vecmath.Point3d aim, float moveDuration)
aim
-
moveDuration
-
void moveTo(javax.vecmath.Point3d aim, float moveDuration, boolean localPos, int zooming)
aim
-
moveDuration
-
localPos
-
zooming
-
public void setViewingMode(NavigatorIfc.VIEWING_MODE_TYPE viewMode)
viewMode
-
public void switchViewingMode()
public void setJDay(double jd)
jd
- Julian Day
public double getJDay()
getJDay
in interface NavigatorIfc
public void setTimeSpeed(double ts)
public double getTimeSpeed()
public void setFlagTraking(boolean v)
public boolean getFlagTraking()
public void setFlagLockEquPos(boolean v)
public boolean getFlagLockEquPos()
javax.vecmath.Point3d getEquVision()
public javax.vecmath.Point3d getPrecEquVision()
getPrecEquVision
in
interface NavigatorIfc
javax.vecmath.Point3d getLocalVision()
public Planet getHomePlanet()
getHomePlanet
in interface
NavigatorIfc
void switchToEarthEquatorial()
public void switchToHeliocentric()
public void switchToLocal()
switchToLocal
in interface
NavigatorIfc
public javax.vecmath.Point3d localToEarthEqu(javax.vecmath.Point3d v)
localToEarthEqu
in interface NavigatorIfc
public javax.vecmath.Point3d earthEquToLocal(javax.vecmath.Point3d v)
earthEquToLocal
in interface NavigatorIfc
javax.vecmath.Point3d earthEquToJ2000(javax.vecmath.Point3d v)
public javax.vecmath.Point3d j2000ToEarthEqu(javax.vecmath.Point3d v)
j2000ToEarthEqu
in interface NavigatorIfc
void helioToLocal(javax.vecmath.Point3d v)
v
- the helio pos
public javax.vecmath.Vector3d helioToEarthEqu(javax.vecmath.Vector3d v)
helioToEarthEqu
in interface NavigatorIfc
public javax.vecmath.Point3d helioToEarthPosEqu(javax.vecmath.Point3d v)
helioToEarthPosEqu
in interface NavigatorIfc
public javax.vecmath.Matrix4d getHelioToEyeMat()
getHelioToEyeMat
in
interface NavigatorIfc
public javax.vecmath.Matrix4d getEarthEquToEyeMat()
public javax.vecmath.Matrix4d getLocalToEyeMat()
getLocalToEyeMat
in
interface NavigatorIfc
public javax.vecmath.Matrix4d getJ2000ToEyeMat()
getJ2000ToEyeMat
in
interface NavigatorIfc
public NavigatorIfc.VIEWING_MODE_TYPE getViewingMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |