org.stellarium.astro
Class MilkyWay

java.lang.Object
  extended by org.stellarium.astro.MilkyWay

public class MilkyWay
extends java.lang.Object

Class which manages the displaying of the Milky Way

Version:
0.8.2
Author:
Jerome Beau, Fred Simon

Field Summary
private  SColor color
           
private  LinearFader fader
           
private  float intensity
           
private  double radius
           
private  STexture tex
           
private  float texAvgLuminance
           
 
Constructor Summary
MilkyWay()
           
MilkyWay(double radius)
           
 
Method Summary
 void close()
           
 void draw(ToneReproductor eye, Projector prj, NavigatorIfc nav)
           
 void drawChart(ToneReproductor eye, Projector prj, NavigatorIfc nav)
           
 boolean getFlagShow()
           
 float getIntensity()
           
private  javax.vecmath.Matrix4d getSphereMat(NavigatorIfc nav)
           
 void setColor(javax.vecmath.Tuple4f c)
           
 void setFlagShow(boolean b)
           
 void setIntensity(float intensity)
           
 void setTexture(java.lang.String texFile)
           
 void setTexture(java.lang.String texFile, boolean blend)
           
 void update(int deltaTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

radius

private double radius

tex

private STexture tex

color

private SColor color

intensity

private float intensity

texAvgLuminance

private float texAvgLuminance

fader

private LinearFader fader
Constructor Detail

MilkyWay

public MilkyWay()
         throws StellariumException
Throws:
StellariumException

MilkyWay

MilkyWay(double radius)
   throws StellariumException
Throws:
StellariumException
Method Detail

close

public void close()

draw

public void draw(ToneReproductor eye,
                 Projector prj,
                 NavigatorIfc nav)

drawChart

public void drawChart(ToneReproductor eye,
                      Projector prj,
                      NavigatorIfc nav)

update

public void update(int deltaTime)

setIntensity

public void setIntensity(float intensity)

getIntensity

public float getIntensity()

setTexture

public void setTexture(java.lang.String texFile)
                throws StellariumException
Throws:
StellariumException

setTexture

public void setTexture(java.lang.String texFile,
                       boolean blend)
                throws StellariumException
Throws:
StellariumException

setColor

public void setColor(javax.vecmath.Tuple4f c)

setFlagShow

public void setFlagShow(boolean b)

getFlagShow

public boolean getFlagShow()

getSphereMat

private javax.vecmath.Matrix4d getSphereMat(NavigatorIfc nav)