|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.layers.AbstractLayer
gov.nasa.worldwind.layers.Earth.SkyGradientLayer
public class SkyGradientLayer
Renders an atmosphere around the globe and the sky at low altitude.
Ported from my WW plugin SkyGradient and from WW2DPlusOne.
Note : based on a spherical globe.
Field Summary | |
---|---|
protected int |
glListId
|
protected float[] |
horizonColor
|
protected double |
lastRebuildAltitude
|
protected double |
thickness
|
protected float[] |
zenithColor
|
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl |
---|
changeSupport |
Constructor Summary | |
---|---|
SkyGradientLayer()
Renders an atmosphere around the globe |
Method Summary | |
---|---|
void |
dispose()
|
void |
doRender(DrawContext dc)
|
double |
getAtmosphereThickness()
Get the atmosphere thickness in meter |
Color |
getHorizonColor()
Get the horizon color |
Color |
getZenithColor()
Get the zenith color |
void |
setAtmosphereThickness(double thickness)
Set the atmosphere thickness in meter |
void |
setHorizonColor(Color color)
Set the horizon color |
void |
setZenithColor(Color color)
Set the zenith color |
String |
toString()
|
Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer |
---|
doPick, getMaxActiveAltitude, getMinActiveAltitude, getName, getOpacity, isAtMaxResolution, isEnabled, isLayerActive, isLayerInView, isMultiResolution, isPickEnabled, pick, render, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setName, setOpacity, setPickEnabled |
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, propertyChange, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gov.nasa.worldwind.avlist.AVList |
---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
Methods inherited from interface java.beans.PropertyChangeListener |
---|
propertyChange |
Field Detail |
---|
protected int glListId
protected float[] horizonColor
protected double lastRebuildAltitude
protected double thickness
protected float[] zenithColor
Constructor Detail |
---|
public SkyGradientLayer()
Method Detail |
---|
public void dispose()
dispose
in interface Disposable
dispose
in class AbstractLayer
public void doRender(DrawContext dc)
doRender
in class AbstractLayer
public double getAtmosphereThickness()
public Color getHorizonColor()
public Color getZenithColor()
public void setAtmosphereThickness(double thickness)
thickness
- the atmosphere thickness in meterpublic void setHorizonColor(Color color)
color
- the horizon colorpublic void setZenithColor(Color color)
color
- the zenith colorpublic String toString()
toString
in class AbstractLayer
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |