|
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.RenderableLayer
gov.nasa.worldwind.layers.StarsLayer
public class StarsLayer
Renders a star background based on a subset of ESA Hipparcos catalog.
Field Summary | |
---|---|
protected java.lang.String |
starsFileName
|
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl |
---|
changeSupport |
Constructor Summary | |
---|---|
StarsLayer()
A RenderableLayer that displays a star background |
|
StarsLayer(java.lang.String starsFileName)
A RenderableLayer that displays a star background |
Method Summary | |
---|---|
void |
dispose()
Disposes the contents of this layer's internal Renderable collection, but does not remove any elements from that collection. |
void |
doRender(DrawContext dc)
|
float |
getBrightness()
Get the actual brightness multiplier. |
Angle |
getLatitudeOffset()
Returns the latitude offset or relative tilt for the star sphere. |
Angle |
getLongitudeOffset()
Returns the longitude offset or rotation of the star sphere. |
double |
getRadius()
Get the star sphere radius. |
java.lang.String |
getStarsFileName()
Get the path and filename of the stars catalog file. |
void |
setBrightness(float brightness)
Set the brightness multiplier. |
void |
setLatitudeOffset(Angle offset)
Sets the latitude offset or relative tilt of the star sphere. |
void |
setLongitudeOffset(Angle offset)
Sets the longitude offset or rotation of the star sphere. |
void |
setRadius(double radius)
Set the star sphere radius in meter. |
void |
setStarsFileName(java.lang.String fileName)
Set the path and filename of the stars catalog file. |
java.lang.String |
toString()
|
Methods inherited from class gov.nasa.worldwind.layers.RenderableLayer |
---|
addRenderable, addRenderables, doPick, getDelegateOwner, getRenderables, removeAllRenderables, removeRenderable, setRenderables |
Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer |
---|
getMaxActiveAltitude, getMinActiveAltitude, getName, getOpacity, getRestorableState, getScale, isAtMaxResolution, isEnabled, isLayerActive, isLayerInView, isMultiResolution, isPickEnabled, pick, render, restoreState, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setName, setOpacity, setPickEnabled |
Methods inherited from class gov.nasa.worldwind.WWObjectImpl |
---|
propertyChange |
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, 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 java.lang.String starsFileName
Constructor Detail |
---|
public StarsLayer()
public StarsLayer(java.lang.String starsFileName)
starsFileName
- the path and filename of the star catalog fileMethod Detail |
---|
public void dispose()
RenderableLayer
dispose
in interface Disposable
dispose
in class RenderableLayer
public void doRender(DrawContext dc)
doRender
in class RenderableLayer
public float getBrightness()
public Angle getLatitudeOffset()
public Angle getLongitudeOffset()
public double getRadius()
public java.lang.String getStarsFileName()
public void setBrightness(float brightness)
brightness
- the brightness multiplierpublic void setLatitudeOffset(Angle offset)
offset
- the latitude offset.public void setLongitudeOffset(Angle offset)
offset
- the longitude offset.public void setRadius(double radius)
radius
- the radius in meter.public void setStarsFileName(java.lang.String fileName)
fileName
- the path and filenamepublic java.lang.String toString()
toString
in class RenderableLayer
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |