org.xith3d.effects.atmosphere
Class AtmosphereFactory

java.lang.Object
  extended by org.xith3d.effects.atmosphere.AtmosphereFactory
All Implemented Interfaces:
Updatable
Direct Known Subclasses:
GLSLAtmosphereFactory

public abstract class AtmosphereFactory
extends java.lang.Object
implements Updatable

This factory generates atmospheric effects for spheres.


Constructor Summary
protected AtmosphereFactory()
           
 
Method Summary
 PointLight getLight()
           
protected  org.openmali.vecmath2.Point3f getLightPos(org.openmali.vecmath2.Point3f lightPos)
           
 Sphere getSphere()
           
 org.openmali.vecmath2.Tuple3f getWavelength3()
           
protected abstract  void prepareAtmosphere(Sphere sphere, float atmosphereRadius, PointLight light)
           
 void prepareAtmosphere(Sphere sphere, float atmosphereRadius, PointLight light, Updater updater)
           
 void setLight(PointLight light)
           
 void setSphere(Sphere sphere)
           
 void setWavelength3(org.openmali.vecmath2.Tuple3f wavelength3)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xith3d.loop.Updatable
update
 

Constructor Detail

AtmosphereFactory

protected AtmosphereFactory()
Method Detail

setSphere

public void setSphere(Sphere sphere)

getSphere

public final Sphere getSphere()

setLight

public void setLight(PointLight light)

getLight

public final PointLight getLight()

getLightPos

protected final org.openmali.vecmath2.Point3f getLightPos(org.openmali.vecmath2.Point3f lightPos)

setWavelength3

public void setWavelength3(org.openmali.vecmath2.Tuple3f wavelength3)

getWavelength3

public final org.openmali.vecmath2.Tuple3f getWavelength3()

prepareAtmosphere

protected abstract void prepareAtmosphere(Sphere sphere,
                                          float atmosphereRadius,
                                          PointLight light)

prepareAtmosphere

public final void prepareAtmosphere(Sphere sphere,
                                    float atmosphereRadius,
                                    PointLight light,
                                    Updater updater)